Get Transaction Status

This document provides information on how to use the Transaction Status API and its corresponding SDK.

🚧

Warning

This is an advanced guide. Make sure you've gone through the previous guides to understand the basics of the API.


You can retrieve the status of a local transaction using its transaction ID and chain ID. For a cross-chain transaction, you need to provide the

Parameters for calling the endpoint:

transactionID (required): The ID of the transaction is to be checked.
fromChain (required): The chain ID where the transaction originated.
toChain (optional): The destination chain ID for cross-chain transactions.
targetID (optional): Additional identifier for the transaction.


cURL command example

You may obtain the status of transaction 0x35...de3 on Optimism by running:

curl -X GET 'https://svc.blockdaemon.com/defi/status?fromChain=eip155%3A10&toChain=eip155%3A10&transactionID=0x35e4ec1d27b14216b4e441187230424d2a309d3940b367112ba0a2bdd2ff0de3' \ -H 'Accept: application/json' -H 'Authorization: Bearer $API_KEY'

Code Example

This script sets up a status request for a transaction that specifies the involved chains and transaction hash (transaction ID).

To run the script, use the command:

npx ts-node src/main/scripts/get-status.ts

📘

Info:

For more information, refer to Get Transaction Status endpoint.

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.