The AI Agent SDK enables efficient transaction management on Cronos Chains by providing features for querying transactions by address or hash. It also supports fetching transaction statuses, making it easy to track and verify blockchain activities accurately.
This functionality allows developers to build AI agents capable of monitoring and analyzing transactions in real-time, enhancing their applications' reliability and responsiveness.
3.1 Get transaction by hash
Retrieve transaction details for the specified hash using the Crypto.com developer platform.
Example Query
Query: "Get transaction of transaction hash <example-hash>"
Example Response
The transaction details for the hash **example-hash** are as follows:
Status: example-status
Block Number: example-block-number
From Address: example-from
To Address: example-to
Value: example-value
Gas Price: example-gas-price
Nonce: example-nonce
Transaction Index: example-transaction-index
Gas Used: example-gas-used
Query Arguments
hash (str): The hash of the transaction to retrieve.
Query Returns
str: A formatted string containing the transaction details.