Node HTTP API
Run a local node when you need the complete read API, reward endpoints, mempool, peers, or mining-private surfaces.
Developer
This page defines the practical developer surface: the local node HTTP API, the wallet-safe public testnet API, the explorer proxy boundary, the bootstrap seed service, the local CLI, and the recommended flow for testing addresses, transactions, and node reward visibility.
Run a local node when you need the complete read API, reward endpoints, mempool, peers, or mining-private surfaces.
Use the public testnet API for browser wallets and integrations that need a deliberately limited CORS-enabled surface.
Use the CLI for local operator work and the explorer for human-readable chain and reward inspection.
Node HTTP API
A testnet node usually exposes its HTTP API locally at http://127.0.0.1:28081.
This is the complete node-facing API surface. Not every endpoint should be made public.
GET /v1/healthGET /v1/statusGET /v1/supplyGET /v1/tipGET /v1/blocks?limit=20&from_height=4633GET /v1/block?height=4599GET /v1/block?hash=<block_hash>GET /v1/tx/<txid>POST /v1/tx/submit{
"raw_hex": "<serialized_tx_hex>"
}
GET /v1/mempoolGET /v1/address/<address>GET /v1/address/<address>/utxosGET /v1/address/<address>/history?limit=50&order=descorder accepts asc or desc.
GET /v1/peersGET /v1/peers/summaryGET /v1/peers/public/v1/peers/public is the right endpoint for public bootstrap peer discovery.
Native Rewards API
GET /v1/rewards/epoch?epoch_index=<n>&node_id=<node_id>GET /v1/rewards/assignments?epoch_index=<n>&node_id=<node_id>GET /v1/rewards/node-status?node_id=<node_id>&epoch_index=<n>GET /v1/rewards/node-feesGET /v1/rewards/epoch-summary?epoch_index=<n>GET /v1/rewards/attestations?epoch_index=<n>GET /v1/rewards/settlements?epoch_index=<n>GET /v1/rewards/settlement-report?epoch_index=<n>Public Testnet API
The public API base for applications and browser wallets is
https://testnet-api.chipcoinprotocol.com. It is designed for a narrow
testnet integration surface, not as an unrestricted node RPC endpoint.
GET /v1/healthGET /v1/statusGET /v1/supplyGET /v1/address/<address>GET /v1/address/<address>/utxosGET /v1/address/<address>/history?limit=50&order=descGET /v1/tx/<txid>POST /v1/tx/submitOPTIONS for the same public pathsThe wallet-safe API allows browser access with CORS. It should not expose mining, private wallet, local filesystem, unrestricted node administration, or generic command execution surfaces. Broader chain and reward reads can be exposed through the explorer proxy when intentionally public.
API Examples
curl https://testnet-api.chipcoinprotocol.com/v1/health
curl https://testnet-api.chipcoinprotocol.com/v1/status
curl https://testnet-api.chipcoinprotocol.com/v1/supply
curl https://testnet-api.chipcoinprotocol.com/v1/address/CHC...
curl https://testnet-api.chipcoinprotocol.com/v1/tx/<txid>
curl -X POST https://testnet-api.chipcoinprotocol.com/v1/tx/submit \
-H "Content-Type: application/json" \
-d '{"raw_hex":"<serialized_tx_hex>"}'
Explorer API
The explorer frontend uses /api/testnet and /api/devnet from
explorer.chipcoinprotocol.com. That API is same-origin for the explorer UI,
so it does not need CORS headers for the explorer itself.
https://explorer.chipcoinprotocol.com/api/testnet
GET /v1/statusGET /v1/supplyGET /v1/peers/publicGET /v1/rewards/epoch-summary?epoch_index=45Read-only chain, status, supply, address, transaction, public peers, and reward summary endpoints are appropriate public candidates.
Use the explorer for human inspection of blocks, addresses, transactions, reward history, and network activity.
Open ExplorerPrivate APIs
GET /mining/statusPOST /mining/get-block-templatePOST /mining/submit-blockKeep these local or available only to authorized miners.
{
"payout_address": "<CHC_address>",
"miner_id": "miner-a",
"template_mode": "full_block"
}
{
"template_id": "<template_id>",
"serialized_block": "<block_hex>",
"miner_id": "miner-a"
}
Bootstrap Seed Service
GET /v1/healthGET /v1/peers?network=testnetPOST /v1/announceUse the seed service for peer discovery and announcement workflows, not as a replacement for the node API.
CLI
The CLI runs against a local node database and local wallet files. It is the right tool for node operators, reward-node inspection, wallet diagnostics, and workflows that should not be exposed through the public browser API.
If your node is deployed with Docker Compose, run CLI commands inside the node container
so the CLI sees the same mounted chain database as the running node. In the standard
deployment, the host database is stored at
/var/lib/chipcoin/data/node-testnet.sqlite3 and is mounted in the container
as /runtime/node.sqlite3.
cd /opt/chipcoin
docker compose --env-file .env \
-p chipcoin-testnet \
exec -T node chipcoin --network testnet \
--data /runtime/node.sqlite3 \
status
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
status
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
status
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
tip
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
difficulty
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
wallet-balance \
--wallet-file /path/to/wallet.json
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
reward-summary
chipcoin --network testnet \
--data /var/lib/chipcoin/data/node-testnet.sqlite3 \
address-history CHC...
Developer Flow
Wallet files, private keys, faucet secrets, and local node databases must stay server-side or local to the operator. The public frontend should never receive wallet secrets or shell execution capability.
Build Next
The current public testnet is the correct target for wallet integration, faucet testing, transaction submission, explorer verification, and reward-node inspection.