1

I programatically made a small deposit in a stablecoin clmm pool on Raydium. I noticed some SOL was also taken from my wallet, and from what I understand it was to create new token accounts and liquidity tick array accounts etc..

I programatically withdrew my liquidity and closed the position but the SOL taken for the accounts' creation was not returned. I have the account addresses, is there a way I can close those accounts and retrieve the SOL back?

If not, is there a way I can mitigate this cost every time I want to programatticaly deposit into a new pool?

3 Answers 3

2

using the spl-token cli you can use the close feature, to close a token account.

enter image description here

2

If you need a GUI you can try solburner.fun

If you know how to use the terminal try these steps

spl-token close <TOKEN_ADDRESS>

To get the list of tokens and their balance, you can use

spl-token accounts

To install the CLI you can use

sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

Good luck!

1

You could use asset dash. They have a feature to delete token accounts and refund the rent.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.