Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
|
Public Member Functions | |
toHex (bool $with0x=true) | |
toHex () | |
toHex () | |
toBin () | |
eq (Hash $b) | |
isNull () | |
Static Public Member Functions | |
static | fromHex (string $hex) |
static | fromBin (string $bin) |
static | NULL () |
Protected Attributes | |
const | dataSizeBytes = 8 |
string | $bytes |
BlockNonce represents Ethereum block nonces. It consists of 8 bytes.
|
inherited |
Checks for equality with another Hash or Hash-derivative object.
static | $b | Another object to compare against. |
|
staticinherited |
Initializes from a binary string.
string | $bin | Binary data. |
InvalidLengthException |
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
|
staticinherited |
Initializes from a hexadecimal string.
string | $hex | Hexadecimal data. |
InvalidHexLengthException | |
InvalidHexException |
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
Reimplemented in M8B\EtherBinder\Common\Address.
|
inherited |
Checks if inner data contains only zeroes (equals to static::NULL()
)
|
staticinherited |
Initializes object with all zeros.
|
inherited |
Converts the internal data into to a binary string.
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
|
inherited |
Implemented in M8B\EtherBinder\Common\Transaction, and M8B\EtherBinder\Crypto\Signature.
|
inherited |
Converts the internal data into to a hexadecimal string.
bool | $with0x | Flag to include "0x" prefix or not. |
|
inherited |
Implemented in M8B\EtherBinder\Utils\OOGmp.