Get price quotes for token swaps without executing transactions.Documentation Index
Fetch the complete documentation index at: https://docs.chainworks.co/llms.txt
Use this file to discover all available pages before exploring further.
Get Buy Quote
Get a price quote for buying tokens with SOL. Endpoint:/svm/buy/quote
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
swapMode | string | Yes | ExactIn or ExactOut |
amountIn | string | Conditional | Amount of SOL in lamports. Required for ExactIn |
amountOut | string | Conditional | Amount of tokens. Required for ExactOut |
wallet | string | Yes | Wallet public key |
pool | string | No | When supplied, this parameter restricts quoting to the specified pool, subject to liquidity and compatibility requirements. |
Get Sell Quote
Get a price quote for selling tokens for SOL. Endpoint:/svm/sell/quote
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Always sol |
token | string | Yes | Token mint address |
swapMode | string | Yes | ExactIn or ExactOut |
amountIn | string | Conditional | Amount of tokens. Required for ExactIn |
wallet | string | Yes | Wallet public key |
pool | string | No | When supplied, this parameter restricts quoting to the specified pool, subject to liquidity and compatibility requirements. |

