@unclaimedsol/spl-burn-close-sdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Burn and Close Solana SPL Tokens SDK
|
|
2
2
|
|
|
3
|
-
A lightweight Solana SDK to **burn SPL tokens and close token accounts** with
|
|
3
|
+
A lightweight Solana SDK to **burn SPL tokens and close token accounts** with the June 2026 Unclaimed SOL token cleanup fee policy.
|
|
4
4
|
This library only **builds unsigned transactions** – you handle signing and sending them, whether in the browser (Wallet Adapter) or server (Keypair).
|
|
5
5
|
|
|
6
6
|
## ✨ Features
|
|
7
7
|
|
|
8
8
|
- 🔥 Burn all tokens in provided ATAs.
|
|
9
9
|
- 🧹 Close token accounts, reclaiming rent to the user.
|
|
10
|
-
- 💸
|
|
10
|
+
- 💸 On-chain fee recipient is enforced by the program.
|
|
11
|
+
- 🧾 Standard token cleanup lets the user keep up to 0.002 SOL per closed account; normal-account fee is 39,280 lamports.
|
|
11
12
|
- ⚡ Automatic batching (default 12 ATAs per transaction).
|
|
12
13
|
- 🪙 Supports SPL Token and Token-2022.
|
|
13
14
|
- 🔐 Supports **frontend partial signing** and **backend full signing** workflows.
|
|
@@ -19,7 +20,7 @@ This library only **builds unsigned transactions** – you handle signing and se
|
|
|
19
20
|
|
|
20
21
|
1. The SDK prepares TransactionInstructions for your on-chain burn+close program.
|
|
21
22
|
2. Program burns tokens in each ATA, then closes it, sending rent back to the owner.
|
|
22
|
-
3.
|
|
23
|
+
3. The program sends recovered rent above 2,000,000 lamports per successfully closed account to the hardcoded fee recipient.
|
|
23
24
|
4. The SDK never asks for private keys — you sign & send transactions yourself.
|
|
24
25
|
|
|
25
26
|
---
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unclaimedsol/spl-burn-close-sdk",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "SDK to burn and close SPL token accounts via the Unclaimed SOL program
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "SDK to burn and close SPL token accounts via the Unclaimed SOL program with benchmarked rent cleanup fees.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Unclaimed SOL",
|
|
7
7
|
"type": "module",
|