Skip to main content
Token accounts must be empty before they can be closed.

Close associated token accounts

Provide a wallet address and one or more token mints. The SDK derives each ATA and returns reclaimed rent to the wallet:
If the token account was created by createAccount(), Altude’s fee payer is its close authority. In that case, omit signer so the relay can add the required signature:

Close a specific token account

Use a signer when the user is the close authority. Omit it only when the Altude fee payer is the close authority.
Closing a non-empty account fails on-chain. Transfer or burn its remaining token balance first.