Function createStakeAccount

  • Creates a new staking account for the given user.

    Returns

    InstructionReturn

    Parameters

    • program: AtlasStakingIDLProgram

      Staking IDL program

    • user: PublicKey

      User's public key

    • updateAuthority: AsyncSigner<unknown>

      Authority for the registered stake account

    • stakeMint: PublicKey

      Mint for the stake token

    • rewardMint: PublicKey

      Mint for the reward token

    Returns InstructionReturn

Generated using TypeDoc