Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateVoterInstruction<TProgram, TAccountRegistrar, TAccountVoter, TAccountVoterAuthority, TAccountVoterWeightRecord, TAccountPayer, TAccountSystemProgram, TAccountRent, TAccountInstructions, TRemainingAccounts>

    CreateVoterInstruction: Instruction<TProgram> & InstructionWithData<
        ReadonlyUint8Array,
    > & InstructionWithAccounts<
        [
            TAccountRegistrar extends string
                ? ReadonlyAccount<TAccountRegistrar>
                : TAccountRegistrar,
            TAccountVoter extends string
                ? WritableAccount<TAccountVoter>
                : TAccountVoter,
            TAccountVoterAuthority extends string
                ? ReadonlySignerAccount<TAccountVoterAuthority> & AccountSignerMeta<
                    TAccountVoterAuthority,
                >
                : TAccountVoterAuthority,
            TAccountVoterWeightRecord extends string
                ? WritableAccount<TAccountVoterWeightRecord>
                : TAccountVoterWeightRecord,
            TAccountPayer extends string
                ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<
                    TAccountPayer,
                >
                : TAccountPayer,
            TAccountSystemProgram extends string
                ? ReadonlyAccount<TAccountSystemProgram>
                : TAccountSystemProgram,
            TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
            TAccountInstructions extends string
                ? ReadonlyAccount<TAccountInstructions>
                : TAccountInstructions,
            ...TRemainingAccounts,
        ],
    >

    Type Parameters

    • TProgram extends string = typeof VOTER_STAKE_REGISTRY_PROGRAM_ADDRESS
    • TAccountRegistrar extends string | AccountMeta = string
    • TAccountVoter extends string | AccountMeta = string
    • TAccountVoterAuthority extends string | AccountMeta = string
    • TAccountVoterWeightRecord extends string | AccountMeta = string
    • TAccountPayer extends string | AccountMeta = string
    • TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111"
    • TAccountRent extends string | AccountMeta = "SysvarRent111111111111111111111111111111111"
    • TAccountInstructions extends string | AccountMeta = string
    • TRemainingAccounts extends readonly AccountMeta[] = []