Allbridge Core

Supported Chains

Available on Ethereum, Arbitrum, Avalanche, Base, Optimism, Binance Smart Chain, Tron, Polygon, Solana, Sui and Stellar

Available Endpoints:

Click on the endpoint to jump to the section with full details

  • /getprice GET - Returns the swap quotation for a given token pair.

  • /getsupportedchainsGET - Retrieves the list of chains supported by Allbridge Core , on expand.network.

  • /getsupportedtokensGET - Retrieves the list of tokens supported by Allbridge Core, on expand.network.

  • /gettransaction GET - Retrieves the details of the transaction.

  • /swap POST - Initiates a transaction to swap assets accross multiple chains.

Bridge ID

Many endpoints have a parameter where you can provide a Bridge ID.

Below is a list of Bridge ID related to Allbridge Core. Please see the Bridge ID Page for a complete Bridge ID list and more information.

Bridge Name
Bridge ID

Allbridge Core

400

Endpoint Details

/getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

GET https://api.expand.network/bridge/getsupportedchains

Query Parameters

Name
Type
Description

bridgeId*

String

Refer to the Bridge ID page for details.

rpc

String

Remote procedural call URL.

https://api.expand.network/bridge/getsupportedchains?bridgeId=400

/getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

GET https://api.expand.network/bridge/getsupportedtokens

Query Parameters

Name
Type
Description

bridgeId*

String

Refer to the Bridge ID page for details.

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

https://api.expand.network/bridge/getsupportedtokens?bridgeId=400&chainId=1

/getprice

Get the swap quotation for the given token pairs.

GET https://api.expand.network/bridge/getprice

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

srcChainId

String

Chain Id of the source chain. By default, Ethereum chain

dstChainId*

String

Chain Id of the destination chain.

srcTokenSymbol*

String

Source token symbol.

dstTokenSymbol*

String

Destination token symbol.

amountIn*

String

Amount of token.

https://api.expand.network/bridge/getprice?amountIn=1000000&srcChainId=900&dstChainId=900&srcTokenSymbol=usdc&dstTokenSymbol=usdt&bridgeId=400

/gettransaction

Retrieves the details of the transaction.

GET https://api.expand.network/bridge/gettransaction

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

transactionHash*

String

Transaction hash.

srcChainId

String

Chain Id of the source chain. If txn involve Stellar, use Stellar chainId as srcChainId

https://api.expand.network/bridge/gettransaction?bridgeId=400&srcChainId=900&transactionHash=3uTxUbsYbXYL6xNjdxZZaqt7R69ZzgEPDZzVF5JG8pnM8AxJhVJAUEfE5eysEJvfJsGpbfuzoYE6z286KWZ2wTaf

/swap

Initiates a transaction to swap assets accross multiple chains.

POST https://api.expand.network/bridge/swap

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

srcChainId*

String

Chain Id of the source chain.

dstChainId*

String

Chain Id of the destination chain.

srcTokenSymbol*

String

Source token symbol.

dstTokenSymbol*

String

Destination token symbol.

amountIn*

String

Amount of token.

gas*

String

Maximum gas limit provided by the sender, for the transaction.

gas priority

String

Low, medium, or high.

from*

String

Address of the sender of the token.

to*

String

Address of the recipient of the token.

ofacCheck

Boolean

if true,provides insights of the contract and tokens involved in the transaction. By Default, false Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet

{
    "to": "0x0CDA40b49c94502cdb58d4Ec507Fc4c842D8AF47",
    "from": "53unSgGWqEWANcPYRF35B2Bgf8BkszUtcccKiXwGGLyr",
    "srcChainId": "900",
    "dstChainId": "1",
    "srcTokenSymbol": "USDt",
    "dstTokenSymbol": "USDC",
    "bridgeId": "400",
    "amountIn": "10000000",
    "gas": "30000"
}

With Gas Priority

{
    "to": "TT2T17KZhoDu47i2E4FWxfG79zdkEWkU9N",
    "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "srcChainId": "1",
    "dstChainId": "1000",
    "srcTokenSymbol": "usdc",
    "dstTokenSymbol": "usdt",
    "bridgeId": "400",
    "amountIn": "1000000",
    "gas": "30000",
    "gasPriority":"high"
}

With ofacCheck

{
    "to": "TT2T17KZhoDu47i2E4FWxfG79zdkEWkU9N",
    "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "srcChainId": "1",
    "dstChainId": "1000",
    "srcTokenSymbol": "usdc",
    "dstTokenSymbol": "usdt",
    "bridgeId": "400",
    "amountIn": "1000000",
    "gas": "30000",
    "gasPriority":"high",
    "ofacCheck": true
}

Last updated