Skip to main content
POST
Claim Creator Fees

Body

application/json

Claim accumulated creator trading fees from a pro pool. The payer must be the pool creator or the designated fee receiver.

mint
string
required

Mint address of the SPL token (token A) in the pool.

version
integer<int32>
required

Protocol config version for the pool.

Required range: x >= 0
payer
string
required

Public key of the wallet that will sign and pay for the transaction.

program_id
string
required

Program ID of the Heaven DEX program. Use HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o for mainnet.

amount
integer<int64>
required

Amount of creator trading fees (in lamports) to claim.

Required range: x >= 0
pool
string
required

On-chain address of the pro pool state account. Returned in the response when creating a pool.

compute_unit_limit
integer<int32> | null

Maximum compute units for the transaction. Higher values allow more complex operations but cost more. Defaults to a sensible value if omitted.

Required range: x >= 0
compute_unit_price
integer<int64> | null

Priority fee in micro-lamports per compute unit. Higher values increase transaction priority. Defaults to a sensible value if omitted.

Required range: x >= 0

Response

200 - application/json
tx
string
required

Base64 encoded versioned transaction. Decode, sign, and submit.