Kxcoscan

Blockchain Explorer API

Production-ready REST endpoints and an MCP server for querying the Kxcoscan blockchain. Compatible with Claude, GPT-4, and any AI agent.

GET/api/balance

Get the native KXCO balance of any wallet address.

Response

Response will appear here

Quick Reference

REST API

All endpoints accept GET requests with query parameters. Responses are JSON.

# Wallet balance
GET /api/balance?address=0x...

# Recent transactions
GET /api/transactions?address=0x...&offset=10

# Wallet overview (AI-optimised)
GET /api/wallet-summary?address=0x...

# Contract ABI
GET /api/contract?address=0x...

MCP (Claude Desktop)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "kxcoscan": {
      "url": "https://your-app.vercel.app/api/mcp",
      "transport": "http"
    }
  }
}

AI Agent (Tool Use)

Pass the base URL to your AI agent as a tool endpoint:

# Python example
import anthropic
client = anthropic.Anthropic()

tools = [{
  "name": "wallet_summary",
  "description": "Get wallet overview",
  "input_schema": {
    "type": "object",
    "properties": {
      "address": {"type": "string"}
    },
    "required": ["address"]
  }
}]

# Call /api/wallet-summary?address={address}
# when the model invokes wallet_summary

Edge Caching

Responses are cached at Vercel's edge for performance:

/api/balance60s
/api/transactions60s
/api/token-info5min
/api/contract1hr
/api/wallet-summary60s