Monitoring Transactions
Track transaction status using multiple methods.
Get Transaction Status
Query by transaction ID, source hash, or destination hash:
// By transaction ID
const status = await orda.transactions.getStatus({
transactionId: 'tx-id'
});
// By source hash
const status = await orda.transactions.getStatus({
sourceHash: '0xabcd...'
});
// By destination hash
const status = await orda.transactions.getStatus({
destinationHash: '0x1234...'
});Status Response
Wait for Completion
Poll automatically until a terminal status:
Get Successful Transactions
Retrieve all successful transactions:
Transaction Statuses
Error Handling
Inspect error.statusCode, error.code, and error.details when catching OrdaError to determine the cause and handle it appropriately.
Last updated