Struct bitcoind_json_rpc_regtest::json::GetTxOut
source · pub struct GetTxOut {
pub best_block: String,
pub confirmations: u32,
pub value: f64,
pub script_pubkey: ScriptPubkey,
pub coinbase: bool,
}
Available on crate feature
26_0
only.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: 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: ScriptPubkey
The script pubkey.
coinbase: bool
Coinbase or not.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for GetTxOut
impl<'de> Deserialize<'de> for GetTxOut
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetTxOut, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetTxOut, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for GetTxOut
impl PartialEq for GetTxOut
source§impl Serialize for GetTxOut
impl Serialize for GetTxOut
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more