dag_getPendingTransaction

Returns information about a pending transaction by hash.

Parameters

Name
Type
Description

TransactionHash

String<Hash>

Hash of the selected transaction.

Return Type

PendingTransaction | null - PendingTransaction object or null if not found.

PendingTransaction

type PendingTransaction = {
  transaction: {
    source: Address // Address of the sender
    destination: Address // Address of the receiver
    amount: Number // Amount sent in DATUM
    fee: Number // Fee sent in DATUM
    parent: {
      hash: String<Hash> // Hash of the parent transaction
      ordinal: Number // Ordinal of the parent transaction
    }
    salt: BigNumber | String // Salt
  }
  hash: String<Hash> // Hash of the transaction
  status: String // Status of the transaction. Currently there is only one status: "Waiting"
}

Example

Last updated

Was this helpful?