XRPL EVM Sidechain API Integration
Overview
XRPL EVM is supported by Pocket Network's enterprise-grade infrastructure with guaranteed uptime, global edge network, and developer-first tooling.
Network Information
| Property | Value |
|---|---|
| Network Name | XRPL EVM Sidechain |
| Native Token | XRP |
| Cosmos Chain ID | xrplevm_1440000-1 |
| Pocket Service ID | xrplevm |
| Block Explorer | XRPL EVM Explorer |
Supported APIs
| API | Documentation |
|---|---|
| JSON-RPC | view spec |
| CometBFT API | view spec |
| Cosmos SDK API | view spec |
| Websockets | view spec |
Integration Examples
Quick Setup with Ethers.js
// Using ethers.js for EVM compatibility
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('YOUR_ENDPOINT');
// Get latest block
const blockNumber = await provider.getBlockNumber();
console.log('Latest block:', blockNumber);
// Get account balance
const balance = await provider.getBalance('0x...');
console.log('Balance:', balance.toString());
WebSocket Connection
// Using WebSocket for real-time data
const ws = new WebSocket('YOUR_ENDPOINT');
ws.on('open', () => {
ws.send(JSON.stringify({
method: 'eth_subscribe',
params: ['newHeads']
}));
});
ws.on('message', (data) => {
console.log('New block:', JSON.parse(data));
});
Developer Resources
📚 Essential Links
🛠️ Tools & SDKs
💬 Community & Support
Public Endpoint
Free public RPC endpoint available with fair use limits. No API key required.