Class FeeDelegatedAccountUpdate

    • Constructor Detail

      • FeeDelegatedAccountUpdate

        public FeeDelegatedAccountUpdate​(FeeDelegatedAccountUpdate.Builder builder)
        Creates a FeeDelegatedAccountUpdate instance.
        Parameters:
        builder - FeeDelegatedAccountUpdate.Builder instance.
      • FeeDelegatedAccountUpdate

        public FeeDelegatedAccountUpdate​(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,
                                         java.lang.String feePayer,
                                         java.util.List<SignatureData> feePayerSignatures,
                                         Account account)
        Creates a FeeDelegatedAccountUpdate instance.
        Parameters:
        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 ID
        signatures - A Signature list
        feePayer - A fee payer address.
        feePayerSignatures - A fee payer signature list.
        account - An account instance includes account key to be updated to the account in the network.
    • Method Detail

      • create

        public static FeeDelegatedAccountUpdate create​(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,
                                                       java.lang.String feePayer,
                                                       java.util.List<SignatureData> feePayerSignatures,
                                                       Account account)
        Creates a FeeDelegatedAccountUpdate instance.
        Parameters:
        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 ID
        signatures - A Signature list
        feePayer - A fee payer address.
        feePayerSignatures - A fee payer signature list.
        account - An account instance includes account key to be updated to the account in the network.
        Returns:
        FeeDelegatedAccountUpdate
      • setGasPrice

        public void setGasPrice​(java.lang.String gasPrice)
        Setter function for gas price.
        Parameters:
        gasPrice - A unit price of gas in peb the sender will pay for a transaction fee.
      • setGasPrice

        public void setGasPrice​(java.math.BigInteger gasPrice)
        Setter function for gas price.
        Parameters:
        gasPrice - A unit price of gas in peb the sender will pay for a transaction fee.
      • decode

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

        public static FeeDelegatedAccountUpdate decode​(byte[] rlpEncoded)
        Decodes a RLP-encoded FeeDelegatedAccountUpdate byte array.
        Parameters:
        rlpEncoded - RLP-encoded FeeDelegatedAccountUpdate byte array.
        Returns:
        FeeDelegatedAccountUpdate
      • getRLPEncoding

        public java.lang.String getRLPEncoding()
        Returns the RLP-encoded string of this transaction (i.e., rawTransaction).
        Specified by:
        getRLPEncoding in class AbstractTransaction
        Returns:
        String
      • getCommonRLPEncodingForSignature

        public java.lang.String getCommonRLPEncodingForSignature()
        Returns the RLP-encoded string to make the signature of this transaction.
        Specified by:
        getCommonRLPEncodingForSignature in class AbstractTransaction
        Returns:
        String
      • getSenderTxHash

        public java.lang.String getSenderTxHash()
        Returns a senderTxHash of transaction
        Overrides:
        getSenderTxHash in class AbstractTransaction
        Returns:
        String
      • compareTxField

        public boolean compareTxField​(AbstractFeeDelegatedTransaction txObj,
                                      boolean checkSig)
        Check equals txObj passed parameter and Current instance.
        Overrides:
        compareTxField in class AbstractFeeDelegatedTransaction
        Parameters:
        txObj - The AbstractFeeDelegatedTransaction Object to compare
        checkSig - Check whether signatures field is equal.
        Returns:
        boolean
      • combineSignedRawTransactions

        public java.lang.String combineSignedRawTransactions​(java.util.List<java.lang.String> rlpEncoded)
        Description copied from class: AbstractTransaction
        Combines signatures to the transaction from RLP-encoded transaction strings and returns a single transaction with all signatures combined. When combining the signatures into a transaction instance, an error is thrown if the decoded transaction contains different value except signatures.
        Specified by:
        combineSignedRawTransactions in class AbstractTransaction
        Parameters:
        rlpEncoded - A List of RLP-encoded transaction strings.
        Returns:
        String
      • fillTransaction

        public void fillTransaction()
                             throws java.io.IOException
        Fills empty optional transaction field.(gasPrice)
        Overrides:
        fillTransaction in class AbstractTransaction
        Throws:
        java.io.IOException
      • validateOptionalValues

        public void validateOptionalValues​(boolean checkChainID)
        Checks that member variables that can be defined by the user are defined. If there is an undefined variable, an error occurs.
        Overrides:
        validateOptionalValues in class AbstractTransaction
      • getAccount

        public Account getAccount()
        Getter function for Account
        Returns:
        Account
      • setAccount

        public void setAccount​(Account account)
        Setter function for Account
        Parameters:
        account - Account instance