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

Public Member Functions

 validateLength ($val)
 val ()
- Public Member Functions inherited from EthD
const const __construct ($val, array $params=[])
 convertByAbi ($abiType)
 validate ($val, array $params)
 validateHexString ($val)
 convertTo ($type)
 toArray ()
 hexVal ()
 encodedHexVal ()
 val ()
- Public Member Functions inherited from EthDataType
 getProperty (string $property='value', bool $returnHexVal=false)
 setValue ($val, array $params=[])
 getClassName ()

Static Public Member Functions

static getDataLengthType ()
- Static Public Member Functions inherited from EthD
static getPrimitiveTypes ()
static isPrimitive ()
static typeMap (string $type)
static reverseTypeMap ($class_name)
static getSchemaType ()
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')

Protected Member Functions

 getDataStrLength ()

Additional Inherited Members

- Protected Attributes inherited from EthD

Detailed Description

Byte data, length 32.

Represents 64 hex characters, 256 bits. Eg. TX hash.

Definition at line 12 of file EthD32.php.

Member Function Documentation

◆ getDataLengthType()

static getDataLengthType ( )

Implements EthDataTypeInterface.

Definition at line 43 of file EthD32.php.

◆ getDataStrLength()

getDataStrLength ( )

Returns the length in chars according to ABI length.


Definition at line 53 of file EthD32.php.

Referenced by EthD32\val().

+ Here is the caller graph for this function:

◆ val()

val ( )

Return un-prefixed hex value.

Subclasses may return other types.

string Un-prefixed Hex value.

Definition at line 66 of file EthD32.php.

References EthD32\getDataStrLength().

+ Here is the call graph for this function:

◆ validateLength()

validateLength (   $val)

Implement validation.

string$valHexadecimal "0x"prefixed byte value.

Definition at line 26 of file EthD32.php.

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