收取费用
在迁移前后申领平台和创作者费用。
费用概述
阶段
费用类型
谁获得
提取方式
Bonding curve 费用提取
平台费用提取
从平台金库提取
import { TxVersion } from '@raydium-io/raydium-sdk-v2'
import { initSdk } from './config'
import { PublicKey } from '@solana/web3.js'
import { NATIVE_MINT } from '@solana/spl-token'
const claimPlatformFees = async () => {
const raydium = await initSdk()
const { execute } = await raydium.launchpad.claimVaultPlatformFee({
platformId: new PublicKey('your-platform-id'),
mintB: NATIVE_MINT,
claimFeeWallet: raydium.ownerPubKey, // optional, defaults to signer
txVersion: TxVersion.V0,
})
const { txId } = await execute({ sendAndConfirm: true })
console.log('Platform fees claimed:', txId)
}从多种计价代币提取
从所有池中提取(旧方法)
创作者费用提取
提取 bonding curve 费用
从多种计价代币提取
迁移后 LP 费用提取
提取 LP 费用
理解 Fee Key NFT
属性
详情
CPMM creator fees
费用累积时间线
Bonding curve 阶段
迁移后阶段
最佳实践
最后更新于
这有帮助吗?