Native Quote
Last updated
Last updated
Returns the best quote for buying or selling tokens with native currency. Token decimals are automatically detected using ERC20 standard calls.
The swap direction - either buy tokens with native currency, or sell tokens for native currency
buy
Available options: The token address to buy or sell
0x1234567890123456789012345678901234567890
Pattern: ^0x[a-fA-F0-9]{40}$
The amount as a BigInt string. For buy - This is the amount of native currency to spend. For sell - This is the amount of tokens to sell.
1000000000000000000
Partner fee in basis points (0-10000)
25
Address to receive the partner fee
0xabcdef1234567890abcdef1234567890abcdef12
Pattern: ^0x[a-fA-F0-9]{40}$