Struct hyperfuel_format::Input
source · pub struct Input {Show 20 fields
pub tx_id: Hash,
pub block_height: UInt,
pub input_type: InputType,
pub utxo_id: Option<Hash>,
pub owner: Option<Address>,
pub amount: Option<UInt>,
pub asset_id: Option<Hash>,
pub tx_pointer_block_height: Option<UInt>,
pub tx_pointer_tx_index: Option<UInt>,
pub witness_index: Option<UInt>,
pub predicate_gas_used: Option<UInt>,
pub predicate: Option<Data>,
pub predicate_data: Option<Data>,
pub balance_root: Option<Hash>,
pub state_root: Option<Hash>,
pub contract: Option<FixedSizeData<32>>,
pub sender: Option<Address>,
pub recipient: Option<Address>,
pub nonce: Option<Data>,
pub data: Option<Data>,
}Expand description
An object representing all possible types of inputs. InputCoin, InputContract, InputMessage
Fields§
§tx_id: Hashtransaction that this input originated from
block_height: UIntblock that the input originated in
input_type: InputTypeInputCoin, InputContract, or InputMessage
utxo_id: Option<Hash>A unique 32 byte identifier for the UTXO.
owner: Option<Address>The owning address or predicate root.
amount: Option<UInt>for InputCoin type: The amount of coins. for InputMessage type: The amount sent in the message.
asset_id: Option<Hash>The asset ID of the coins.
tx_pointer_block_height: Option<UInt>A pointer to the transaction whose output is being spent.
tx_pointer_tx_index: Option<UInt>§witness_index: Option<UInt>The index of the witness that authorizes spending the coin.
predicate_gas_used: Option<UInt>The amount of gas used in the predicate transaction.
predicate: Option<Data>The predicate bytecode.
predicate_data: Option<Data>The predicate input parameters.
balance_root: Option<Hash>The root of amount of coins owned by contract before transaction execution.
state_root: Option<Hash>The state root of contract before transaction execution.
contract: Option<FixedSizeData<32>>The input contract.
sender: Option<Address>The sender address of the message.
recipient: Option<Address>The recipient address of the message.
nonce: Option<Data>A nonce value for the message input, which is determined by the sending system and is published at the time the message is sent.
data: Option<Data>The message data.