Function createInitializeDefaultAccountStateInstruction

  • Construct an InitializeDefaultAccountState instruction

    Parameters

    • mint: PublicKey

      Mint to initialize

    • accountState: AccountState

      Default account state to set on all new accounts

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc