• Creates a Stake instruction.

    Optional accounts that are not provided will be omitted from the accounts array passed with the instruction. An optional account that is set cannot follow an optional account that is unset. Otherwise an Error is raised.

    Parameters

    • accounts: StakeInstructionAccounts

      that will be accessed while the instruction is processed

    • Optional programId: PublicKey

    Returns web3.TransactionInstruction

Generated using TypeDoc