@ApiAudience.Public @ApiStability.Unstable public interface TransactionApi
Modifier and Type | Method and Description |
---|---|
TxHash |
commit(RawTransaction rawTransaction)
Sign and commit transaction.
|
TxHash |
commit(Transaction signedTransaction)
Commit a signed transaction.
|
TxHash |
createName(java.lang.String name)
Create name info of a current account.
|
ContractTxHash |
deploy(ContractDefinition contractDefinition,
Fee fee)
Deploy smart contract.
|
ContractTxHash |
execute(ContractInvocation contractInvocation,
Fee fee)
Execute a smart contract function.
|
ContractTxHash |
redeploy(ContractAddress existingContract,
ContractDefinition contractDefinition,
Fee fee)
Re-deploy a deployed smart smart contract.
|
TxHash |
send(AccountAddress recipient,
Aer amount,
Fee fee)
Send aer with
fee . |
TxHash |
send(AccountAddress recipient,
Aer amount,
Fee fee,
BytesValue payload)
Send aer with
fee and payload . |
TxHash |
send(java.lang.String recipient,
Aer amount,
Fee fee)
Send aer with
fee . |
TxHash |
send(java.lang.String recipient,
Aer amount,
Fee fee,
BytesValue payload)
Send aer with
fee and payload . |
TxHash |
stake(Aer amount)
Staking an account with amount of a current account.
|
TxHash |
unstake(Aer amount)
Unstaking an account with amount of a current account.
|
TxHash |
updateName(java.lang.String name,
AccountAddress newOwner)
Update name info of to an new owner.
|
TxHash |
vote(java.lang.String voteId,
java.util.List<java.lang.String> candidates)
Vote to
candidates with voteId . |
TxHash |
voteBp(java.util.List<java.lang.String> candidates)
Vote to bp
candidates . |
TxHash 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, Fee fee)
fee
.recipient
- a recipient nameamount
- an amountfee
- a feeTxHash 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 fee)
fee
.recipient
- a recipientamount
- an amountfee
- a feeTxHash 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, Fee fee)
contractDefinition
- a contract definitionfee
- a feeContractTxHash redeploy(ContractAddress existingContract, ContractDefinition contractDefinition, Fee fee)
existingContract
- an existing contract addresscontractDefinition
- a contract definition to re-deployfee
- a feeContractTxHash execute(ContractInvocation contractInvocation, Fee fee)
contractInvocation
- a contract invocationfee
- a fee