Module Evm_node_lib_dev_encoding.Transaction_receipt

type t = {
  1. transactionHash : Ethereum_types.hash;
  2. transactionIndex : Ethereum_types.quantity;
  3. blockHash : Ethereum_types.block_hash;
  4. blockNumber : Ethereum_types.quantity;
  5. from : Ethereum_types.address;
  6. to_ : Ethereum_types.address option;
  7. cumulativeGasUsed : Ethereum_types.quantity;
  8. effectiveGasPrice : Ethereum_types.quantity;
  9. gasUsed : Ethereum_types.quantity;
  10. logs : Ethereum_types.transaction_log list;
  11. logsBloom : Ethereum_types.hex;
  12. type_ : Ethereum_types.quantity;
  13. status : Ethereum_types.quantity;
  14. contractAddress : Ethereum_types.address option;
}
val of_rlp_item : Ethereum_types.block_hash -> Rlp.item -> t
val of_rlp_bytes : Ethereum_types.block_hash -> bytes -> t
val decode_last_from_list : Ethereum_types.block_hash -> bytes -> t
val decode_nth_from_list : index:int -> Ethereum_types.block_hash -> bytes -> t option Tezos_base.TzPervasives.tzresult

decode_nth_from_list ~index block_hash bytes decodes the receipt at position index in the RLP list of receipts bytes, if any. Returns None if the index is out of bounds, and an error if bytes is not an RLP list or if the receipt at index is malformed.