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
inputs
• inputs: TxInput
[]
Inputs of this transaction.
Defined in
isCoinbase
• isCoinbase: boolean
Whether this tx is a coinbase tx.
Defined in
lockTime
• lockTime: number
locktime
field of the transaction, tx is not valid before this time.
Defined in
network
• network: Network
Which network this tx is on.
Defined in
outputs
• outputs: TxOutput
[]
Outputs of this transaction.
Defined in
size
• size: number
Serialized size of the tx.
Defined in
slpErrorMsg
• slpErrorMsg: undefined
| string
A human-readable message as to why this tx is not an SLP transaction, unless trivially so.
Defined in
slpTxData
• slpTxData: undefined
| SlpTxData
SLP data about this transaction, if valid.
Defined in
timeFirstSeen
• timeFirstSeen: string
UNIX timestamp when this tx has first been seen in the mempool. 0 if unknown -> make sure to check.
Defined in
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
version
• version: number
version
field of the transaction.