Function closeAccount

  • Close a token account

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • account: PublicKey

      Account to close

    • destination: PublicKey

      Account to receive the remaining balance of the closed account

    • authority: PublicKey | Signer

      Authority which is allowed to close the account

    • multiSigners: Signer[] = []

      Signing accounts if authority is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc