Log
in package
Log represents an Ethereum log entry, emitted by smart contracts.
Tags
Table of Contents
Properties
- $address : Address
- $blockHash : Hash
- $blockNumber : int
- $data : string
- $logIndex : int
- $removed : bool
- $topics : array<string|int, Hash>
- $transactionHash : Hash
- $transactionIndex : int
Methods
- fromRPCArr() : static
- Constructs a Log object from an array received through RPC.
- isSignature() : bool
- Checks if the log matches the given event signature.
Properties
$address
public
Address
$address
$blockHash
public
Hash
$blockHash
$blockNumber
public
int
$blockNumber
$data
public
string
$data
$logIndex
public
int
$logIndex
$removed
public
bool
$removed
$topics
public
array<string|int, Hash>
$topics
$transactionHash
public
Hash
$transactionHash
$transactionIndex
public
int
$transactionIndex
Methods
fromRPCArr()
Constructs a Log 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 log data.
Tags
Return values
static —The Log object.
isSignature()
Checks if the log matches the given event signature.
public
isSignature(string $eventSignature) : bool
Parameters
- $eventSignature : string
-
The event signature to compare.
Tags
Return values
bool —True if matching, otherwise false.