RathRath Finance
SDK Reference

Get Relay Status

SDK method to retrieve the current status and details of a submitted transaction.

getRelayStatus(txId)

Gets the current status of a submitted transaction.

const status = await tachyon.getRelayStatus('tx_id_here');

Parameters:

  • txId (string, required): The transaction ID returned from relay()

Returns: Promise<RelayStatusBase> - Transaction status object

Status Object Properties:

  • id: Transaction ID
  • status: Current status (EXECUTED, FAILED, NOT_PICKED_UP, PENDING, NEEDS_TO_BE_RETRIED)
  • to: Recipient address
  • callData: Transaction data
  • value: Amount in wei
  • chainId: Network ID
  • executionTxHash: On-chain transaction hash (null if not executed)
  • timestamp: Submission timestamp
  • latency: Execution latency in milliseconds
  • costUSD: Execution cost in USD
  • error: Error message (if failed)

On this page