Skip to main content
POST
/
tx
/
create-standard-liquidity-pool
Create Pool Transaction
curl --request POST \
  --url https://tx.api.heaven.xyz/tx/create-standard-liquidity-pool \
  --header 'Content-Type: application/json' \
  --data '{
  "compute_unit_limit": 400000,
  "compute_unit_price": 2000000,
  "config_version": 1,
  "creator": "3N6yV1v1f6Yz8bX9n4bF7vZ5X9J8vY9X9J8vY9X9J8vY",
  "encoded_user_defined_event_data": "<string>",
  "initial_purchase_amount": 1000000,
  "lut_address": "3DENDMbqpVuarsEvk3MYJMpcZqsrQanK8Z8cVeDf53oR",
  "max_sol_spend": 1,
  "name": "My Token",
  "payer": "3N6yV1v1f6Yz8bX9n4bF7vZ5X9J8vY9X9J8vY9X9J8vY",
  "program_id": "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o",
  "symbol": "MYTKN",
  "uri": "https://mytoken.com/metadata.json"
}'
{
  "mint": "<string>",
  "tx": "<string>"
}

Body

application/json
config_version
integer
default:1
required

Protocol config version

Required range: x >= 0
creator
string
required

Creator of the liquidity pool

Example:

"3N6yV1v1f6Yz8bX9n4bF7vZ5X9J8vY9X9J8vY9X9J8vY"

encoded_user_defined_event_data
string
required
initial_purchase_amount
integer
required

Initial purchase amount of token A in native amount. Please use /quote/initial-buy to estimate required SOL amount.

Required range: x >= 0
Example:

1000000

lut_address
string
default:3DENDMbqpVuarsEvk3MYJMpcZqsrQanK8Z8cVeDf53oR
required

Please use 3DENDMbqpVuarsEvk3MYJMpcZqsrQanK8Z8cVeDf53oR for Community Token (1), and 4utvsPEpB2EYKKAh1UXgRfVteYamYmoUnTvetQKvcZMA for Creator Token (2)

Example:

"3DENDMbqpVuarsEvk3MYJMpcZqsrQanK8Z8cVeDf53oR"

name
string
required

Name of the token

Example:

"My Token"

payer
string
required

Payer of the transaction

Example:

"3N6yV1v1f6Yz8bX9n4bF7vZ5X9J8vY9X9J8vY9X9J8vY"

program_id
string
default:HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o
required

Program ID of the Heaven DEX program

Example:

"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"

symbol
string
required

Symbol of the token

Example:

"MYTKN"

uri
string
required

URI of the token metadata

Example:

"https://mytoken.com/metadata.json"

compute_unit_limit
integer | null

Compute unit limit for the transaction

Required range: x >= 0
Example:

400000

compute_unit_price
integer | null

Compute unit price for the transaction

Required range: x >= 0
Example:

2000000

max_sol_spend
number | null

Maximum amount of SOL to spend for the initial buy operation

Example:

1

Response

200 - application/json
mint
string
required

Mint address of the newly created token

tx
string
required

Base64 encoded transaction