Ethereum API Quick Start Guide
BlockEden.xyz provides high-performance, reliable Ethereum infrastructure through our comprehensive JSON-RPC API. Connect to Ethereum mainnet, testnets, and layer 2 solutions with enterprise-grade reliability and developer-friendly tools.
Overview
Our Ethereum API supports:
- Ethereum Mainnet and all major testnets (Sepolia, Holesky)
- Layer 2 Solutions (Polygon, Arbitrum, Optimism)
- Full JSON-RPC Specification with debug and trace methods
- WebSocket Connections for real-time data
- Archive Node Access for historical data
- MEV Protection and transaction simulation
Quick Start
Step 1: Get Your API Key
- Visit BlockEden.xyz Dashboard
- Sign up for a free account if you haven't already
- Create a new API key for Ethereum
- Select your target network (Mainnet, Sepolia, etc.)
Step 2: Make Your First Request
Using cURL
curl -X POST https://ethereum-mainnet.blockeden.xyz/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Using JavaScript (Fetch)
const response = await fetch('https://ethereum-mainnet.blockeden.xyz/<your-api-key>', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_blockNumber',
params: [],
id: 1
})
});
const data = await response.json();
console.log('Current block number:', parseInt(data.result, 16));