Skip to main content

Interface: Tx

A transaction on the blockchain or in the mempool.

Properties

block

block: undefined | BlockMetadata

Block data for this tx, or undefined if not mined yet.

Defined in

src/ChronikClient.ts:724


inputs

inputs: TxInput[]

Inputs of this transaction.

Defined in

src/ChronikClient.ts:713


isCoinbase

isCoinbase: boolean

Whether this tx is a coinbase tx.

Defined in

src/ChronikClient.ts:733


lockTime

lockTime: number

locktime field of the transaction, tx is not valid before this time.

Defined in

src/ChronikClient.ts:717


network

network: Network

Which network this tx is on.

Defined in

src/ChronikClient.ts:735


outputs

outputs: TxOutput[]

Outputs of this transaction.

Defined in

src/ChronikClient.ts:715


size

size: number

Serialized size of the tx.

Defined in

src/ChronikClient.ts:731


slpErrorMsg

slpErrorMsg: undefined | string

A human-readable message as to why this tx is not an SLP transaction, unless trivially so.

Defined in

src/ChronikClient.ts:722


slpTxData

slpTxData: undefined | SlpTxData

SLP data about this transaction, if valid.

Defined in

src/ChronikClient.ts:719


timeFirstSeen

timeFirstSeen: string

UNIX timestamp when this tx has first been seen in the mempool. 0 if unknown -> make sure to check.

Defined in

src/ChronikClient.ts:729


txid

txid: string

Transaction ID.

  • On BCH, eCash and Ergon, this is the hash of the tx.
  • On Lotus, this is a special serialization, omitting the input scripts.

Defined in

src/ChronikClient.ts:709


version

version: number

version field of the transaction.

Defined in

src/ChronikClient.ts:711