Swap Quotes
Swap Details Endpoint
Important Notes:
Query parameters
feeRateinteger · min: 1Required
The fee rate for the transaction (in sats per byte).
token0stringRequired
The identifier of the first token. Format: 0:0
token1stringRequired
The identifier of the second token. Usually '0:0: (Bitcoin)
zeroToOnebooleanRequired
A boolean indicating whether to swap from token0 to token1.
exactInbooleanRequired
A boolean indicating whether the swap is exact in.
amountstringRequiredPattern:
^[1-9][0-9]*$Responses
200
An object containing detailed swap information such as expected amounts, price, price impact, fees, and pool ID.
application/json
amountInstringRequired
The amount of input token to swap.
amountOutstringRequired
The amount of output token expected.
pricestringRequired
The price of the swap.
priceImpactstringRequired
The price impact of the swap.
poolIdstringRequired
The identifier of the pool.
400
Pool error
application/json
500
Internal Server Error
application/json
get
/v0/pool/swap/detailsLast updated