In case we want to check the status of a cross-chain transaction, we can use Socket's Bridge-Status
API to determine if the transaction has gone through and what bridge was used
- Head over to Socket Swagger & enter the transactionHash, fromChainId and toChainId.
- Use the public API Key :
645b2c8c-5825-4930-baf3-d9b997fcd88c
- Bridge Name is not mandatory to be filled in
- This API will return whether the transaction is processed on the destination chain or not and also returns the destinationHash if it’s processed
- This API can be used to check if a user has received their funds on the destination chain.
Example of response :
-
If the API shows destinationTxStatus as “PENDING”, the user hasn’t received their funds yet. Note : The
Bridge-Status
may be delayed by a few seconds at times