Skip to main content
POST
/
tx
/
pro
/
set-lp-fee
Set LP Fee
curl --request POST \
  --url https://tx.api.heaven.xyz/tx/pro/set-lp-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

Request to set LP provider trading fee brackets on a pro pool.

pool
string
required

On-chain address of the pro pool state account.

payer
string
required

Public key of the pool creator wallet.

program_id
string
required

Program ID of the Heaven DEX program.

brackets
object[]
required

Fee brackets (max 4). Each defines buy/sell basis points below a market cap threshold.

compute_unit_limit
integer<int32> | null

Maximum compute units for the transaction.

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

Priority fee in micro-lamports per compute unit.

Required range: x >= 0

Response

200 - application/json
tx
string
required

Base64 encoded versioned transaction. Decode, sign with the creator wallet, and submit.