@ApiAudience.Public @ApiStability.Unstable public interface WalletApi extends Signer
KeyStore
. Has a
signing role.Modifier and Type | Method and Description |
---|---|
void |
bind(AergoClient aergoClient)
Bind an aergo client to use.
|
AccountAddress |
getPrincipal()
Get an principal of current wallet.
|
boolean |
lock(Authentication authentication)
Lock an account.
|
QueryApi |
queryApi()
Get query api.
|
TransactionApi |
transactionApi()
Get transaction api.
|
boolean |
unlock(Authentication authentication)
Unlock an account and bind it to wallet api.
|
AccountAddress getPrincipal()
getPrincipal
in interface WithPrincipal
void bind(AergoClient aergoClient)
aergoClient
- an aergo clientboolean unlock(Authentication authentication)
authentication
- an authentication to unlock accountWalletException
- on wallet errorboolean lock(Authentication authentication)
authentication
- an authentication to lock account binded to wallet apiWalletException
- on wallet errorTransactionApi transactionApi()
WalletException
- on wallet errorQueryApi queryApi()
WalletException
- on wallet error