AbstractWallet
in package
AbstractYes
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.
Tags
Table of Contents
Properties
Methods
- getAddress() : Address
- Returns the wallet's associated Ethereum address.
- getKeyRaw() : string
- Returns the raw private key in binary or hexadecimal format.
- key() : Key
- Returns the underlying private key object stored in the wallet.
Properties
$key
protected
Key
$key
Methods
getAddress()
Returns the wallet's associated Ethereum address.
public
getAddress() : Address
Tags
Return values
Address —The Ethereum address.
getKeyRaw()
Returns the raw private key in binary or hexadecimal format.
public
getKeyRaw([bool $bin = false ]) : string
Parameters
- $bin : bool = false
-
If true, returns in binary. Otherwise, returns in hexadecimal.
Return values
string —The raw key.
key()
Returns the underlying private key object stored in the wallet.
public
key() : Key
Return values
Key —The Key object.