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

Public Member Functions

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

Static Public Member Functions

static getTypeArray ()
 
- 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')
 

Public Attributes

 $fromBlock
 
 $toBlock
 
 $address
 
 $topics
 

Detailed Description

Ethereum data type Filter.

Generated by scripts/generate-complex-datatypes.php based on resources/ethjs-schema.json.

Definition at line 18 of file Filter.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( EthBlockParam  $fromBlock = null,
EthBlockParam  $toBlock = null,
EthBytes  $address = null,
array  $topics = null 
)
Parameters
EthBlockParam$fromBlock
EthBlockParam$toBlock
EthBytes$address
array$topicsArray of EthD

Definition at line 46 of file Filter.php.

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

Member Function Documentation

◆ getTypeArray()

static getTypeArray ( )
static

Returns a name => type array.

Definition at line 56 of file Filter.php.

◆ toArray()

toArray ( )

Returns array with values.

Implements EthDataTypeInterface.

Definition at line 68 of file Filter.php.

References Ethereum\valueArray().

+ Here is the call graph for this function:

Member Data Documentation

◆ $address

$address

Value for 'address'.

Definition at line 33 of file Filter.php.

Referenced by Filter\__construct().

◆ $fromBlock

$fromBlock

Value for 'fromBlock'.

Definition at line 23 of file Filter.php.

Referenced by Filter\__construct().

◆ $toBlock

$toBlock

Value for 'toBlock'.

Definition at line 28 of file Filter.php.

Referenced by Filter\__construct().

◆ $topics

$topics

Value for 'topics'.

Definition at line 38 of file Filter.php.

Referenced by Filter\__construct().


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