Collecting fees
Claim trading fees earned from bonding curves and post-migration LP positions
Fee overview
Stage
Fee type
Who earns
Claim method
Bonding curve fee collection
Platform fee collection
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)
}Creator fee collection
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?