Returns a quote for swapping tokens on same or different chains. Quotes expire after 5 minutes; quote.deadline is an ISO 8601 string (UTC).
Documentation Index
Fetch the complete documentation index at: https://docs.deframe.io/llms.txt
Use this file to discover all available pages before exploring further.
API key for authentication. Obtain from your Deframe dashboard.
Origin blockchain network
"ethereum"
Destination blockchain network
"polygon"
Input token contract address
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Output token contract address
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Input amount (in token smallest unit). Provide either amountIn or amountOut, not both.
"1000000000000000000"
Desired output amount (in token smallest unit). Provide either amountIn or amountOut, not both.
"1000000000000000000"
Recipient address on destination chain
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Address for refunds if swap fails
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Maximum slippage as a fraction of 1 (e.g. 0.01 = 1%). Passed through to the selected swap provider. Optional; each provider keeps its previous default when omitted.
0.0001 <= x <= 0.50.01
Quote generated successfully
Swap quote with token details and expiration