Get Started
Testnet API & RPC Reference
The Lightchain AI Testnet exposes standard Ethereum JSON-RPC endpoints alongside Lightchain-specific extensions for AIVM and PoI interactions.Endpoints
Rate Limits
The public endpoints publish no fixed rate limit and may be rate-limited during periods of high demand.Supported JSON-RPC Methods
Standard Ethereum Methods
All standard Ethereum JSON-RPC methods are supported. Commonly used methods include: Querying State Sending Transactions Subscriptions (WebSocket)Lightchain-Specific Methods
Lightchain adds no custom JSON-RPC methods. The public testnet endpoint serves thedebug, eth, net, rpc, txpool and web3 namespaces.
AI inference does not go through JSON-RPC. It runs through the protocol contracts (JobRegistry and SessionManager) or through the Developer API. Model availability, fees and limits are read from AIConfig with ordinary eth_call.
Example Requests
Get Latest Block Number
CodeBASH
CodeJSON
Get Account Balance
CodeBASH
Subscribe to New Blocks (WebSocket)
CodeJAVASCRIPT
Error Codes
Health Check
Verify that the RPC endpoint is responding:CodeBASH
result: "8200" (the chain ID as a string).
Resources
Last updated: 1 November 2026