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
[!TIP] Register for a free API key at https://developer.lightchain.ai to increase your rate limits.
Pass the key via theheader or as a query parameter.CodeHTML
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
CodeHTML
CodeHTML
Resources
Last updated: February 2026