Helius SDK - v2.2.2
    Preparing search index...

    Interface StakeInstructionsResult

    Result from getStakeInstructions — the instructions and generated stake account signer.

    interface StakeInstructionsResult {
        instructions: readonly (
            | Instruction<
                Address,
                readonly (AccountMeta<string> | AccountLookupMeta<string, string>)[],
            > & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<
                [
                    AccountMeta<string> & {} & AccountSignerMeta<
                        string,
                        TransactionSigner<string>,
                    >,
                    AccountMeta<string> & {} & AccountSignerMeta<
                        string,
                        TransactionSigner<string>,
                    >,
                ],
            > & InstructionWithByteDelta
            | InitializeInstruction<Address, string, string, []>
            | DelegateStakeInstruction<
                Address,
                string,
                string,
                string,
                string,
                string,
                string,
                [],
            >
        )[];
        stakeAccount: TransactionSigner<string>;
    }
    Index

    Properties

    instructions: readonly (
        | Instruction<
            Address,
            readonly (AccountMeta<string> | AccountLookupMeta<string, string>)[],
        > & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<
            [
                AccountMeta<string> & {} & AccountSignerMeta<
                    string,
                    TransactionSigner<string>,
                >,
                AccountMeta<string> & {} & AccountSignerMeta<
                    string,
                    TransactionSigner<string>,
                >,
            ],
        > & InstructionWithByteDelta
        | InitializeInstruction<Address, string, string, []>
        | DelegateStakeInstruction<
            Address,
            string,
            string,
            string,
            string,
            string,
            string,
            [],
        >
    )[]

    Instructions to create, initialize, and delegate the stake account.

    stakeAccount: TransactionSigner<string>

    The generated stake account signer (keypair).