Function createCloseAccountInstruction

  • Construct a CloseAccount instruction

    Parameters

    • account: PublicKey

      Account to close

    • destination: PublicKey

      Account to receive the remaining balance of the closed account

    • authority: PublicKey

      Account close authority

    • multiSigners: (PublicKey | Signer)[] = []

      Signing accounts if authority is a multisig

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc