Avalanche SDK Client
    Preparing search index...

    Type Alias PrepareAddPermissionlessValidatorTxnParameters

    PrepareAddPermissionlessValidatorTxnParameters: CommonTxParams & {
        context?: ContextType.Context;
        delegatorRewardAddresses: string[];
        delegatorRewardPercentage: number;
        end: number;
        locktime?: number;
        nodeId: string;
        publicKey?: string;
        rewardAddresses: string[];
        signature?: string;
        stakeInAvax: number;
        threshold?: number;
    }

    Type declaration

    • Optionalcontext?: ContextType.Context

      Optional. The context to use for the transaction. If not provided, the context will be fetched.

    • delegatorRewardAddresses: string[]

      The addresses which will receive the delegator fee rewards. Given addresses will share the reward UTXO.

    • delegatorRewardPercentage: number

      The percentage of delegator rewards given to validator or delegatorRewardAddresses as a delgation fee. Valid upto 3 decimal places.

      100

      2

    • end: number

      The Unix time in seconds when the validator will be removed from staking set. (and staked AVAX is returned).

    • Optionallocktime?: number

      Optional. The unix timestamp in seconds after which the reward UTXO can be spent, once they are created after the staking period ends (both validator and delegator fee rewards).

      0
      
    • nodeId: string

      The NodeID of the validator being added.

    • OptionalpublicKey?: string

      Optional. The BLS public key (in hex format) of the validator being added.

    • rewardAddresses: string[]

      The addresses which will receive the validator rewards. Given addresses will share the reward UTXO.

    • Optionalsignature?: string

      Optional. The BLS signature (in hex format) of the validator being added.

    • stakeInAvax: number

      Amount of AVAX to stake. The staked amount in nAVAX will represent the weight of this validator on the network. This amount will be locked until the end of the staking period. The staked outputs will be consolidated into a single output and owned by the changeAddresses or the fromAddresses array.

    • Optionalthreshold?: number

      Optional. The number of signatures required to spend the funds in the resultant reward UTXO (both validator and delegator fee rewards).

      1