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 | |
key () | |
getKeyRaw (bool $bin=false) | |
getAddress () | |
Protected Attributes | |
Key | $key |
AbstractWallet serves as the base class for wallet implementations. It provides basic type for wallet usage. Any new form of wallet needs to extend this class.
M8B\EtherBinder\Wallet\AbstractWallet::getAddress | ( | ) |
Returns the wallet's associated Ethereum address.
EthBinderLogicException | Logic exception |
M8B\EtherBinder\Wallet\AbstractWallet::getKeyRaw | ( | bool | $bin = false | ) |
Returns the raw private key in binary or hexadecimal format.
bool | $bin | If true, returns in binary. Otherwise, returns in hexadecimal. |
M8B\EtherBinder\Wallet\AbstractWallet::key | ( | ) |
Returns the underlying private key object stored in the wallet.