Options
All
  • Public
  • Public/Protected
  • All
Menu

Factory class for transactions to interact with the Stake program

Hierarchy

  • StakeProgram

Index

Constructors

Properties

programId: PublicKey

Public key that identifies the Stake program

space: number

Max space of a Stake account

This is generated from the solana-stake-program StakeState struct as StakeState::size_of(): https://docs.rs/solana-stake-program/latest/solana_stake_program/stake_state/enum.StakeState.html

Methods

  • Generate a Transaction that authorizes a new PublicKey as Staker or Withdrawer on the Stake account.

    Parameters

    Returns Transaction

  • Generate a Transaction that authorizes a new PublicKey as Staker or Withdrawer on the Stake account.

    Parameters

    Returns Transaction

  • Generate a Transaction that creates a new Stake account

    Parameters

    Returns Transaction

  • Generate a Transaction that creates a new Stake account at an address generated with from, a seed, and the Stake programId

    Parameters

    Returns Transaction

  • Generate a Transaction that deactivates Stake tokens.

    Parameters

    Returns Transaction

  • Generate a Transaction that delegates Stake tokens to a validator Vote PublicKey. This transaction can also be used to redelegate Stake to a new validator Vote PublicKey.

    Parameters

    Returns Transaction

  • Generate a Transaction that merges Stake accounts.

    Parameters

    Returns Transaction

  • Generate a Transaction that splits Stake tokens into another stake account

    Parameters

    Returns Transaction

  • Generate a Transaction that splits Stake tokens into another account derived from a base public key and seed

    Parameters

    Returns Transaction

  • Generate a Transaction that withdraws deactivated Stake tokens.

    Parameters

    Returns Transaction

Generated using TypeDoc