Get Started
Mainnet API & RPC Reference
The Lightchain AI Mainnet exposes standard Ethereum JSON-RPC endpoints alongside Lightchain-specific extensions for AIVM and PoI interactions.Endpoints
RPC endpoints may be rate-limited during periods of high demand.
If you experience throttling, consider running your own mainnet node.
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 mainnet endpoint serves theeth, net, rpc and web3 namespaces.
AI inference does not go through JSON-RPC. It runs through the protocol contracts (JobRegistry and SessionManager; see Contract Addresses) 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: "9200" (the chain ID as a string).
Resources
Last updated: May 2026