pub struct GetTxOut {
pub best_block: String,
pub confirmations: u32,
pub value: f64,
pub script_pubkey: Option<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
Fields§
§best_block: String
The hash of the block at the tip of the chain.
confirmations: u32
The number of confirmations.
value: f64
The transaction value in BTC.
script_pubkey: Option<ScriptPubkey>
The script pubkey.
coinbase: bool
Coinbase 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
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