Documentation

Receipt
in package

Receipt represents the outcome of a transaction, including logs, hash, deployed contract address, gas information, and other information.

Tags
author

DubbaThony

Table of Contents

Properties

$blockHash  : Hash
$blockNumber  : int
$contractAddress  : Address|null
$cumulativeGasUsed  : OOGmp
$effectiveGasPrice  : OOGmp
$from  : Address
$gasUsed  : int
$logs  : array<string|int, Log>
$logsBloom  : Bloom
$status  : bool
$to  : Address|null
$transactionHash  : Hash
$transactionIndex  : int
$type  : TransactionType

Methods

fromRPCArr()  : static
Constructs a Receipt object from an array received through RPC.

Properties

$blockNumber

public int $blockNumber

$transactionIndex

public int $transactionIndex

Methods

fromRPCArr()

Constructs a Receipt object from an array received through RPC.

public static fromRPCArr(array<string|int, mixed> $rpcArr) : static
Parameters
$rpcArr : array<string|int, mixed>

The array containing receipt data.

Tags
throws
NotSupportedException

when the RPC server doesn't support inferring status from the root.

throws
BadAddressChecksumException
throws
InvalidHexException
throws
InvalidHexLengthException
throws
EthBinderLogicException
Return values
static

The Receipt object.


        
On this page

Search results