Aptos Bridge

Supported Chains

Available on Ethereum, Optimism, Binance Smart Chain, Polygon, Aptos, Arbitrum, Avalanche

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.

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

/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.

https://api.expand.network/bridge/getsupportedtokens?bridgeId=700

/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?bridgeId=700&srcChainId=1400&amountIn=10000000000000&srcTokenSymbol=usdc&dstChainId=1&dstTokenSymbol=usdc

/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=700&transactionHash=0x265a27de084fadb2747ce263c8a5c994b58a2290cfd4274c9329f362e9f83e19WZ2wTaf

/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.

{
    "amountIn": "10647857100000",
    "amountOutMin": "0",
    "dstChainId": "1",
    "srcChainId": "1400",
    "to": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
    "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "ETH",
    "gas": "100",
    "bridgeId": "700"
}

With Gas Priority

{
    "amountIn": "10647857100000",
    "amountOutMin": "0",
    "dstChainId": "1",
    "srcChainId": "1400",
    "to": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
    "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "ETH",
    "gas": "100",
    "gasPriority":"high",
    "bridgeId": "700"
}

Last updated