@ApiAudience.Public @ApiStability.Unstable public interface AccountOperation
Modifier and Type | Method and Description |
---|---|
TxHash |
createName(Account account,
java.lang.String name,
long nonce)
Deprecated.
|
TxHash |
createName(Signer signer,
java.lang.String name,
long nonce)
Create name info of an account.
|
AccountAddress |
getNameOwner(java.lang.String name)
Get owner of an account name.
|
AccountAddress |
getNameOwner(java.lang.String name,
long blockNumber)
Get owner of an account name at block
blockNumber . |
StakeInfo |
getStakingInfo(AccountAddress accountAddress)
Get staking information of
accountAddress . |
AccountState |
getState(Account account)
Deprecated.
|
AccountState |
getState(AccountAddress address)
Get account state by address.
|
AccountTotalVote |
getVotesOf(AccountAddress accountAddress)
Get votes which
accountAddress votes for. |
java.util.List<ElectedCandidate> |
listElected(java.lang.String voteId,
int showCount)
Get elected candidates per
voteId for current round. |
Transaction |
sign(Account account,
RawTransaction rawTransaction)
Deprecated.
|
TxHash |
stake(Account account,
Aer amount,
long nonce)
Deprecated.
|
TxHash |
stake(Signer signer,
Aer amount,
long nonce)
Staking an account with amount.
|
TxHash |
unstake(Account account,
Aer amount,
long nonce)
Deprecated.
|
TxHash |
unstake(Signer signer,
Aer amount,
long nonce)
Unstaking an account with amount.
|
TxHash |
updateName(Account owner,
java.lang.String name,
AccountAddress newOwner,
long nonce)
Deprecated.
|
TxHash |
updateName(Signer signer,
java.lang.String name,
AccountAddress newOwner,
long nonce)
Update name info of an account.
|
boolean |
verify(Account account,
Transaction transaction)
Deprecated.
|
TxHash |
vote(Signer signer,
java.lang.String voteId,
java.util.List<java.lang.String> candidates,
long nonce)
Vote to
candidates with corresponding voteId . |
@Deprecated AccountState getState(Account account)
getState(AccountAddress)
instead.account
- an accountAccountState getState(AccountAddress address)
address
- an account address@Deprecated TxHash createName(Account account, java.lang.String name, long nonce)
createName(Signer, String, long)
instead.account
- an accountname
- an new namenonce
- an nonce which is used in a transactionTxHash createName(Signer signer, java.lang.String name, long nonce)
signer
.signer
- a signername
- an new namenonce
- an nonce which is used in a transaction@Deprecated TxHash updateName(Account owner, java.lang.String name, AccountAddress newOwner, long nonce)
updateName(Signer, String, AccountAddress, long)
instead.owner
- an accountname
- an already binded namenewOwner
- an new owner of namenonce
- an nonce which is used in a transactionTxHash updateName(Signer signer, java.lang.String name, AccountAddress newOwner, long nonce)
name
.signer
- a signername
- an already binded namenewOwner
- an new owner of namenonce
- an nonce which is used in a transactionAccountAddress getNameOwner(java.lang.String name)
name
- an name of accountAccountAddress getNameOwner(java.lang.String name, long blockNumber)
blockNumber
.name
- an name of accountblockNumber
- a block number@Deprecated TxHash stake(Account account, Aer amount, long nonce)
stake(Signer, Aer, long)
instead.account
- an accountamount
- an amount to stakenonce
- an nonce which is used in a transactionTxHash stake(Signer signer, Aer amount, long nonce)
amount
will be staked by signer
.signer
- a signeramount
- an amount to stakenonce
- an nonce which is used in a transaction@Deprecated TxHash unstake(Account account, Aer amount, long nonce)
unstake(Signer, Aer, long)
instead.account
- an accountamount
- an amount to stakenonce
- an nonce which is used in a transactionTxHash unstake(Signer signer, Aer amount, long nonce)
signer
- a signeramount
- an amount to stakenonce
- an nonce which is used in a transactionStakeInfo getStakingInfo(AccountAddress accountAddress)
accountAddress
.accountAddress
- an account address to check staking informationTxHash vote(Signer signer, java.lang.String voteId, java.util.List<java.lang.String> candidates, long nonce)
candidates
with corresponding voteId
. Pre-defined vote id is
followings:
signer
must have staked aergo.signer
- a signervoteId
- a vote idcandidates
- a candidatesnonce
- an nonce which is used in a transactionAccountTotalVote getVotesOf(AccountAddress accountAddress)
accountAddress
votes for.accountAddress
- an account addressjava.util.List<ElectedCandidate> listElected(java.lang.String voteId, int showCount)
voteId
for current round.voteId
- a vote idshowCount
- a show count@Deprecated Transaction sign(Account account, RawTransaction rawTransaction)
Signer.sign(RawTransaction)
instead.account
- an account to signrawTransaction
- a raw transaction to sign@Deprecated boolean verify(Account account, Transaction transaction)
AergoSignVerifier.verify(Transaction)
instead.account
- an account to verifytransaction
- a signed transaction to verify