‹ 首页

sol-incinerator

@sendaifun · 收录于 1 周前

SOL Incinerator SDK for burning tokens, NFTs, and closing accounts

适合你,如果需要在 Solana 链上批量销毁资产或关闭账户

/ 下载安装
sol-incinerator.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add sendaifun/skills/sol-incinerator
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- sendaifun/skills/sol-incinerator
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify sendaifun/skills/sol-incinerator
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
116GitHub stars
~1.1K最小装载
~1.9K含声明引用
~4.2K文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · Apache-2.0 · 064d4de

Sol-Incinerator Burn + Close API v2 Guide

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

Overview

Sol-Incinerator API v2 provides:

  • Autonomous API key provisioning via POST /api-keys/generate
  • Burn/close transaction building for SPL Token, Token-2022, and NFT account patterns
  • Instruction-only endpoints when you want full client-side transaction assembly
  • Preview/summary endpoints to estimate reclaimed rent and fees before execution
  • Transaction relay endpoints to broadcast already-signed payloads
  • Partner/referral monetization inputs with built-in validation
Core Endpoint Groups

| 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 |

Quick Start
1) Generate API key (no user input)
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 };
2) Run preview-first flow
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',
  }),
});
3) Build, sign, submit
  1. Call /burn, /close, or /batch/close-all.
  2. Decode base58 serialized transaction(s) and sign locally with the wallet keypair.
  3. Submit through your wallet/RPC flow, or use /transactions/send and /transactions/send-batch.
  4. Poll /transactions/status if needed.
Core Integration Rules
Auth
  • Send API key in either:
  • x-api-key: ak_xxx.yyy (recommended for server agents)
  • Authorization: Bearer ak_xxx.yyy
  • Core routes return 401 when key is missing or invalid.
Required body fields
  • Single-asset routes (/burn, /close, previews, instructions):
  • userPublicKey
  • assetId
  • Batch routes (/batch/close-all*):
  • userPublicKey
Optional body fields used often
  • feePayer (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)
Partner + referral validation
  • 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.
Endpoint Selection
  • Use /burn/preview or /close/preview before execution when:
  • the user needs fee visibility
  • assets may be frozen/invalid/non-empty
  • Use /burn and /close when:
  • you want ready-to-sign transaction payloads
  • Use /burn-instructions and /close-instructions when:
  • your app assembles transactions client-side
  • Use /batch/close-all/preview first for wallet cleanup UX
  • Use /batch/close-all/summary for lightweight dashboard counts
  • Use /transactions/send-batch for multi-tx close-all pipelines
Example Workflow (Agent)
  1. Generate an API key with POST /api-keys/generate.
  2. Run preview endpoint for target operation.
  3. If preview is acceptable, request executable transaction payload.
  4. Sign transaction locally.
  5. Submit signed payload.
  6. Confirm completion via /transactions/status.
  7. Store operation metadata (signature, fees, lamports reclaimed).
Guidelines
  • DO run preview before destructive operations.
  • DO pass burnAmount as a string for large atomic values.
  • DO validate user/asset pubkeys before submitting.
  • DO keep private keys local; only send signed transactions to relay endpoints.
  • DON'T combine referralCode with partner fee fields.
  • DON'T send unsigned payloads to relay routes.
  • DON'T assume base64 encoding for relay payloads unless explicitly set encoding: "base64" (default is base58).
Resources
Skill Structure
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
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。