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
The endpoints above resolve to the public load balancer at34.50.152.106.
RPC endpoints may be rate-limited during periods of high demand.
If you experience throttling, consider running your own mainnet node.
Rate Limits
[!TIP] Register for a free API key at https://developer.lightchain.ai to increase your rate limits.
Pass the key via theX-API-Keyheader or as a query parameter.
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
The following custom RPC methods are available for interacting with the PoI consensus and AIVM layers: AIVM Methods PoI MethodsExample Requests
Get Latest Block Number
CodeBASH
CodeJSON
Get Account Balance
CodeBASH
Submit an AI Inference Task
CodeBASH
CodeJSON
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