Class KeyRegistrationTransactionBuilder<T extends KeyRegistrationTransactionBuilder<T>>


  • public class KeyRegistrationTransactionBuilder<T extends KeyRegistrationTransactionBuilder<T>>
    extends TransactionBuilder<T>
    Build a keyreg transaction. Required parameters: genesisHash Optional parameters: nonparticipation votePK selectionPK voteFirst voteLast voteKeyDilution stateProofKey Optional global parameters: fee/flatFee note genesisID group lease
    • Constructor Detail

      • KeyRegistrationTransactionBuilder

        protected KeyRegistrationTransactionBuilder()
    • Method Detail

      • participationPublicKey

        public T participationPublicKey​(ParticipationPublicKey pk)
        Set participation public key used in key registration transactions.
        Parameters:
        pk - The participation public key.
        Returns:
        This builder.
      • participationPublicKey

        public T participationPublicKey​(byte[] pk)
        Set participation public key used in key registration transactions in the raw 32 byte format.
        Parameters:
        pk - The participation public key.
        Returns:
        This builder.
      • participationPublicKeyBase64

        public T participationPublicKeyBase64​(String pk)
        Set participation public key used in key registration transactions as a base64 encoded representation of the raw 32 byte format.
        Parameters:
        pk - The participation public key.
        Returns:
        This builder.
      • selectionPublicKey

        public T selectionPublicKey​(VRFPublicKey pk)
        Set selection public key for the VRF private key used in key registration transactions.
        Parameters:
        pk - The public selection key.
        Returns:
        This builder.
      • selectionPublicKey

        public T selectionPublicKey​(byte[] pk)
        Set selection public key for the VRF private key used in key registration transactions in the raw 32 byte format
        Parameters:
        pk - The public selection key.
        Returns:
        This builder.
      • selectionPublicKeyBase64

        public T selectionPublicKeyBase64​(String pk)
        Set selection public key for the VRF private key used in key registration transactions as a base64 encoded representation of the raw 32 byte format.
        Parameters:
        pk - The public selection key.
        Returns:
        This builder.
      • voteFirst

        public T voteFirst​(BigInteger voteFirst)
        Set the voteFirst value. It is the first round in which the data in this transaction will be considered.
        Parameters:
        voteFirst - The voteFirst value.
        Returns:
        This builder.
      • voteFirst

        public T voteFirst​(Integer voteFirst)
        Set the voteFirst value. It is the first round in which the data in this transaction will be considered.
        Parameters:
        voteFirst - The voteFirst value.
        Returns:
        This builder.
      • voteFirst

        public T voteFirst​(Long voteFirst)
        Set the voteFirst value. It is the first round in which the data in this transaction will be considered.
        Parameters:
        voteFirst - The voteFirst value.
        Returns:
        This builder.
      • voteLast

        public T voteLast​(BigInteger voteLast)
        Set the voteLast value. It is the last round in which the data in this transaction will be considered.
        Parameters:
        voteLast - The voteLast value.
        Returns:
        This builder.
      • voteLast

        public T voteLast​(Integer voteLast)
        Set the voteLast value. It is the last round in which the data in this transaction will be considered.
        Parameters:
        voteLast - The voteLast value.
        Returns:
        This builder.
      • voteLast

        public T voteLast​(Long voteLast)
        Set the voteLast value. It is the last round in which the data in this transaction will be considered.
        Parameters:
        voteLast - The voteLast value.
        Returns:
        This builder.
      • voteKeyDilution

        public T voteKeyDilution​(BigInteger voteKeyDilution)
        Set the voteKeyDilution value. This is used to indicate the number of subkeys in each batch of participation keys.
        Parameters:
        voteKeyDilution - The voteKeyDilution value.
        Returns:
        This builder.
      • voteKeyDilution

        public T voteKeyDilution​(Integer voteKeyDilution)
        Set the voteKeyDilution value. This is used to indicate the number of subkeys in each batch of participation keys.
        Parameters:
        voteKeyDilution - The voteKeyDilution value.
        Returns:
        This builder.
      • voteKeyDilution

        public T voteKeyDilution​(Long voteKeyDilution)
        Set the voteKeyDilution value. This is used to indicate the number of subkeys in each batch of participation keys.
        Parameters:
        voteKeyDilution - The voteKeyDilution value.
        Returns:
        This builder.
      • stateProofKey

        public T stateProofKey​(MerkleVerifier stprf)
        Set the stateProofKey value. This is used to identify a state proof
        Parameters:
        stprf - The stateProofKey value.
        Returns:
        This builder.
      • stateProofKey

        public T stateProofKey​(byte[] stprf)
        Set the stateProofKey value. This is used to identify a state proof
        Parameters:
        stprf - The stateProofKey value.
        Returns:
        This builder.
      • stateProofKeyBase64

        public T stateProofKeyBase64​(String stprf)
        Set the stateProofKey value. This is used to identify a state proof
        Parameters:
        stprf - The stateProofKey value.
        Returns:
        This builder.
      • nonparticipation

        public T nonparticipation​(boolean nonpart)
        Set the nonparticipation value. This is used to mark a key registration transaction participating/nonparticipating
        Parameters:
        nonpart - The nonparticipation mark.
        Returns:
        This builder.