βοΈSwap API
The FluxBeam Swap API allows developers and users to retrieve swap quotes and pre-built transactions to speed up integration.
Quote
The quote API will return the expected output amount and slippage amount based on the provided input amount & token mints.
Currently, the API only returns pools on FluxBeam DEX.
Example
Swap Transaction
The Transaction endpoint returns a pre-built transaction that is ready to be signed by the payer wallet based on the quote provided.
The swap transaction includes the following instructions:
Priority Fee Price & Units
Input & Output associated token account creation
Wrap & Unwrap of SOL accounts
100{PAYER_WALLET_ADDRESS}trueReturns a swap quote
Returns a swap quote
Example
Swap Instruction
The instruction endpoint will return the FluxBeam swap instruction for a given quote. The instruction should be included within a transaction that handles the priority fee & associated token account calls.
If no pool is provided a quote will be generated.
100{PAYER_WALLET_ADDRESS}trueReturns a swap instruction to be added to transaction
Returns a swap instruction to be added to transaction
Example
Last updated