public class AccountUpdate extends AbstractTransaction
Modifier and Type | Class and Description |
---|---|
static class |
AccountUpdate.Builder
AccountUpdate Builder class
|
Constructor and Description |
---|
AccountUpdate(AccountUpdate.Builder builder)
Creates an AccountUpdate instance.
|
AccountUpdate(Klay klaytnCall,
java.lang.String from,
java.lang.String nonce,
java.lang.String gas,
java.lang.String gasPrice,
java.lang.String chainId,
java.util.List<SignatureData> signatures,
Account account)
Creates an AccountUpdate instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareTxField(AbstractTransaction obj,
boolean checkSig)
Check equals txObj passed parameter and Current instance.
|
static AccountUpdate |
decode(byte[] rlpEncoded)
Decodes a RLP-encoded AccountUpdate byte array.
|
static AccountUpdate |
decode(java.lang.String rlpEncoded)
Decodes a RLP-encoded AccountUpdate string.
|
Account |
getAccount()
Getter function for Account
|
java.lang.String |
getCommonRLPEncodingForSignature()
Returns the RLP-encoded string to make the signature of this transaction.
|
java.lang.String |
getRLPEncoding()
Returns the RLP-encoded string of this transaction (i.e., rawTransaction).
|
void |
setAccount(Account account)
Setter function for Account
|
appendSignatures, appendSignatures, combineSignedRawTransactions, fillTransaction, getChainId, getFrom, getGas, getGasPrice, getKeyType, getKlaytnCall, getNonce, getRawTransaction, getRLPEncodingForSignature, getSenderTxHash, getSignatures, getTransactionHash, getType, refineSignature, setChainId, setChainId, setFrom, setGas, setGas, setGasPrice, setGasPrice, setKlaytnCall, setNonce, setNonce, setSignatures, setType, sign, sign, sign, sign, sign, sign, validateOptionalValues
public AccountUpdate(AccountUpdate.Builder builder)
builder
- AccountUpdate.Builder instance.public AccountUpdate(Klay klaytnCall, java.lang.String from, java.lang.String nonce, java.lang.String gas, java.lang.String gasPrice, java.lang.String chainId, java.util.List<SignatureData> signatures, Account account)
klaytnCall
- Klay RPC instance.from
- The address of the sender.nonce
- A value used to uniquely identify a sender’s transaction.gas
- The maximum amount of gas the transaction is allowed to use.gasPrice
- A unit price of gas in peb the sender will pay for a transaction fee.chainId
- Network IDsignatures
- A Signature listaccount
- The Account instance contains AccountKey to be updated to the account.public static AccountUpdate decode(java.lang.String rlpEncoded)
rlpEncoded
- RLP-encoded AccountUpdate string.public static AccountUpdate decode(byte[] rlpEncoded)
rlpEncoded
- RLP-encoded AccountUpdate byte array.public java.lang.String getRLPEncoding()
getRLPEncoding
in class AbstractTransaction
public java.lang.String getCommonRLPEncodingForSignature()
getCommonRLPEncodingForSignature
in class AbstractTransaction
public boolean compareTxField(AbstractTransaction obj, boolean checkSig)
compareTxField
in class AbstractTransaction
obj
- The AbstractTransaction Object to comparecheckSig
- Check whether signatures field is equal.public Account getAccount()
public void setAccount(Account account)
account
- Account instance