Swap Quotes
Last updated
Last updated
Endpoint: /swap/details
Description: This endpoint allows you to obtain the best exchange rate between two tokens and identify the best pool to perform the swap.
Response Includes:
Best pool for performing the swap.
amountIn
and amountOut
values.
Network fees and liquidity provider fees.
Price impact of the swap.
Swap from Rune to BTC:
The amountOut
provided by the /swap/details
endpoint does not account for the network fees.
You need to subtract the network fees from the amountOut
to get the correct amount to send to the endpoint.
Retrieves detailed information about a potential swap, including expected amounts and fees.
/v0/pool/swap/details
The fee rate for the transaction (in sats per byte).
The identifier of the first token. Must be the name of the token.
The identifier of the second token. Usually 'sat'.
A boolean indicating whether to swap from token0 to token1.
A boolean indicating whether the swap is exact in.
^[1-9][0-9]*$