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

Public Member Functions

 __construct (EthQ $startingBlock=null, EthQ $currentBlock=null, EthQ $highestBlock=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

 $startingBlock
 
 $currentBlock
 
 $highestBlock
 

Detailed Description

Ethereum data type EthSyncing.

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

Definition at line 18 of file EthSyncing.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( EthQ  $startingBlock = null,
EthQ  $currentBlock = null,
EthQ  $highestBlock = null 
)
Parameters
EthQ$startingBlock
EthQ$currentBlock
EthQ$highestBlock

Definition at line 40 of file EthSyncing.php.

References EthSyncing\$currentBlock, EthSyncing\$highestBlock, and EthSyncing\$startingBlock.

Member Function Documentation

◆ getTypeArray()

static getTypeArray ( )
static

Returns a name => type array.

Definition at line 49 of file EthSyncing.php.

◆ toArray()

toArray ( )

Returns array with values.

Implements EthDataTypeInterface.

Definition at line 60 of file EthSyncing.php.

Member Data Documentation

◆ $currentBlock

$currentBlock

Value for 'currentBlock'.

Definition at line 28 of file EthSyncing.php.

Referenced by EthSyncing\__construct().

◆ $highestBlock

$highestBlock

Value for 'highestBlock'.

Definition at line 33 of file EthSyncing.php.

Referenced by EthSyncing\__construct().

◆ $startingBlock

$startingBlock

Value for 'startingBlock'.

Definition at line 23 of file EthSyncing.php.

Referenced by EthSyncing\__construct().


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