Token to Token Quote
Last updated
Last updated
Returns the best quote for swapping directly between tokens. Token decimals are automatically detected using ERC20 standard calls. Includes both direct and indirect (via native currency) routing options.
The input token address
0x1234567890123456789012345678901234567890
Pattern: ^0x[a-fA-F0-9]{40}$
The output token address
0xabcdef1234567890abcdef1234567890abcdef12
Pattern: ^0x[a-fA-F0-9]{40}$
The amount of input token as a BigInt string
1000000000000000000
Partner fee in basis points (0-10000)
25
Address to receive the partner fee
0xabcdef1234567890abcdef1234567890abcdef12
Pattern: ^0x[a-fA-F0-9]{40}$