GET Calldata
Similar to `/firm-quote`. Just that response is raw calldata that can be submitted on-chain directly.
get
Query parameters
from_addressstringRequiredPattern:
Address of the user that sells the token_in
^0x[a-fA-F0-9]{40}$to_addressstringOptionalPattern:
Address of the user that receives the token_out. If empty, this address will be the same as from_address
^0x[a-fA-F0-9]{40}$beneficiary_addressstringOptionalPattern:
Address of the end user that initiated the swap request.
^0x[a-fA-F0-9]{40}$src_chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, bsc, ...
dst_chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, bsc, ...
token_instringRequiredPattern:
Address of the token to be sold
^0x[a-fA-F0-9]{40}$token_outstringRequiredPattern:
Address of the token to be bought
^0x[a-fA-F0-9]{40}$amountnumberOptionalDefault:
Amount of token to be sold, in ether unit.
0amount_weistringOptionalDefault:
Amount of token to be sold, in wei unit.
0expiry_timenumberOptionalDefault:
The expiry time of the quote, in seconds.
0slippagenumberOptionalDefault:
Number in percent. For example, passing the value 5 means 5%, 0.1 means 0.1% slippage tolerance. By default it's 0.
0timeout_millisnumberOptionalDefault:
Timeout in milliseconds
2000Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Responses
200
Success
application/json
fromstringRead-onlyRequired
tostringRead-onlyRequired
calldatastringRead-onlyRequired
valuestringRead-onlyRequired
amountInOffsetnumberRead-onlyRequired
amountOutMinimumOffsetnumberRead-onlyRequired
500
There was an exception with the server
get
/v1/firm-quote/calldata