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\Log Class Reference

Public Member Functions

 isSignature (string $eventSignature)
 

Static Public Member Functions

static fromRPCArr (array $rpcArr)
 

Public Attributes

Address $address
 
array $topics
 
string $data
 
int $blockNumber
 
Hash $transactionHash
 
int $transactionIndex
 
Hash $blockHash
 
int $logIndex
 
bool $removed
 

Detailed Description

Log represents an Ethereum log entry, emitted by smart contracts.

Author
DubbaThony

Member Function Documentation

◆ fromRPCArr()

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

Constructs a Log object from an array received through RPC.

Parameters
array$rpcArrThe array containing log data.
Returns
static The Log object.
Exceptions
BadAddressChecksumException
InvalidHexException
InvalidHexLengthException
EthBinderLogicException

◆ isSignature()

M8B\EtherBinder\Common\Log::isSignature ( string $eventSignature)

Checks if the log matches the given event signature.

Parameters
string$eventSignatureThe event signature to compare.
Returns
bool True if matching, otherwise false.
Exceptions
EthBinderRuntimeExceptionwhen topics array is empty.
EthBinderLogicException

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