sendaifun/sol-incinerator
SOL Incinerator SDK for burning tokens, NFTs, and closing accounts
npx skills add https://github.com/sendaifun/skills --skill sol-incinerator
A practical integration guide for Sol-Incinerator's HTTP API. The main user-facing outcomes are burning tokens, burning NFTs, and closing token accounts, while still supporting advanced batch cleanup and relay workflows.
Live API base URL: https://v2.api.sol-incinerator.com
Sol-Incinerator API v2 provides:
POST /api-keys/generate| Group | Endpoints |
|------|-----------|
| Public discovery | GET /, /openapi.json, /.well-known/api-catalog, /llms*, /DOCS.md |
| Public auth bootstrap | POST /api-keys/generate |
| Burn + close (API key required) | /burn, /burn-instructions, /close, /close-instructions, /batch/close-all* |
| Relay + confirmation (API key required) | /transactions/send, /transactions/send-batch, /transactions/status |
const baseUrl = 'https://v2.api.sol-incinerator.com';
const keyResp = await fetch(`${baseUrl}/api-keys/generate`, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ label: 'autonomous-agent' }),
});
if (!keyResp.ok) {
throw new Error(`API key generation failed: ${keyResp.status}`);
}
const { apiKey } = await keyResp.json() as { apiKey: string };
const headers = {
'content-type': 'application/json',
'x-api-key': apiKey,
};
const previewResp = await fetch(`${baseUrl}/burn/preview`, {
method: 'POST',
headers,
body: JSON.stringify({
userPublicKey,
assetId,
burnAmount: '1',
}),
});
/burn, /close, or /batch/close-all./transactions/send and /transactions/send-batch./transactions/status if needed.x-api-key: ak_xxx.yyy (recommended for server agents)Authorization: Bearer ak_xxx.yyy401 when key is missing or invalid./burn, /close, previews, instructions):userPublicKeyassetId/batch/close-all*):userPublicKeyfeePayer (public key)asLegacyTransaction (boolean)priorityFeeMicroLamports (integer)autoCloseTokenAccounts (boolean, burn flows)burnAmount (positive integer in atomic units; use string for large values)offset, limit (batch pagination/windowing)partnerFeeAccount and partnerFeeBps are all-or-nothing.partnerFeeBps must be integer 0..9800.referralCode must be 2-20 lowercase alphanumeric.referralCode cannot be combined with partner fee fields./burn/preview or /close/preview before execution when:/burn and /close when:/burn-instructions and /close-instructions when:/batch/close-all/preview first for wallet cleanup UX/batch/close-all/summary for lightweight dashboard counts/transactions/send-batch for multi-tx close-all pipelinesPOST /api-keys/generate./transactions/status.burnAmount as a string for large atomic values.referralCode with partner fee fields.encoding: "base64" (default is base58)./openapi.json)/llms.txt)sol-incinerator/
├── SKILL.md # This file
├── resources/
│ └── api-reference.md # Endpoint matrix and request notes
├── examples/
│ └── basic/
│ └── http-flow.ts # Close-account + token/NFT burn examples
├── templates/
│ └── sol-incinerator-client.ts # Ready-to-use TypeScript client
└── docs/
└── troubleshooting.md # Common errors and fixes
Take sendaifun/sol-incinerator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.