Function updateDefaultAccountState

  • Update the default account state on a mint

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • mint: PublicKey

      Mint to modify

    • state: AccountState

      New account state to set on created accounts

    • freezeAuthority: PublicKey | Signer

      Freeze authority of the mint

    • multiSigners: Signer[] = []

      Signing accounts if freezeAuthority is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc