Sol incinerator

From sendaifun/skills · View interactive version

Sol incinerator is an AI agent skill from the GitHub repository sendaifun/skills. SOL Incinerator SDK for burning tokens, NFTs, and closing accounts

How to use this skill

Skill file

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:

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

Required body fields

Optional body fields used often

Partner + referral validation

Endpoint Selection

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

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.