Struct bitcoind_json_rpc_types::v26::GetTxOut
source · pub struct GetTxOut {
pub best_block: String,
pub confirmations: u64,
pub value: u64,
pub script_pubkey: ScriptPubkey,
pub coinbase: bool,
}Expand description
Result of JSON-RPC method gettxout.
gettxout “txid” n ( include_mempool )
Returns details about an unspent transaction output.
Arguments:
- txid (string, required) The transaction id
- n (numeric, required) vout number
- include_mempool (boolean, optional, default=true) Whether to include the mempool. Note that an unspent output that is spent in the mempool won’t appear.
Fields§
§best_block: StringThe hash of the block at the tip of the chain.
confirmations: u64The number of confirmations.
value: u64The transaction value in BTC.
script_pubkey: ScriptPubkeyThe script pubkey.
coinbase: boolCoinbase or not.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GetTxOut
impl<'de> Deserialize<'de> for GetTxOut
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for GetTxOut
impl PartialEq for GetTxOut
impl Eq for GetTxOut
impl StructuralPartialEq for GetTxOut
Auto Trait Implementations§
impl Freeze for GetTxOut
impl RefUnwindSafe for GetTxOut
impl Send for GetTxOut
impl Sync for GetTxOut
impl Unpin for GetTxOut
impl UnwindSafe for GetTxOut
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more