Allbridge Classic
/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 | |
srcChainId* | String | |
dstChainId* | String | |
srcTokenSymbol* | String | Source token symbol. |
amountIn* | String | Amount of token. |
/getsupportedchains
Retrieves the list of chains supported by Allbridge Classic , on expand.network.
GET
https://api.expand.network/bridge/getsupportedchains
Query Parameter
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
bridgeId* | String |
/getsupportedtokens
Retrieves the list of tokens supported by Allbridge Classic, on expand.network.
GET
https://api.expand.network/bridge/getsupportedtokens
Query Parameter
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
bridgeId* | String | |
chainId* | String |
/getsignature
Retrieves the signature details using the transaction hash of swap.
GET
https://api.expand.network/bridge/getsignature
Query Parameter
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
bridgeId* | String | |
transactionHash* | String | Transaction hash. |
/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 | |
transactionHash* | String | Transaction hash. |
srcChainId | String |
/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 | |
srcChainId* | String | |
dstChainId* | String | |
srcTokenSymbol* | String | Source 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. |
With Gas Priority
/unlock
Initiate the transaction to unlock asset on the destination chain.
POST
https://api.expand.network/bridge/unlock
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
bridgeId* | String | |
srcChainId* | String | |
dstChainId* | String | |
dstTokenSymbol* | String | Destination token symbol. |
amount* | String | Amount of token. |
gas* | String | Maximum gas limit provided by the sender, for the transaction. |
gas priority | String | Low, medium, or high. |
receiver* | String | Address of the receiver. |
primarySignature* | String | Signature required for EVM to EVM to unlock transaction. |
secondarySignature | String | Signature required for Stellar to EVM or vice - versa to unlock transaction. |
lockId* | String | Lock Id. |
With Gas Priority
Last updated