RPC API

Direct JSON-RPC access to blockchain nodes with built-in load balancing, failover support, and caching.

Overview

The Integra RPC API provides a managed gateway to blockchain nodes with enterprise-grade reliability:

  • Multi-Provider Failover - Automatic failover across multiple RPC providers
  • Rate Limiting - Fair usage policies with burst allowances
  • Caching - Intelligent caching for frequently accessed data
  • WebSocket Support - Real-time event subscriptions
  • Load Balancing - Distributed across multiple providers

Standard JSON-RPC Methods

All standard Ethereum JSON-RPC methods are supported:

Get Block Number

const response = await fetch('https://rpc.integra.dev/137', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_blockNumber',
    params: [],
    id: 1
  })
});

Get Balance

const response = await fetch('https://rpc.integra.dev/137', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_getBalance',
    params: ['0x742d35Cc6634C0532925a3b844Bc9e7595f5dE21', 'latest'],
    id: 1
  })
});

Call Contract

const response = await fetch('https://rpc.integra.dev/137', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_call',
    params: [{
      to: '0x...',
      data: '0x...'
    }, 'latest'],
    id: 1
  })
});

WebSocket Subscriptions

Subscribe to real-time events using WebSocket:

const ws = new WebSocket('wss://rpc.integra.dev/137?apiKey=YOUR_API_KEY');
 
ws.onopen = () => {
  // Subscribe to new blocks
  ws.send(JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_subscribe',
    params: ['newHeads'],
    id: 1
  }));
};
 
ws.onmessage = (event) => {
  const data = JSON.parse(event.data);
  console.log('New block:', data);
};

Supported Chains

ChainChain IDRPC URL
Polygon Mainnet137https://rpc.integra.dev/137
Ethereum Mainnet1https://rpc.integra.dev/1
Arbitrum42161https://rpc.integra.dev/42161
Optimism10https://rpc.integra.dev/10

See the Universal API for the complete list.

Rate Limits

  • Free Tier: 100 requests/second
  • Pro Tier: 1000 requests/second
  • Enterprise: Custom limits

Best Practices

  1. Use WebSocket for subscriptions - More efficient than polling
  2. Implement exponential backoff - For retries
  3. Cache frequently accessed data - Reduce API calls
  4. Batch requests when possible - Use eth_batch for multiple calls

Need Help?

Use the “Try It” button above to test RPC methods directly in your browser!