Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
EthFilter Class Reference
+ Inheritance diagram for EthFilter:
+ Collaboration diagram for EthFilter:

Public Member Functions

 __construct (EthBlockParam $fromBlock=null, EthBlockParam $toBlock=null, EthBytes $address=null, Array $topics=null)
 
 setFromBlock (EthBlockParam $value)
 
 setToBlock (EthBlockParam $value)
 
 setAddress (EthBytes $value)
 
 setTopics ($value)
 
 toArray ()
 
- Public Member Functions inherited from EthDataType
 getProperty (string $property='value', bool $returnHexVal=false)
 
 setValue ($val, array $params=[])
 
 getClassName ()
 

Protected Attributes

 $fromBlock
 
 $toBlock
 
 $address
 
 $topics
 

Additional Inherited Members

- Static Public Member Functions inherited from EthDataType
const static getClassByAbi (string $abiType)
 
static getDataLengthType ()
 
static isPrimitive ()
 
static getTypeClass (string $type, bool $typed_constructor=false)
 
static getAllTypeClasses ()
 
- Static Public Member Functions inherited from EthereumStatic
static getMethodSignature ($input)
 
static phpKeccak256 ($string)
 
static sha3 ($string)
 
static isValidFunction ($input)
 
static getDefinition ()
 
static isValidHexQuantity ($str)
 
static isValidHexData ($str)
 
static isValidAddress ($address, $throw=false)
 
static hasHexPrefix ($str)
 
static removeHexPrefix ($str)
 
static ensureHexPrefix ($str)
 
static convertCurrency (float $amount, string $from='wei', string $to='ether')
 

Detailed Description

Implement data type Filter.

Definition at line 8 of file EthFilter.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( EthBlockParam  $fromBlock = null,
EthBlockParam  $toBlock = null,
EthBytes  $address = null,
Array  $topics = null 
)

Constructor.

Parameters
EthBlockParam | null$fromBlock
EthBlockParam | null$toBlock
EthBytes | null$address
array | null$topics

Definition at line 22 of file EthFilter.php.

References EthFilter\$address, EthFilter\$fromBlock, EthFilter\$toBlock, and EthFilter\$topics.

Member Function Documentation

◆ setAddress()

setAddress ( EthBytes  $value)

Definition at line 44 of file EthFilter.php.

◆ setFromBlock()

setFromBlock ( EthBlockParam  $value)

Definition at line 34 of file EthFilter.php.

◆ setToBlock()

setToBlock ( EthBlockParam  $value)

Definition at line 39 of file EthFilter.php.

◆ setTopics()

setTopics (   $value)

Definition at line 49 of file EthFilter.php.

◆ toArray()

toArray ( )
Returns
array
Exceptions
Exception

Implements EthDataTypeInterface.

Definition at line 58 of file EthFilter.php.

Member Data Documentation

◆ $address

$address
protected

Definition at line 12 of file EthFilter.php.

Referenced by EthFilter\__construct().

◆ $fromBlock

$fromBlock
protected

Definition at line 10 of file EthFilter.php.

Referenced by EthFilter\__construct().

◆ $toBlock

$toBlock
protected

Definition at line 11 of file EthFilter.php.

Referenced by EthFilter\__construct().

◆ $topics

$topics
protected

Definition at line 13 of file EthFilter.php.

Referenced by EthFilter\__construct().


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