Get / Swap

Returns a base64-encoded string representing the transaction that can be submitted to the Solana blockchain to perform the token swap.

Query Params
string
required

Wallet address of the user.

string
required
Defaults to So11111111111111111111111111111111111111112

Address of the token that is used buy the other token

string
required
Defaults to AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY

Receiving Address of token

int32
required
Defaults to 100000000

Swap amount (in lamports)

int32
required
Defaults to 100

Slippage Value (in BPS)

string
enum
required
Defaults to raydium

Provider

string

Custom pool address for swapping.

int32

Fee amount for custom fee instruction (in lamports)

string

Account which receives the custom fee (required if feeLamports is provided)

int32

Transaction compute unit price used for prioritization fees

boolean

If true, the swap transaction will include an instruction for jito tip

boolean

If true, the swap transaction will be gasless (only valid if output token is SOL))

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain