Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
Loading...
Searching...
No Matches
M8B\EtherBinder\Wallet\AbstractWallet Class Reference
Inheritance diagram for M8B\EtherBinder\Wallet\AbstractWallet:
M8B\EtherBinder\Wallet\MnemonicWallet M8B\EtherBinder\Wallet\RawKeyWallet

Public Member Functions

 key ()
 
 getKeyRaw (bool $bin=false)
 
 getAddress ()
 

Protected Attributes

Key $key
 

Detailed Description

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.

Author
DubbaThony

Member Function Documentation

◆ getAddress()

M8B\EtherBinder\Wallet\AbstractWallet::getAddress ( )

Returns the wallet's associated Ethereum address.

Returns
Address The Ethereum address.
Exceptions
EthBinderLogicExceptionLogic exception

◆ getKeyRaw()

M8B\EtherBinder\Wallet\AbstractWallet::getKeyRaw ( bool $bin = false)

Returns the raw private key in binary or hexadecimal format.

Parameters
bool$binIf true, returns in binary. Otherwise, returns in hexadecimal.
Returns
string The raw key.

◆ key()

M8B\EtherBinder\Wallet\AbstractWallet::key ( )

Returns the underlying private key object stored in the wallet.

Returns
Key The Key object.

The documentation for this class was generated from the following file: