GET
/api/balanceGet the native KXCO balance of any wallet address.
Response
Response will appear here
Production-ready REST endpoints and an MCP server for querying the Kxcoscan blockchain. Compatible with Claude, GPT-4, and any AI agent.
/api/balanceGet the native KXCO balance of any wallet address.
Response
Response will appear here
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...
Add to your claude_desktop_config.json:
{
"mcpServers": {
"kxcoscan": {
"url": "https://your-app.vercel.app/api/mcp",
"transport": "http"
}
}
}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_summaryResponses are cached at Vercel's edge for performance: