Coda by Ian Macalinao
    Preparing search index...

    Type Alias SetGovernanceDelegateInstruction<TProgram, TAccountCurrentDelegateOrOwner, TAccountTokenOwnerRecord, TRemainingAccounts>

    SetGovernanceDelegateInstruction: Instruction<TProgram> & InstructionWithData<
        ReadonlyUint8Array,
    > & InstructionWithAccounts<
        [
            TAccountCurrentDelegateOrOwner extends string
                ? ReadonlySignerAccount<TAccountCurrentDelegateOrOwner> & AccountSignerMeta<
                    TAccountCurrentDelegateOrOwner,
                >
                : TAccountCurrentDelegateOrOwner,
            TAccountTokenOwnerRecord extends string
                ? WritableAccount<TAccountTokenOwnerRecord>
                : TAccountTokenOwnerRecord,
            ...TRemainingAccounts,
        ],
    >

    Type Parameters

    • TProgram extends string = typeof SPL_GOVERNANCE_PROGRAM_ADDRESS
    • TAccountCurrentDelegateOrOwner extends string | AccountMeta = string
    • TAccountTokenOwnerRecord extends string | AccountMeta = string
    • TRemainingAccounts extends readonly AccountMeta[] = []