Bridges
We are providing connectivity across multiple chains via Bridges.
Following are the common functions implemented for Bridge Protocol:
getprice
Read
Get the swap quotation for the given token pairs.
getliquidity
Read
Get the balance of a particular token pair of an account.
gettransaction
Read
Get details of a transaction.
getsignature
Read
Retrieves the signature details using the transaction hash of swap.
getsupportedchains
Read
Get the list of chains supported by Squid Router, on expand.network.
getsupportedtokens
Read
Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.
getroute
Read
Get the route details as to how the tokens will be bridged, token amount, etc.
Available on Squid Router
swap
Write
Swap assets across multiple chains.
unlock
Write
Initiate the transaction to unlock asset on the destination chain.
addliquidity
Write
Loan your assets to the specified bridge.
removeliquidity
Write
Remove user liquidity across multiple chains.
Read
Returns a list of all the quotes on different bridges.
Write
Returns the aggregated prepared swap quotes for every Bridges, in which the swap is present.
/quoteaggregator
Returns a list of all the quotes for a pool on different Bridges.
GET
https://api.expand.network/bridge/quoteaggregator
Query Parameters
srcChainId
String
srcTokenSymbol*
String
Source token symbol
dstChainId*
String
dstTokenSymbol*
String
Destination token symbol
amountIn*
String
Amount of source token.
excludedBridges
String
Comma-separated values of bridges to exclude.
/swapaggregator
Returns the aggregated prepared swap quotes for every Bridges, in which the swap is present.
POST
https://api.expand.network/bridge/swapaggregator
Request Body
srcChainId
String
srcTokenSymbol*
String
Source token symbol
dstChainId*
String
dstTokenSymbol*
String
Destination token symbol
amountIn*
String
Amount of source token.
from*
String
Address of the sender of the token.
to*
String
Address of the recipient of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
excludedBridges
String
Comma-separated values of bridges to exclude.
bestNetPrice
Boolean
If true, the endpoint will sort the prepared transactions by amountsOut minus the amount of gas in descending order. Note: If you select "true" for the "bestQuote", "lowestGas" and "bestNetPrice" parameters, the "bestNetPrice" parameter will apply.
bestQuote
Boolean
If true, the endpoint will sort the prepared transactions by amountsOut (the best quote) in descending order Note: If you select "true" for the "bestQuote", "lowestGas" and "bestNetPrice" parameters, the "bestNetPrice" parameter will apply.
lowestGas
Boolean
If true, the endpoint will sort the prepared transactions by amount of gas in ascending order Note: If you select "true" for the "bestQuote", "lowestGas" and "bestNetPrice" parameters, the "bestNetPrice" parameter will apply.
gasPriority
String
low, medium, or high.
With gasPriority:
Last updated