For the complete documentation index, see llms.txt. This page is also available as Markdown.

🌊Pool API

The FluxBeam Pool API allows developers to quickly and easily integrate the creation of pools within their platform.

Create Pool

Create a new pool

post

Create a new pool from a given signature

Body
payerstringOptional
priority_fee_lamportsintegerOptionalExample: 1000
token_astringOptionalExample: So11111111111111111111111111111111111111112
token_a_amountintegerOptionalExample: 100000
token_bstringOptionalExample: FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX
token_b_amountintegerOptionalExample: 1000000
Responses
200

OK

application/json
lp_mintstringOptionalExample: {LP_MINT}
poolstringOptionalExample: {NEW_POOL}
token_astringOptionalExample: So11111111111111111111111111111111111111112
token_bstringOptionalExample: FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX
transactionstringOptional
post/v1/token_pools
POST /v1/token_pools HTTP/1.1
Host: api.fluxbeam.xyz
Content-Type: application/json
Accept: */*
Content-Length: 207

{
  "payer": "text",
  "priority_fee_lamports": 1000,
  "token_a": "So11111111111111111111111111111111111111112",
  "token_a_amount": 100000,
  "token_b": "FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX",
  "token_b_amount": 1000000
}
200

OK

{
  "lp_mint": "{LP_MINT}",
  "pool": "{NEW_POOL}",
  "token_a": "So11111111111111111111111111111111111111112",
  "token_b": "FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX",
  "transaction": "text"
}

Example

Last updated