Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
Loading...
Searching...
No Matches
M8B\EtherBinder\Common\Receipt Class Reference

Static Public Member Functions

static fromRPCArr (array $rpcArr)
 

Public Attributes

Hash $transactionHash
 
int $transactionIndex
 
Hash $blockHash
 
int $blockNumber
 
Address $from
 
Address $to = null
 
OOGmp $cumulativeGasUsed
 
OOGmp $effectiveGasPrice
 
int $gasUsed
 
Address $contractAddress = null
 
array $logs = []
 
Bloom $logsBloom
 
TransactionType $type
 
bool $status
 

Detailed Description

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

Author
DubbaThony

Member Function Documentation

◆ fromRPCArr()

static M8B\EtherBinder\Common\Receipt::fromRPCArr ( array $rpcArr)
static

Constructs a Receipt object from an array received through RPC.

Parameters
array$rpcArrThe array containing receipt data.
Returns
static The Receipt object.
Exceptions
NotSupportedExceptionwhen the RPC server doesn't support inferring status from the root.
BadAddressChecksumException
InvalidHexException
InvalidHexLengthException
EthBinderLogicException

The documentation for this class was generated from the following file: