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

Public Member Functions

 toArray ()
 
 get ()
 
 add (RlpItem $item)
 

Protected Attributes

 $rlpItems = []
 

Additional Inherited Members

- Static Public Member Functions inherited from Rlp
static encode (string $val)
 
static decode (string $hexVal)
 
static getByteValueAtOffsetPos (string $msgData, int $pos)
 
- 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 inherited from Rlp
const THRESHOLD_LONG = 110
 
const PREF_SELF_CONTAINED = 127
 
const OFFSET_SHORT_ITEM = 128
 
const OFFSET_LONG_ITEM = 183
 
const OFFSET_SHORT_LIST = 192
 
const OFFSET_LONG_LIST = 247
 
- Static Protected Member Functions inherited from Rlp
static processSingleByteItem (string $msgData, RLPCollection $rlpCollection, int $currentPos)
 
static getByteValueAt (string $msgData, int $pos)
 
static getStringLengthAt (string $msgData, int $pos)
 
static getByteLength (int $l)
 
static getLengthInByte (string $str, int $currentPos)
 
static paddedLength (int $length)
 

Detailed Description

Definition at line 7 of file RlpCollection.php.

Member Function Documentation

◆ add()

add ( RlpItem  $item)

Definition at line 23 of file RlpCollection.php.

◆ get()

get ( )

Definition at line 19 of file RlpCollection.php.

References RlpCollection\$rlpItems.

◆ toArray()

toArray ( )

Definition at line 11 of file RlpCollection.php.

Member Data Documentation

◆ $rlpItems

$rlpItems = []
protected

Definition at line 9 of file RlpCollection.php.

Referenced by RlpCollection\get().


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