|
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 | |
| checksummed () | |
| __toString () | |
| toHex (bool $with0x=true) | |
| toHex () | |
| toHex () | |
| toBin () | |
| eq (Hash $b) | |
| isNull () | |
Static Public Member Functions | |
| static | fromHex (string $hex) |
| static | testChecksum (string $hexAddr) |
| static | fromBin (string $bin) |
| static | NULL () |
Protected Attributes | |
| const | dataSizeBytes = 20 |
| string | $bytes |
Address is a class for representing and manipulating Ethereum addresses.
| M8B\EtherBinder\Common\Address::__toString | ( | ) |
| EthBinderLogicException |
| M8B\EtherBinder\Common\Address::checksummed | ( | ) |
Returns checksummed hex representation of the address.
| EthBinderLogicException |
|
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.
|
static |
Initializes from a hexadecimal string. Validates checksum and throws a BadAddressChecksumException when it does not match. If entire address is upper or lower case, the checksum is ommited.
| string | $hex | Hexadecimal representation of the address. |
| BadAddressChecksumException | |
| InvalidHexException | |
| InvalidHexLengthException | |
| EthBinderLogicException |
Reimplemented from M8B\EtherBinder\Common\Hash.
|
inherited |
Checks if inner data contains only zeroes (equals to static::NULL())
|
staticinherited |
Initializes object with all zeros.
|
static |
Validates the checksum of a hexadecimal address. If all characters are upper or lower case, it skips the check and returns true.
| string | $hexAddr | Hexadecimal address to test. |
| EthBinderLogicException |
|
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.