Skip to main content
POST
/
tx
/
pro
/
update-creator-fee-receiver
Update Creator Fee Receiver
curl --request POST \
  --url https://tx.api.heaven.xyz/tx/pro/update-creator-fee-receiver \
  --header 'Content-Type: application/json' \
  --data '
{
  "pool": "<string>",
  "mint": "<string>",
  "version": 1,
  "payer": "<string>",
  "new_receiver": "<string>",
  "program_id": "<string>",
  "compute_unit_limit": 1,
  "compute_unit_price": 1
}
'
{
  "tx": "<string>"
}

Body

application/json

Transfer the creator fee receiver to a new wallet. Both the current creator and the new receiver must sign the transaction. The pool must have its fee claim status set to "Processed" and fee distribution set to "Creator".

pool
string
required

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

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.

new_receiver
string
required

Public key of the new wallet that will receive future creator trading fees. This wallet must also sign the transaction.

program_id
string
required

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

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. Requires two signatures: the current creator (index 0) and the new receiver (index 1).