WalletApi
instead.@ApiAudience.Public @ApiStability.Unstable @Deprecated public interface Wallet extends AccountHoldable, KeyManageable, QueryClient, java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
cacheChainIdHash()
Deprecated.
Cache chain id hash with current node.
|
void |
cacheChainIdHash(ChainIdHash chainIdHash)
Deprecated.
Cache chain id hash with corresponding
chainIdHash . |
void |
close()
Deprecated.
|
TxHash |
commit(RawTransaction rawTransaction)
Deprecated.
Sign and commit transaction.
|
TxHash |
commit(Transaction signedTransaction)
Deprecated.
Commit a signed transaction.
|
TxHash |
createName(java.lang.String name)
Deprecated.
Create name info of a current account.
|
ContractTxHash |
deploy(ContractDefinition contractDefinition)
Deprecated.
Deploy smart contract.
|
ContractTxHash |
deploy(ContractDefinition contractDefinition,
Fee fee)
Deprecated.
Deploy smart contract.
|
ContractTxHash |
execute(ContractInvocation contractInvocation)
Deprecated.
Execute a smart contract function.
|
ContractTxHash |
execute(ContractInvocation contractInvocation,
Fee fee)
Deprecated.
Execute a smart contract function.
|
ChainIdHash |
getCachedChainIdHash()
Deprecated.
Get cached chain id hash.
|
Account |
loadAccount(Authentication authentication)
Deprecated.
Unlock and load account corresponding with
authentication . |
TxHash |
send(AccountAddress recipient,
Aer amount)
Deprecated.
Send aer with
fee . |
TxHash |
send(AccountAddress recipient,
Aer amount,
BytesValue payload)
Deprecated.
Send aer with
fee and payload . |
TxHash |
send(AccountAddress recipient,
Aer amount,
Fee fee)
Deprecated.
Send aer with
fee . |
TxHash |
send(AccountAddress recipient,
Aer amount,
Fee fee,
BytesValue payload)
Deprecated.
Send aer with
fee and payload . |
TxHash |
send(java.lang.String recipient,
Aer amount)
Deprecated.
Send aer.
|
TxHash |
send(java.lang.String recipient,
Aer amount,
BytesValue payload)
Deprecated.
Send aer and
payload . |
TxHash |
send(java.lang.String recipient,
Aer amount,
Fee fee)
Deprecated.
Send aer with
fee . |
TxHash |
send(java.lang.String recipient,
Aer amount,
Fee fee,
BytesValue payload)
Deprecated.
Send aer with
fee and payload . |
Transaction |
sign(RawTransaction rawTransaction)
Deprecated.
Sign for transaction.
|
TxHash |
stake(Aer amount)
Deprecated.
Staking an account with amount of a current account.
|
TxHash |
unstake(Aer amount)
Deprecated.
Unstaking an account with amount of a current account.
|
TxHash |
updateName(java.lang.String name,
AccountAddress newOwner)
Deprecated.
Update name info of to an new owner.
|
boolean |
verify(Transaction transaction)
Deprecated.
Verify transaction.
|
TxHash |
vote(java.lang.String voteId,
java.util.List<java.lang.String> candidates)
Deprecated.
Vote to
candidates with voteId . |
TxHash |
voteBp(java.util.List<java.lang.String> candidates)
Deprecated.
Vote to bp
candidates . |
getAccount, getAccountState, getRecentlyUsedNonce, getStakingInfo, getVotes, incrementAndGetNonce
bindKeyStore, exportKey, listKeyStoreIdentities, lock, saveKey, saveKey, storeKeyStore, unlock
getAccountState, getAccountState, getBestBlockHash, getBestBlockHeight, getBlock, getBlock, getBlockchainStatus, getBlockMetadata, getBlockMetadata, getChainIdHash, getChainInfo, getChainStats, getContractInterface, getNameOwner, getNameOwner, getNodeStatus, getReceipt, getServerInfo, getStakingInfo, getStakingInfo, getTransaction, getVotesOf, getVotesOf, listBlockMetadatas, listBlockMetadatas, listElected, listElectedBps, listEvents, listNodePeers, listPeerMetrics, listServerKeyStoreAccounts, query, subscribeEvent, subscribeNewBlock, subscribeNewBlockMetadata
ChainIdHash getCachedChainIdHash()
void cacheChainIdHash()
void cacheChainIdHash(ChainIdHash chainIdHash)
chainIdHash
.chainIdHash
- a chain id hashAccount loadAccount(Authentication authentication)
authentication
.authentication
- an authenticationKeyStoreException
- on keystore errorTransaction sign(RawTransaction rawTransaction)
rawTransaction
- raw transaction to signboolean verify(Transaction transaction)
transaction
- transaction to verifyTxHash createName(java.lang.String name)
name
- an new nameTxHash updateName(java.lang.String name, AccountAddress newOwner)
name
- an already binded namenewOwner
- an new owner of nameTxHash stake(Aer amount)
amount
- an amount to stakeTxHash unstake(Aer amount)
amount
- an amount to stakeTxHash voteBp(java.util.List<java.lang.String> candidates)
candidates
.candidates
- a candidates to voteTxHash vote(java.lang.String voteId, java.util.List<java.lang.String> candidates)
candidates
with voteId
.voteId
- a vote idcandidates
- a candidates to voteTxHash send(java.lang.String recipient, Aer amount)
recipient
- a recipient nameamount
- an amountTxHash send(java.lang.String recipient, Aer amount, Fee fee)
fee
.recipient
- a recipient nameamount
- an amountfee
- a feeTxHash send(java.lang.String recipient, Aer amount, BytesValue payload)
payload
.recipient
- a recipient nameamount
- an amountpayload
- a payloadTxHash send(java.lang.String recipient, Aer amount, Fee fee, BytesValue payload)
fee
and payload
.recipient
- a recipient nameamount
- an amountfee
- a feepayload
- a payloadTxHash send(AccountAddress recipient, Aer amount)
fee
.recipient
- a recipientamount
- an amountTxHash send(AccountAddress recipient, Aer amount, Fee fee)
fee
.recipient
- a recipientamount
- an amountfee
- a feeTxHash send(AccountAddress recipient, Aer amount, BytesValue payload)
fee
and payload
.recipient
- a recipientamount
- an amountpayload
- a payloadTxHash send(AccountAddress recipient, Aer amount, Fee fee, BytesValue payload)
fee
and payload
.recipient
- a recipientamount
- an amountfee
- a feepayload
- a payloadTxHash commit(RawTransaction rawTransaction)
rawTransaction
- a raw transactionTxHash commit(Transaction signedTransaction)
signedTransaction
- a signed transactionContractTxHash deploy(ContractDefinition contractDefinition)
contractDefinition
- a contract definitionContractTxHash deploy(ContractDefinition contractDefinition, Fee fee)
contractDefinition
- a contract definitionfee
- a fee to make a transactionContractTxHash execute(ContractInvocation contractInvocation)
contractInvocation
- a contract invocationContractTxHash execute(ContractInvocation contractInvocation, Fee fee)
contractInvocation
- a contract invocationfee
- a fee to make a transactionvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in interface KeyManageable
close
in interface QueryClient