Get / Quote

New improved quote endpoint. This API returns a detailed quote and transaction package for performing a token swap. The response includes the calculated output amounts, slippage, routing plan and a serialized transaction ready to be submitted to the blockchain.

Query Params
string
required
Defaults to So11111111111111111111111111111111111111112

Input token address

string
required
Defaults to AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY

Output token address

integer
required
Defaults to 1000000000

Input amount (in lamports)

integer
required
Defaults to 100

Slippage (in BPS)

string

User address (if included, the response returns a base64 txn)

Response
200
Language
Credentials
Header
Response
Click Try It! to start a request and see the response here!