Receipt
in package
Receipt represents the outcome of a transaction, including logs, hash, deployed contract address, gas information, and other information.
Tags
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
$blockHash
public
Hash
$blockHash
$blockNumber
public
int
$blockNumber
$contractAddress
public
Address|null
$contractAddress
= null
$cumulativeGasUsed
public
OOGmp
$cumulativeGasUsed
$effectiveGasPrice
public
OOGmp
$effectiveGasPrice
$from
public
Address
$from
$gasUsed
public
int
$gasUsed
$logs
public
array<string|int, Log>
$logs
= []
$logsBloom
public
Bloom
$logsBloom
$status
public
bool
$status
$to
public
Address|null
$to
= null
$transactionHash
public
Hash
$transactionHash
$transactionIndex
public
int
$transactionIndex
$type
public
TransactionType
$type
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
Return values
static —The Receipt object.