Collecting fees
Claim platform and creator fees before and after migration.
Fee overview
Stage
Fee type
Who earns
Claim method
Bonding curve fee collection
Platform fee collection
Claiming from platform vault
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)
}Claiming from multiple quote tokens
Claiming from all pools (former method)
Creator fee collection
Claiming bonding curve fees
Claiming from multiple quote tokens
Post-migration LP fee collection
Claiming LP fees
Understanding Fee Key NFTs
Property
Details
CPMM creator fees
Fee accumulation timeline
Bonding curve phase
Post-migration phase
Best practices
Last updated
Was this helpful?