Skip to content

API Reference

Quick reference for Kaizen Core APIs.

Overview

InterfaceProtocolPortDescription
JSON-RPCHTTP8546 (proxy)Query and submit transactions
WebSocketWS8546/wsReal-time subscriptions
gRPCHTTP/29000Node synchronization

Quick Links

Common Operations

Query Account

curl -X POST http://localhost:8546 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"kaizen_getAccount","params":["0x..."],"id":1}'

Subscribe to Theses

const ws = new WebSocket("ws://localhost:8546/ws");
ws.send(
  JSON.stringify({
    type: "subscribe",
    channel: "userTheses",
    params: { address: "0x..." },
  })
);

Send Transaction (SDK)

import { createClient, transfer, parseUSDC } from "@kaizen-core/sdk";
 
const client = createClient({ rpcUrl: "http://localhost:8546" });
client.connectSigner(privateKey);
 
await client.sendTransaction(transfer("0x...", parseUSDC("100.00")));

Token Addresses

TokenAddress
BTC0x0000000000000000000000000000000000000001
ETH0x0000000000000000000000000000000000000002
SOL0x0000000000000000000000000000000000000003
USDT0x0000000000000000000000000000000000000100