pub struct DecodeRawTransactionHexRis {Show 28 fields
pub locktime: i32,
pub transaction_hash: String,
pub v_size: i32,
pub version: i32,
pub vin: Vec<DecodeRawTransactionHexRiszVin>,
pub vout: Vec<DecodeRawTransactionHexRiszVout>,
pub weight: Option<i32>,
pub approximate_fee: Option<String>,
pub approximate_minimum_required_fee: Option<String>,
pub gas_limit: String,
pub gas_paid_for_data: Option<String>,
pub gas_price: Option<String>,
pub input_data: Option<String>,
pub max_fee_per_gas: Option<String>,
pub max_fee_priority_per_gas: Option<String>,
pub nonce: i32,
pub r: Option<String>,
pub recipient: String,
pub s: Option<String>,
pub sender: String,
pub _type: i32,
pub v: Option<String>,
pub value: Option<String>,
pub expiry_height: i32,
pub overwintered: bool,
pub saplinged: bool,
pub value_balance: String,
pub version_group_id: String,
}
Expand description
DecodeRawTransactionHexRis : Represents the specific transaction data according to the blockchain
Fields
locktime: i32
Represents the locktime on the transaction on the specific blockchain, i.e. the blockheight at which the transaction is valid.
transaction_hash: String
Represents the same as transactionId for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols hash is different from transactionId for SegWit transactions.
v_size: i32
Represents the virtual size of this transaction.
version: i32
Represents the transaction version number.
vin: Vec<DecodeRawTransactionHexRiszVin>
Represents the Inputs of the transaction
vout: Vec<DecodeRawTransactionHexRiszVout>
Represents the Inputs of the transaction
weight: Option<i32>
Represents the size of a block, measured in weight units and including the segwit discount.
approximate_fee: Option<String>
Defines the approximate fee value. When isConfirmed is True - Defines the amount of the transaction fee When isConfirmed is False - For ETH-based blockchains this attribute represents the max fee value.
approximate_minimum_required_fee: Option<String>
Defines the approximate minimum fee that is required for the transaction.
gas_limit: String
Represents the amount of gas used by this specific transaction alone.
gas_paid_for_data: Option<String>
Represents the amount of gas paid for the data in the transaction.
gas_price: Option<String>
Represents the price offered to the miner to purchase this amount of gas.
input_data: Option<String>
Represents additional information that is required for the transaction.
max_fee_per_gas: Option<String>
Defines the maximum amount that customer is willing to pay per unit of gas to get his transaction included in a block.
max_fee_priority_per_gas: Option<String>
Represents determined by the user value that is paid directly to miners.
nonce: i32
Represents the sequential running number for an address, starting from 0 for the first transaction. E.g., if the nonce of a transaction is 10, it would be the 11th transaction sent from the sender’s address.
r: Option<String>
Represents output of an ECDSA signature.
recipient: String
The address which receives this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one recipient.
s: Option<String>
Represents output of an ECDSA signature.
sender: String
Represents the address which sends this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one sender.
_type: i32
Specifies the transaction type as one from three options: if response returns a \"0\"
it means the raw transaction includes legacy transaction data, if it is \"1\"
- includes access lists for EIP2930, and if it is \"2\"
- EIP1559 data.
v: Option<String>
Defines the the recovery id.
value: Option<String>
Represents the sent/received amount.
expiry_height: i32
Represents a block height after which the transaction will expire.
overwintered: bool
"Overwinter" is the network upgrade for the Zcash blockchain.
saplinged: bool
Defines if the transaction includes sapling or not.
value_balance: String
Defines the transaction value balance.
version_group_id: String
Represents the transaction version group ID
Implementations
sourceimpl DecodeRawTransactionHexRis
impl DecodeRawTransactionHexRis
sourcepub fn new(
locktime: i32,
transaction_hash: String,
v_size: i32,
version: i32,
vin: Vec<DecodeRawTransactionHexRiszVin>,
vout: Vec<DecodeRawTransactionHexRiszVout>,
gas_limit: String,
nonce: i32,
recipient: String,
sender: String,
_type: i32,
expiry_height: i32,
overwintered: bool,
saplinged: bool,
value_balance: String,
version_group_id: String
) -> DecodeRawTransactionHexRis
pub fn new(
locktime: i32,
transaction_hash: String,
v_size: i32,
version: i32,
vin: Vec<DecodeRawTransactionHexRiszVin>,
vout: Vec<DecodeRawTransactionHexRiszVout>,
gas_limit: String,
nonce: i32,
recipient: String,
sender: String,
_type: i32,
expiry_height: i32,
overwintered: bool,
saplinged: bool,
value_balance: String,
version_group_id: String
) -> DecodeRawTransactionHexRis
Represents the specific transaction data according to the blockchain
Trait Implementations
sourceimpl Clone for DecodeRawTransactionHexRis
impl Clone for DecodeRawTransactionHexRis
sourcefn clone(&self) -> DecodeRawTransactionHexRis
fn clone(&self) -> DecodeRawTransactionHexRis
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecodeRawTransactionHexRis
impl Debug for DecodeRawTransactionHexRis
sourceimpl<'de> Deserialize<'de> for DecodeRawTransactionHexRis
impl<'de> Deserialize<'de> for DecodeRawTransactionHexRis
sourcefn 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
sourceimpl PartialEq<DecodeRawTransactionHexRis> for DecodeRawTransactionHexRis
impl PartialEq<DecodeRawTransactionHexRis> for DecodeRawTransactionHexRis
sourcefn eq(&self, other: &DecodeRawTransactionHexRis) -> bool
fn eq(&self, other: &DecodeRawTransactionHexRis) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for DecodeRawTransactionHexRis
Auto Trait Implementations
impl RefUnwindSafe for DecodeRawTransactionHexRis
impl Send for DecodeRawTransactionHexRis
impl Sync for DecodeRawTransactionHexRis
impl Unpin for DecodeRawTransactionHexRis
impl UnwindSafe for DecodeRawTransactionHexRis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more