Skip to main content
POST
/
tx
/
pro
/
set-market-cap-creator-fee
Set Creator Fee
curl --request POST \
  --url https://tx.api.heaven.xyz/tx/pro/set-market-cap-creator-fee \
  --header 'Content-Type: application/json' \
  --data '
{
  "pool": "<string>",
  "payer": "<string>",
  "program_id": "<string>",
  "brackets": [
    {
      "market_cap_upper_bound": 100000000000,
      "buy_fee_bps": 100,
      "sell_fee_bps": 100
    }
  ],
  "compute_unit_limit": 1,
  "compute_unit_price": 1
}
'
{
  "tx": "<string>"
}

Body

application/json

Set market cap based creator trading fee brackets on a pro pool. Allows the creator to define different fee rates at different market cap levels. Only the pool creator can call this.

pool
string
required

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

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.

brackets
object[]
required

Array of fee brackets (max 4). Each bracket defines buy/sell fees in basis points below a market cap threshold. Brackets should be ordered by ascending market_cap_upper_bound.

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 with the creator wallet, and submit.