Struct hyperfuel_format::Receipt
source · pub struct Receipt {Show 31 fields
pub receipt_index: UInt,
pub root_contract_id: Option<FixedSizeData<32>>,
pub tx_id: Hash,
pub block_height: UInt,
pub pc: Option<UInt>,
pub is: Option<UInt>,
pub to: Option<FixedSizeData<32>>,
pub to_address: Option<Address>,
pub amount: Option<UInt>,
pub asset_id: Option<Hash>,
pub gas: Option<UInt>,
pub param1: Option<UInt>,
pub param2: Option<UInt>,
pub val: Option<UInt>,
pub ptr: Option<UInt>,
pub digest: Option<Hash>,
pub reason: Option<UInt>,
pub ra: Option<UInt>,
pub rb: Option<UInt>,
pub rc: Option<UInt>,
pub rd: Option<UInt>,
pub len: Option<UInt>,
pub receipt_type: ReceiptType,
pub result: Option<UInt>,
pub gas_used: Option<UInt>,
pub data: Option<Data>,
pub sender: Option<Address>,
pub recipient: Option<Address>,
pub nonce: Option<Quantity>,
pub contract_id: Option<FixedSizeData<32>>,
pub sub_id: Option<Hash>,
}Expand description
An object representing all possible types of receipts.
Fields§
§receipt_index: UIntIndex of the receipt in the block
root_contract_id: Option<FixedSizeData<32>>Contract that produced the receipt
tx_id: Hashtransaction that this receipt originated from
block_height: UIntblock that the receipt originated in
pc: Option<UInt>The value of the program counter register $pc, which is the memory address of the current instruction.
is: Option<UInt>The value of register $is, which is the pointer to the start of the currently-executing code.
to: Option<FixedSizeData<32>>The recipient contract
to_address: Option<Address>The recipient address
amount: Option<UInt>The amount of coins transferred.
asset_id: Option<Hash>The asset id of the coins transferred.
gas: Option<UInt>The gas used for the transaction.
param1: Option<UInt>The first parameter for a CALL receipt type, holds the function selector.
param2: Option<UInt>The second parameter for a CALL receipt type, typically used for the user-specified input to the ABI function being selected.
val: Option<UInt>The value of registers at the end of execution, used for debugging.
ptr: Option<UInt>The value of the pointer register, used for debugging.
digest: Option<Hash>A 32-byte hash of MEM[$rC, $rD]. The syntax MEM[x, y] means the memory range starting at byte x, of length y bytes.
reason: Option<UInt>The decimal string representation of an 8-bit unsigned integer for the panic reason. Only returned if the receipt type is PANIC.
ra: Option<UInt>The value of register $rA.
rb: Option<UInt>The value of register $rB.
rc: Option<UInt>The value of register $rC.
rd: Option<UInt>The value of register $rD.
len: Option<UInt>The length of the receipt.
receipt_type: ReceiptTypeThe type of receipt.
result: Option<UInt>0 if script exited successfully, any otherwise.
gas_used: Option<UInt>The amount of gas consumed by the script.
data: Option<Data>The receipt data.
sender: Option<Address>The address of the message sender.
recipient: Option<Address>The address of the message recipient.
nonce: Option<Quantity>The nonce value for a message.
contract_id: Option<FixedSizeData<32>>Current context if in an internal context. null otherwise
sub_id: Option<Hash>The sub id.