pub struct RawTx {
Show 15 fields pub in_active_chain: bool, pub hex: String, pub txid: String, pub hash: String, pub size: u32, pub vsize: u32, pub weight: u32, pub version: u32, pub locktime: u32, pub vin: Vec<TxIn>, pub vout: Vec<TxOut>, pub blockhash: String, pub confirmations: u32, pub blocktime: u32, pub time: u32,
}
Expand description

The information returned by a get_raw_tx

Fields§

§in_active_chain: bool

Whether this tx is in our best known chain

§hex: String

The hex-encoded tx

§txid: String

Tha sha256d of the serialized transaction without witness

§hash: String

The sha256d of the serialized transaction including witness

§size: u32

The size this transaction occupies on disk

§vsize: u32

The virtual size of this transaction, as define by the segwit soft-fork

§weight: u32

The weight of this transacion, as defined by the segwit soft-fork

§version: u32

This transaction’s version. The current bigger version is 2

§locktime: u32

This transaction’s locktime

§vin: Vec<TxIn>

A list of inputs being spent by this transaction

See TxIn for more information about the contents of this

§vout: Vec<TxOut>

A list of outputs being created by this tx

Se TxOut for more information

§blockhash: String

The hash of the block that included this tx, if any

§confirmations: u32

How many blocks have been mined after this transaction’s confirmation including the block that confirms it. A zero value means this tx is unconfirmed

§blocktime: u32

The timestamp for the block confirming this tx, if confirmed

§time: u32

Same as blocktime

Trait Implementations§

source§

impl<'de> Deserialize<'de> for RawTx

source§

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 Serialize for RawTx

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for RawTx

§

impl Send for RawTx

§

impl Sync for RawTx

§

impl Unpin for RawTx

§

impl UnwindSafe for RawTx

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,