Coda by Ian Macalinao
    Preparing search index...

    Type Alias AddValidatorToPoolInstruction<TProgram, TAccountStakePool, TAccountStaker, TAccountReserveStakeAccount, TAccountWithdrawAuthority, TAccountValidatorStakeList, TAccountNewStakeAccount, TAccountValidatorVoteAccount, TAccountRentSysvar, TAccountClockSysvar, TAccountStakeHistorySysvar, TAccountStakeConfigSysvar, TAccountSystemProgram, TAccountStakeProgram, TRemainingAccounts>

    AddValidatorToPoolInstruction: Instruction<TProgram> & InstructionWithData<
        ReadonlyUint8Array,
    > & InstructionWithAccounts<
        [
            TAccountStakePool extends string
                ? WritableAccount<TAccountStakePool>
                : TAccountStakePool,
            TAccountStaker extends string
                ? ReadonlySignerAccount<TAccountStaker> & AccountSignerMeta<
                    TAccountStaker,
                >
                : TAccountStaker,
            TAccountReserveStakeAccount extends string
                ? WritableAccount<TAccountReserveStakeAccount>
                : TAccountReserveStakeAccount,
            TAccountWithdrawAuthority extends string
                ? ReadonlyAccount<TAccountWithdrawAuthority>
                : TAccountWithdrawAuthority,
            TAccountValidatorStakeList extends string
                ? WritableAccount<TAccountValidatorStakeList>
                : TAccountValidatorStakeList,
            TAccountNewStakeAccount extends string
                ? WritableAccount<TAccountNewStakeAccount>
                : TAccountNewStakeAccount,
            TAccountValidatorVoteAccount extends string
                ? ReadonlyAccount<TAccountValidatorVoteAccount>
                : TAccountValidatorVoteAccount,
            TAccountRentSysvar extends string
                ? ReadonlyAccount<TAccountRentSysvar>
                : TAccountRentSysvar,
            TAccountClockSysvar extends string
                ? ReadonlyAccount<TAccountClockSysvar>
                : TAccountClockSysvar,
            TAccountStakeHistorySysvar extends string
                ? ReadonlyAccount<TAccountStakeHistorySysvar>
                : TAccountStakeHistorySysvar,
            TAccountStakeConfigSysvar extends string
                ? ReadonlyAccount<TAccountStakeConfigSysvar>
                : TAccountStakeConfigSysvar,
            TAccountSystemProgram extends string
                ? ReadonlyAccount<TAccountSystemProgram>
                : TAccountSystemProgram,
            TAccountStakeProgram extends string
                ? ReadonlyAccount<TAccountStakeProgram>
                : TAccountStakeProgram,
            ...TRemainingAccounts,
        ],
    >

    Type Parameters

    • TProgram extends string = typeof SPL_STAKE_POOL_PROGRAM_ADDRESS
    • TAccountStakePool extends string | AccountMeta = string
    • TAccountStaker extends string | AccountMeta = string
    • TAccountReserveStakeAccount extends string | AccountMeta = string
    • TAccountWithdrawAuthority extends string | AccountMeta = string
    • TAccountValidatorStakeList extends string | AccountMeta = string
    • TAccountNewStakeAccount extends string | AccountMeta = string
    • TAccountValidatorVoteAccount extends string | AccountMeta = string
    • TAccountRentSysvar extends string | AccountMeta = "SysvarRent111111111111111111111111111111111"
    • TAccountClockSysvar extends string | AccountMeta = "SysvarC1ock11111111111111111111111111111111"
    • TAccountStakeHistorySysvar extends string | AccountMeta = "SysvarStakeHistory1111111111111111111111111"
    • TAccountStakeConfigSysvar extends string | AccountMeta = "StakeConfig11111111111111111111111111111111"
    • TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111"
    • TAccountStakeProgram extends string | AccountMeta = "Stake11111111111111111111111111111111111111"
    • TRemainingAccounts extends readonly AccountMeta[] = []