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

Public Member Functions

 __construct (EthD32 $transactionHash=null, EthQ $transactionIndex=null, EthD32 $blockHash=null, EthQ $blockNumber=null, EthQ $cumulativeGasUsed=null, EthQ $gasUsed=null, EthD20 $contractAddress=null, EthQ $status=null, array $logs=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

 $transactionHash
 
 $transactionIndex
 
 $blockHash
 
 $blockNumber
 
 $cumulativeGasUsed
 
 $gasUsed
 
 $contractAddress
 
 $status
 
 $logs
 

Detailed Description

Ethereum data type Receipt.

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

Definition at line 18 of file Receipt.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( EthD32  $transactionHash = null,
EthQ  $transactionIndex = null,
EthD32  $blockHash = null,
EthQ  $blockNumber = null,
EthQ  $cumulativeGasUsed = null,
EthQ  $gasUsed = null,
EthD20  $contractAddress = null,
EthQ  $status = null,
array  $logs = null 
)
Parameters
EthD32$transactionHash
EthQ$transactionIndex
EthD32$blockHash
EthQ$blockNumber
EthQ$cumulativeGasUsed
EthQ$gasUsed
EthD20$contractAddress
EthQ$status
array$logsArray of FilterChange

Definition at line 76 of file Receipt.php.

References Receipt\$blockHash, Receipt\$blockNumber, Receipt\$contractAddress, Receipt\$cumulativeGasUsed, Receipt\$gasUsed, Receipt\$logs, Receipt\$status, Receipt\$transactionHash, Receipt\$transactionIndex, and status().

+ Here is the call graph for this function:

Member Function Documentation

◆ getTypeArray()

static getTypeArray ( )
static

Returns a name => type array.

Definition at line 91 of file Receipt.php.

◆ toArray()

toArray ( )

Returns array with values.

Implements EthDataTypeInterface.

Definition at line 108 of file Receipt.php.

References status(), and Ethereum\valueArray().

+ Here is the call graph for this function:

Member Data Documentation

◆ $blockHash

$blockHash

Value for 'blockHash'.

Definition at line 33 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $blockNumber

$blockNumber

Value for 'blockNumber'.

Definition at line 38 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $contractAddress

$contractAddress

Value for 'contractAddress'.

Definition at line 53 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $cumulativeGasUsed

$cumulativeGasUsed

Value for 'cumulativeGasUsed'.

Definition at line 43 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $gasUsed

$gasUsed

Value for 'gasUsed'.

Definition at line 48 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $logs

$logs

Value for 'logs'.

Definition at line 63 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $status

Value for 'status'.

Definition at line 58 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $transactionHash

$transactionHash

Value for 'transactionHash'.

Definition at line 23 of file Receipt.php.

Referenced by Receipt\__construct().

◆ $transactionIndex

$transactionIndex

Value for 'transactionIndex'.

Definition at line 28 of file Receipt.php.

Referenced by Receipt\__construct().


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