getTx

abstract fun getTx(txid: String): CanonicalTx?(source)

Get a single transaction from the wallet as a `WalletTx` (if the transaction exists).

WalletTx contains the full transaction alongside meta-data such as:

  • Blocks that the transaction is `Anchor`ed in. These may or may not be blocks that exist in the best chain.

  • The `ChainPosition` of the transaction in the best chain - whether the transaction is confirmed or unconfirmed. If the transaction is confirmed, the anchor which proves the confirmation is provided. If the transaction is unconfirmed, the unix timestamp of when the transaction was last seen in the mempool is provided.