The transaction-get
command in Mintlayer is used to retrieve detailed information about a specific transaction from the wallet database. This command is essential for users who need to access detailed data about a particular transaction, such as its inputs, outputs, signatures, and current confirmation status.
transaction-get <TRANSACTION_ID>
<TRANSACTION_ID>
: The ID of the transaction you wish to retrieve, provided as a hex-encoded string.-h, --help
: Displays help information about the transaction-get
command.Retrieving a Specific Transaction:
To get detailed information about a transaction, use its transaction ID as follows:
transaction-get c6aebb7caaa20a4962cacf511526c69d145dcdd7126e30dc903fec6d8e53bab4
The output will provide comprehensive details of the transaction, such as:
TxData { tx: SignedTransaction { transaction: V1(TransactionV1 { version: VersionTag(Tag), flags: 0, inputs: [Utxo(UtxoOutPoint { id: Transaction(Id<Transaction>{0x4c8eeddd95881c206fea079b81f1dcb1646e353450faf1214427bc57c2805763}), index: 1 })], outputs: [Transfer(Coin(Amount { val: 100000000000 }), Address(0x21ad21ace4af262e5c57c6b7e7a08b5f4287a311)), Transfer(Coin(Amount { val: 8889899778296786 }), Address(0x2c1c0c64d1a355e180aafa4cb982e6d66bb2ea4d))] }), signatures: [...] }, state: Confirmed(BlockHeight(126843), BlockTimestamp { timestamp: 1705777670 }, 0) }
This includes the transaction version, inputs, outputs, signatures, and its state in the blockchain (e.g., confirmed with a specific block height and timestamp).