Class AccountUpdateWrapper


  • public class AccountUpdateWrapper
    extends java.lang.Object
    Represents an AccountUpdateWrapper 1. This class wraps all of static methods of AccountUpdate 2. This class should be accessed via `caver.transaction.accountUpdate
    • Constructor Summary

      Constructors 
      Constructor Description
      AccountUpdateWrapper​(Klay klaytnCall)
      Creates an AccountUpdateWrapper instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AccountUpdate create​(byte[] rlpEncoded)
      Creates an AccountUpdate instance derived from a RLP-encoded AccountUpdate byte array.
      AccountUpdate create​(AccountUpdate.Builder builder)
      Creates an AccountUpdate instance using AccountUpdate.Builder
      AccountUpdate create​(java.lang.String rlpEncoded)
      Creates an AccountUpdate instance derived from a RLP-encoded AccountUpdate string.
      AccountUpdate create​(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.
      AccountUpdate decode​(byte[] rlpEncoded)
      Decodes a RLP-encoded AccountUpdate byte array.
      AccountUpdate decode​(java.lang.String rlpEncoded)
      Decodes a RLP-encoded AccountUpdate string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccountUpdateWrapper

        public AccountUpdateWrapper​(Klay klaytnCall)
        Creates an AccountUpdateWrapper instance.
        Parameters:
        klaytnCall - Klay RPC instance
    • Method Detail

      • create

        public AccountUpdate create​(java.lang.String rlpEncoded)
        Creates an AccountUpdate instance derived from a RLP-encoded AccountUpdate string.
        Parameters:
        rlpEncoded - RLP-encoded AccountUpdate string
        Returns:
        AccountUpdate
      • create

        public AccountUpdate create​(byte[] rlpEncoded)
        Creates an AccountUpdate instance derived from a RLP-encoded AccountUpdate byte array.
        Parameters:
        rlpEncoded - RLP-encoded AccountUpdate byte array.
        Returns:
        AccountUpdate
      • create

        public AccountUpdate create​(AccountUpdate.Builder builder)
        Creates an AccountUpdate instance using AccountUpdate.Builder
        Parameters:
        builder - AccountUpdate.Builder
        Returns:
        AccountUpdate
      • create

        public AccountUpdate create​(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.
        Parameters:
        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 ID
        signatures - A Signature list
        account - The Account instance contains AccountKey to be updated to the account.
        Returns:
        AccountUpdate
      • decode

        public AccountUpdate decode​(java.lang.String rlpEncoded)
        Decodes a RLP-encoded AccountUpdate string.
        Parameters:
        rlpEncoded - RLP-encoded AccountUpdate string.
        Returns:
        AccountUpdate
      • decode

        public AccountUpdate decode​(byte[] rlpEncoded)
        Decodes a RLP-encoded AccountUpdate byte array.
        Parameters:
        rlpEncoded - RLP-encoded AccountUpdate byte array.
        Returns:
        AccountUpdate