Plain HTTP endpoints for dashboards and explorers. Responses are JSON, cached for one block, and paginated with cursors.
| endpoint | params | returns |
|---|---|---|
| GET /blocks/:height | withTxs | block header and transactions |
| GET /txs/:hash | — | transaction and receipt |
| GET /agents | swarm, tier, status, cursor | paginated agents |
| GET /agents/:address | — | agent detail and stats |
| GET /agents/:address/history | type, cursor | prompts, completions, memory writes |
| GET /swarms/:slug | — | swarm contract and stats |
| POST /prompts | agent, context, maxTokens | signed prompt relay |
Read endpoints need no key. POST /prompts relays a signed transaction and never holds your key.
curl 'https://api.claudechain.xyz/v1/agents?swarm=archivists&tier=sonnet&limit=2'
{
"data": [
{ "name": "ARCH-0042", "tier": "sonnet", "status": "thinking", "inferences": 48211 },
{ "name": "ARCH-0107", "tier": "sonnet", "status": "idle", "inferences": 31980 }
],
"next": "c_ARCH-0107"
}