Monitoring Transactions

Track transaction status using multiple methods.

Get Transaction Status

Query by transaction ID, source hash, or destination hash:

example.ts
// 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:

circle-info

The waitForCompletion helper will poll the transaction status at the supplied interval and call onStatusUpdate with intermediate updates. If a terminal status is reached or the timeout expires, the promise resolves/rejects accordingly.

Get Successful Transactions

Retrieve all successful transactions:

Transaction Statuses

Active

  • PENDING — Initiated

  • PROCESSING — In progress

  • WAITING_FOR_DEPOSIT — Awaiting funds

Terminal

  • COMPLETED — Success

  • FAILED — Failed

  • CANCELLED — Cancelled

  • REFUNDED — Refunded

Error Handling

circle-exclamation