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 | |
__construct (#[SensitiveParameter] string|Key $key) | |
key () | |
getKeyRaw (bool $bin=false) | |
getAddress () | |
Protected Attributes | |
Key | $key |
RawKeyWallet extends the AbstractWallet to allow wallet creation using raw keys.
M8B\EtherBinder\Wallet\RawKeyWallet::__construct | ( | # string|Key | $key[SensitiveParameter] | ) |
Constructor to create a RawKeyWallet.
string | Key | $key | Either a Key object or a raw key as a hex string. |
|
inherited |
Returns the wallet's associated Ethereum address.
EthBinderLogicException | Logic exception |
|
inherited |
Returns the raw private key in binary or hexadecimal format.
bool | $bin | If true, returns in binary. Otherwise, returns in hexadecimal. |
|
inherited |
Returns the underlying private key object stored in the wallet.