GET Indicative quote
Query parameters
from_addressstringRequiredExample:
Address of the user that sells the token_in
0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3Pattern: ^0x[a-fA-F0-9]{40}$to_addressstringOptionalExample:
Address of the user that receives the token_out. If empty, this address will be the same as from_address
0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3Pattern: ^0x[a-fA-F0-9]{40}$src_chainstring · enumRequiredPossible values:
The chain belonging to the token_in address.
dst_chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, bsc, ...
token_instringRequiredExample:
Token address for the token to be sold.
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2Pattern: ^0x[a-fA-F0-9]{40}$token_outstringRequiredExample:
Token address for the token to be bought.
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2Pattern: ^0x[a-fA-F0-9]{40}$amountnumberOptionalDefault:
Amount of token to be sold, in ether unit.
0Example: 1amount_weistringRequiredExample:
Amount of token to be sold, in wei unit.
1000000000000000000expiry_timenumberOptionalDefault:
The expiry time of the quote, in seconds.
0Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Responses
200
Success
application/json
get
/v1/bridge/indicative-quoteGET /bridge/v1/bridge/indicative-quote?from_address=text&src_chain=ethereum&dst_chain=ethereum&token_in=text&token_out=text&amount_wei=text HTTP/1.1
Host: newapi.native.org
apiKey: text
Accept: */*
200
Success
{
"sellerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"buyerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"srcChainId": 1,
"destChainId": 1,
"amountIn": "1000000000000000000",
"amountOut": "1000000000000000000",
"amountOutEther": 1,
"estimateDuration": 1,
"bridgeFeeUsd": 1,
"source": "text"
}Last updated