Query TON blockchain through natural language in Claude Code. Execute API calls directly or generate SDK code.
Installation
In Claude Code:
/plugin marketplace add nessshon/claude-plugins
/plugin install toncenter@nessshon-plugins
Or install locally:
git clone https://github.com/nessshon/toncenter.git
claude --plugin-dir ./toncenter
Configuration
Create .env in the project root:
| Variable | Description | Default |
|---|
TONCENTER_API_KEY | API key from @toncenter bot | Optional |
TONCENTER_NETWORK | mainnet or testnet | mainnet |
TONCENTER_BASE_URL | Custom base URL (overrides network) | auto |
TONCENTER_RPS_LIMIT | Max requests per period | 1 |
TONCENTER_RPS_PERIOD | Rate limit period in seconds | 1.2 |
Usage Examples
"What is the balance of ness.ton?"
"Show latest transactions for ness.ton"
"Show jetton balances for ness.ton as a table"
Simple data queries are executed directly. For apps or streaming — the plugin generates SDK code.
Plugin Source
Skill definition, reference files, and CLI runner.