pub struct GetTxOut {
pub best_block: String,
pub confirmations: i64,
pub value: f64,
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: i64The number of confirmations.
value: f64The transaction value in BTC.
script_pubkey: ScriptPubkeyThe script pubkey.
coinbase: boolCoinbase 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 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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