pub struct GetTransactionResponse {Show 25 fields
pub amount: Amount,
pub bip125_replaceable: String,
pub blockhash: Option<BlockHash>,
pub blockheight: Option<u64>,
pub blockindex: Option<u64>,
pub blocktime: Option<u64>,
pub comment: Option<String>,
pub confirmations: i64,
pub decoded: Option<Value>,
pub details: Value,
pub fee: Option<Amount>,
pub generated: Option<bool>,
pub hex: String,
pub lastprocessedblock: Value,
pub mempoolconflicts: Value,
pub parent_descs: Option<Value>,
pub replaced_by_txid: Option<String>,
pub replaces_txid: Option<String>,
pub time: u64,
pub timereceived: u64,
pub to: Option<String>,
pub trusted: Option<bool>,
pub txid: Txid,
pub walletconflicts: Value,
pub wtxid: String,
}Expand description
Response for the GetTransaction RPC method
Fields§
§amount: AmountThe amount in BTC
bip125_replaceable: String(“yes|no|unknown”) Whether this transaction signals BIP125 replaceability or has an unconfirmed ancestor signaling BIP125 replaceability. May be unknown for unconfirmed transactions not in the mempool because their unconfirmed ancestors are unknown.
blockhash: Option<BlockHash>The block hash containing the transaction.
blockheight: Option<u64>The block height containing the transaction.
blockindex: Option<u64>The index of the transaction in the block that includes it.
blocktime: Option<u64>The block time expressed in UNIX epoch time.
comment: Option<String>If a comment is associated with the transaction, only present if not empty.
confirmations: i64The number of confirmations for the transaction. Negative confirmations means the transaction conflicted that many blocks ago.
decoded: Option<Value>The decoded transaction (only present when verbose is passed)
details: Value§fee: Option<Amount>The amount of the fee in BTC. This is negative and only available for the ‘send’ category of transactions.
generated: Option<bool>Only present if the transaction’s only input is a coinbase one.
hex: StringRaw data for transaction
lastprocessedblock: Valuehash and height of the block this information was generated on
mempoolconflicts: ValueTransactions in the mempool that directly conflict with either this transaction or an ancestor transaction
parent_descs: Option<Value>Only if ‘category’ is ‘received’. List of parent descriptors for the output script of this coin.
replaced_by_txid: Option<String>Only if ‘category’ is ‘send’. The txid if this tx was replaced.
replaces_txid: Option<String>Only if ‘category’ is ‘send’. The txid if this tx replaces another.
time: u64The transaction time expressed in UNIX epoch time.
timereceived: u64The time received expressed in UNIX epoch time.
to: Option<String>If a comment to is associated with the transaction.
trusted: Option<bool>Whether we consider the transaction to be trusted and safe to spend from. Only present when the transaction has 0 confirmations (or negative confirmations, if conflicted).
txid: TxidThe transaction id.
walletconflicts: ValueConfirmed transactions that have been detected by the wallet to conflict with this transaction.
wtxid: StringThe hash of serialized transaction, including witness data.
Trait Implementations§
Source§impl Clone for GetTransactionResponse
impl Clone for GetTransactionResponse
Source§fn clone(&self) -> GetTransactionResponse
fn clone(&self) -> GetTransactionResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more