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

Public Member Functions

 __construct (array $topics, EthD $payload, EthQ $priority, EthQ $ttl, EthD $from=null, EthD $to=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

 $topics
 
 $payload
 
 $priority
 
 $ttl
 
 $from
 
 $to
 

Detailed Description

Ethereum data type SHHPost.

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

Definition at line 18 of file SHHPost.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $topics,
EthD  $payload,
EthQ  $priority,
EthQ  $ttl,
EthD  $from = null,
EthD  $to = null 
)
Parameters
array$topicsArray of EthD
EthD$payload
EthQ$priority
EthQ$ttl
EthD$from
EthD$to

Definition at line 58 of file SHHPost.php.

References SHHPost\$from, SHHPost\$payload, SHHPost\$priority, SHHPost\$to, SHHPost\$topics, and SHHPost\$ttl.

Member Function Documentation

◆ getTypeArray()

static getTypeArray ( )
static

Returns a name => type array.

Definition at line 70 of file SHHPost.php.

◆ toArray()

toArray ( )

Returns array with values.

Implements EthDataTypeInterface.

Definition at line 84 of file SHHPost.php.

References Ethereum\valueArray().

+ Here is the call graph for this function:

Member Data Documentation

◆ $from

$from

Value for 'from'.

Definition at line 43 of file SHHPost.php.

Referenced by SHHPost\__construct().

◆ $payload

$payload

Value for 'payload'.

Definition at line 28 of file SHHPost.php.

Referenced by SHHPost\__construct().

◆ $priority

$priority

Value for 'priority'.

Definition at line 33 of file SHHPost.php.

Referenced by SHHPost\__construct().

◆ $to

$to

Value for 'to'.

Definition at line 48 of file SHHPost.php.

Referenced by SHHPost\__construct().

◆ $topics

$topics

Value for 'topics'.

Definition at line 23 of file SHHPost.php.

Referenced by SHHPost\__construct().

◆ $ttl

$ttl

Value for 'ttl'.

Definition at line 38 of file SHHPost.php.

Referenced by SHHPost\__construct().


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