AppController_getBridgeStatusT2B
GEThttps://api.socket.tech/v2/bridge-status-t2b
AppController_getBridgeStatusT2B
Request​
Query Parameters
Transaction hash originating from the source chain while bridging assets.
ID of source chain, e.g Ethereum Mainnet = 1
Header Parameters
Responses​
- 200
Returns the status of the bridging transaction if completed or pending.
- application/json
- Schema
- Example (from schema)
Schema
Status of API.
result
object
required
Source Transaction.
Possible values: [PENDING
, COMPLETED
]
Status of source transaction while bridging.
Destination Transaction hash.
Possible values: [PENDING
, COMPLETED
]
Status of destination transaction while bridging.
Source Chain Id
Destination Chain Id.
fromAsset
object
required
Name of token.
Address of token.
URL for icon of token.
Decimal used for token.
Symbol of token.
Possible values: [MAINNET_CHAIN_ID
, OPTIMISM_CHAIN_ID
, BSC_CHAIN_ID
, XDAI_CHAIN_ID
, POLYGON_CHAIN_ID
, FANTOM_CHAIN_ID
, ZKSYNC_ERA_CHAIN_ID
, POLYGON_ZKEVM_CHAIN_ID
, MANTLE_CHAIN_ID
, BASE_CHAIN_ID
, MODE_CHAIN_ID
, ARBITRUM_CHAIN_ID
, AVAX_CHAIN_ID
, LINEA_CHAIN_ID
, BLAST_CHAIN_ID
, SCROLL_CHAIN_ID
, ZORA_CHAIN_ID
, AURORA_CHAIN_ID
]
Chain id of the token
URL for icon of token.
Unique Id over all chains
toAsset
object
required
Name of token.
Address of token.
URL for icon of token.
Decimal used for token.
Symbol of token.
Possible values: [MAINNET_CHAIN_ID
, OPTIMISM_CHAIN_ID
, BSC_CHAIN_ID
, XDAI_CHAIN_ID
, POLYGON_CHAIN_ID
, FANTOM_CHAIN_ID
, ZKSYNC_ERA_CHAIN_ID
, POLYGON_ZKEVM_CHAIN_ID
, MANTLE_CHAIN_ID
, BASE_CHAIN_ID
, MODE_CHAIN_ID
, ARBITRUM_CHAIN_ID
, AVAX_CHAIN_ID
, LINEA_CHAIN_ID
, BLAST_CHAIN_ID
, SCROLL_CHAIN_ID
, ZORA_CHAIN_ID
, AURORA_CHAIN_ID
]
Chain id of the token
URL for icon of token.
Unique Id over all chains
Price of the input token
Price of the outputToken token
Price of the outputToken token
Price of the outputToken token
address of the sender
address of the recipient
identifies if its a socket tx or not.
Name of the bridge used
refuel
object
nullable
required
{
"success": true,
"result": {
"sourceTransactionHash": "0xa6574b28b36dceb147a7ff3ca06839f1f0835bcfd5f0409406fbc524412e281a",
"sourceTxStatus": "COMPLETED",
"destinationTransactionHash": "0xa6574b28b36dceb147a7ff3ca06839f1f0835bcfd5f0409406fbc524412e281a",
"destinationTxStatus": "COMPLETED",
"fromChainId": 1,
"toChainId": 137,
"fromAsset": {
"name": "USD Coin",
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"icon": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"decimals": 6,
"symbol": "USDC",
"chainId": 137,
"logoURI": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"chainAgnosticId": "DAI"
},
"toAsset": {
"name": "USD Coin",
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"icon": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"decimals": 6,
"symbol": "USDC",
"chainId": 137,
"logoURI": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"chainAgnosticId": "DAI"
},
"srcTokenPrice": "string",
"destTokenPrice": "string",
"fromAmount": "string",
"toAmount": "string",
"sender": "string",
"recipient": "string",
"isSocketTx": true,
"bridgeName": "string",
"refuel": {
"destinationTxStatus": "string",
"sourceTxStatus": "string",
"bridge": "string",
"status": "string",
"destinationTransactionHash": "string",
"recipient": "string",
"sender": "string",
"isSocketTx": true,
"fromAmount": "string",
"toAmount": "string",
"fromTokenAddress": "string",
"toTokenAddress": "string",
"isMultiBridge": true,
"destinationChainId": 0
}
}
}