Documentation

Log
in package

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

Tags
author

DubbaThony

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

$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

isSignature()

Checks if the log matches the given event signature.

public isSignature(string $eventSignature) : bool
Parameters
$eventSignature : string

The event signature to compare.

Tags
throws
EthBinderRuntimeException

when topics array is empty.

throws
EthBinderLogicException
Return values
bool

True if matching, otherwise false.


        
On this page

Search results