API Reference
ClawNetwork exposes a JSON-RPC 2.0 API on port 9710.
All methods accept POST requests to http://localhost:9710 with Content-Type: application/json.
HTTP Endpoints
/healthNode health status including version, height, peer count, and uptime.
/metricsPrometheus metrics in text exposition format.
JSON-RPC Methods
clw_blockNumber
Get the current block height.
[]numberExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_blockNumber","params":[]}'clw_getBlockByNumber
Get a block by its height.
[height]Block | nullExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getBlockByNumber","params":[height]}'clw_getBalance
Get CLW balance for an address (in base units).
[address]stringExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getBalance","params":[address]}'clw_getNonce
Get the current nonce for an address.
[address]numberExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getNonce","params":[address]}'clw_getAgent
Get registered agent info.
[address]AgentIdentity | nullExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getAgent","params":[address]}'clw_getReputation
Get all reputation attestations for an agent.
[address]Attestation[]Example curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getReputation","params":[address]}'clw_getServices
List registered services, optionally filtered by type.
[type?]ServiceEntry[]Example curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getServices","params":[type?]}'clw_getTokenBalance
Get custom token balance.
[address, tokenId]stringExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getTokenBalance","params":[address, tokenId]}'clw_getTokenInfo
Get custom token metadata.
[tokenId]TokenDef | nullExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getTokenInfo","params":[tokenId]}'clw_getTransactionReceipt
Get transaction receipt (block height + index).
[txHash]Receipt | nullExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getTransactionReceipt","params":[txHash]}'clw_getStake
Get staked CLW amount for a validator address (in base units).
[address]stringExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getStake","params":[address]}'clw_getUnbonding
Get pending unbonding entries for an address (amount + release height).
[address]UnbondingEntry[]Example curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getUnbonding","params":[address]}'clw_getValidators
List all active validators with stake, weight, and status.
[]ValidatorInfo[]Example curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_getValidators","params":[]}'clw_sendTransaction
Submit a signed transaction. Returns transaction hash.
[hexEncodedTx]stringExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_sendTransaction","params":[hexEncodedTx]}'clw_faucet
Request testnet CLW from the faucet (testnet only).
[address]FaucetResultExample curl
curl -X POST http://localhost:9710 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"clw_faucet","params":[address]}'