pub fn close_all_token_accounts(keypair: &Keypair, context: &CentralContext)Expand description
Close all token accounts for a wallet. Fetches all token accounts owned by the wallet and creates close-account instructions for up to 15 accounts. Sends and confirms the transaction via JSON RPC.