Struct hyperfuel_format::Transaction
source · pub struct Transaction {Show 41 fields
pub block_height: UInt,
pub id: Hash,
pub input_asset_ids: Option<Vec<Hash>>,
pub input_contracts: Option<Vec<FixedSizeData<32>>>,
pub input_contract_utxo_id: Option<Hash>,
pub input_contract_balance_root: Option<Hash>,
pub input_contract_state_root: Option<Hash>,
pub input_contract_tx_pointer_block_height: Option<UInt>,
pub input_contract_tx_pointer_tx_index: Option<UInt>,
pub input_contract: Option<FixedSizeData<32>>,
pub policies_tip: Option<UInt>,
pub policies_witness_limit: Option<UInt>,
pub policies_maturity: Option<UInt>,
pub policies_max_fee: Option<UInt>,
pub script_gas_limit: Option<UInt>,
pub maturity: Option<UInt>,
pub mint_amount: Option<UInt>,
pub mint_asset_id: Option<Hash>,
pub mint_gas_price: Option<UInt>,
pub tx_pointer_block_height: Option<UInt>,
pub tx_pointer_tx_index: Option<UInt>,
pub tx_type: TransactionType,
pub output_contract_input_index: Option<UInt>,
pub output_contract_balance_root: Option<Hash>,
pub output_contract_state_root: Option<Hash>,
pub witnesses: Option<Data>,
pub receipts_root: Option<Hash>,
pub status: TransactionStatus,
pub time: UInt,
pub reason: Option<String>,
pub script: Option<Data>,
pub script_data: Option<Data>,
pub bytecode_witness_index: Option<UInt>,
pub bytecode_root: Option<Hash>,
pub subsection_index: Option<UInt>,
pub subsections_number: Option<UInt>,
pub proof_set: Option<Data>,
pub consensus_parameters_upgrade_purpose_witness_index: Option<UInt>,
pub consensus_parameters_upgrade_purpose_checksum: Option<Data>,
pub state_transition_upgrade_purpose_root: Option<Hash>,
pub salt: Option<Data>,
}Expand description
An object containing information about a transaction.
Fields§
§block_height: UIntblock the transaction is in.
id: HashA unique transaction id.
input_asset_ids: Option<Vec<Hash>>An array of asset ids used for the transaction inputs.
input_contracts: Option<Vec<FixedSizeData<32>>>An array of contracts used for the transaction inputs.
input_contract_utxo_id: Option<Hash>A contract used for the transaction input. A unique 32 byte identifier for the UTXO for a contract used for the transaction input.
input_contract_balance_root: Option<Hash>The root of amount of coins owned by contract before transaction execution for a contract used for the transaction input.
input_contract_state_root: Option<Hash>The state root of contract before transaction execution for a contract used for the transaction input.
input_contract_tx_pointer_block_height: Option<UInt>A pointer to the TX whose output is being spent for a contract used for the transaction input.
input_contract_tx_pointer_tx_index: Option<UInt>A pointer to the TX whose output is being spent for a contract used for the transaction input.
input_contract: Option<FixedSizeData<32>>The contract id for a contract used for the transaction input.
policies_tip: Option<UInt>§policies_witness_limit: Option<UInt>§policies_maturity: Option<UInt>§policies_max_fee: Option<UInt>§script_gas_limit: Option<UInt>The gas limit for the script.
maturity: Option<UInt>The minimum block height that the transaction can be included at.
mint_amount: Option<UInt>The amount minted in the transaction.
mint_asset_id: Option<Hash>The asset ID for coins minted in the transaction.
mint_gas_price: Option<UInt>§tx_pointer_block_height: Option<UInt>The location of the transaction in the block.
tx_pointer_tx_index: Option<UInt>§tx_type: TransactionTypeScript, creating a new contract, or minting new coins
output_contract_input_index: Option<UInt>The index of the input from a transaction that changed the state of a contract.
output_contract_balance_root: Option<Hash>The root of amount of coins owned by contract after transaction execution from a transaction that changed the state of a contract.
output_contract_state_root: Option<Hash>The state root of contract after transaction execution from a transaction that changed the state of a contract.
witnesses: Option<Data>An array of witnesses.
receipts_root: Option<Hash>The root of the receipts.
status: TransactionStatusThe status type of the transaction.
time: UIntfor SubmittedStatus, SuccessStatus, and FailureStatus, the time a transaction was submitted, successful, or failed
reason: Option<String>for SuccessStatus, the state of the program execution for SqueezedOutStatus & FailureStatus, the reason the transaction was squeezed out or failed
script: Option<Data>The script to execute.
script_data: Option<Data>The script input parameters.
bytecode_witness_index: Option<UInt>The witness index of contract bytecode.
bytecode_root: Option<Hash>§subsection_index: Option<UInt>§subsections_number: Option<UInt>§proof_set: Option<Data>§consensus_parameters_upgrade_purpose_witness_index: Option<UInt>§consensus_parameters_upgrade_purpose_checksum: Option<Data>§state_transition_upgrade_purpose_root: Option<Hash>§salt: Option<Data>The salt value for the transaction.
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Transaction
impl Debug for Transaction
source§impl Default for Transaction
impl Default for Transaction
source§fn default() -> Transaction
fn default() -> Transaction
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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>,
source§impl PartialEq for Transaction
impl PartialEq for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
self and other values to be equal, and is used
by ==.