Public Member Functions | |
__construct (EthD32 $hash=null, EthQ $nonce=null, EthD32 $blockHash=null, EthQ $blockNumber=null, EthQ $transactionIndex=null, EthD20 $from=null, EthD20 $to=null, EthQ $value=null, EthQ $gasPrice=null, EthQ $gas=null, EthD $input=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 | |
$hash | |
$nonce | |
$blockHash | |
$blockNumber | |
$transactionIndex | |
$from | |
$to | |
$value | |
$gasPrice | |
$gas | |
$input | |
Ethereum data type Transaction.
Generated by scripts/generate-complex-datatypes.php based on resources/ethjs-schema.json.
Definition at line 18 of file Transaction.php.
__construct | ( | EthD32 | $hash = null , |
EthQ | $nonce = null , |
||
EthD32 | $blockHash = null , |
||
EthQ | $blockNumber = null , |
||
EthQ | $transactionIndex = null , |
||
EthD20 | $from = null , |
||
EthD20 | $to = null , |
||
EthQ | $value = null , |
||
EthQ | $gasPrice = null , |
||
EthQ | $gas = null , |
||
EthD | $input = null |
||
) |
EthD32 | $hash | |
EthQ | $nonce | |
EthD32 | $blockHash | |
EthQ | $blockNumber | |
EthQ | $transactionIndex | |
EthD20 | $from | |
EthD20 | $to | |
EthQ | $value | |
EthQ | $gasPrice | |
EthQ | $gas | |
EthD | $input |
Definition at line 88 of file Transaction.php.
References Transaction\$blockHash, Transaction\$blockNumber, Transaction\$from, Transaction\$gas, Transaction\$gasPrice, Transaction\$hash, Transaction\$input, Transaction\$nonce, Transaction\$to, Transaction\$transactionIndex, and Transaction\$value.
|
static |
Returns a name => type array.
Definition at line 105 of file Transaction.php.
toArray | ( | ) |
Returns array with values.
Implements EthDataTypeInterface.
Definition at line 124 of file Transaction.php.
$blockHash |
Value for 'blockHash'.
Definition at line 33 of file Transaction.php.
Referenced by Transaction\__construct().
$blockNumber |
Value for 'blockNumber'.
Definition at line 38 of file Transaction.php.
Referenced by Transaction\__construct().
$from |
Value for 'from'.
Definition at line 48 of file Transaction.php.
Referenced by Transaction\__construct().
$gas |
Value for 'gas'.
Definition at line 68 of file Transaction.php.
Referenced by Transaction\__construct().
$gasPrice |
Value for 'gasPrice'.
Definition at line 63 of file Transaction.php.
Referenced by Transaction\__construct().
$hash |
Value for 'hash'.
Definition at line 23 of file Transaction.php.
Referenced by Transaction\__construct().
$input |
Value for 'input'.
Definition at line 73 of file Transaction.php.
Referenced by Transaction\__construct().
$nonce |
Value for 'nonce'.
Definition at line 28 of file Transaction.php.
Referenced by Transaction\__construct().
$to |
Value for 'to'.
Definition at line 53 of file Transaction.php.
Referenced by Transaction\__construct().
$transactionIndex |
Value for 'transactionIndex'.
Definition at line 43 of file Transaction.php.
Referenced by Transaction\__construct().
$value |
Value for 'value'.
Definition at line 58 of file Transaction.php.
Referenced by Transaction\__construct().