Skip to content

Close Account Functionality #1

Description

@cavemanloverboy

nanotoken needs a close_account instruction.

Recommended api

  1. Accounts: [account_to_close, destination_account, owner].
  2. Data: [discriminator]

Functionality:

After checking owner is signer, and that account 1 and account 2 share the same mint index (and doing all other account validation), transfer nonzero balance to destination account, and close the account (transfer lamports to owner, set data len to 0, reassign to system program)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions