Base API Quick Start Guide
BlockEden.xyz provides high-performance infrastructure for Base, Coinbase's Layer 2 solution built on the OP Stack. Access Base's ultra-low fees and enterprise-grade security through our global API endpoints with sub-second response times.
What is Base?
Base is Coinbase's Layer 2 blockchain that brings the next billion users onchain:
- Ultra-Low Fees: Transactions cost fractions of a penny
- EVM Compatibility: Full Ethereum tooling and smart contract support
- OP Stack Technology: Built on Optimism's proven infrastructure
- Enterprise Security: Backed by Coinbase's institutional-grade infrastructure
- No Native Token: Uses ETH for gas fees, simplifying the user experience
- Instant Finality: Fast transaction confirmation with L2 scaling
API Endpoints
BlockEden.xyz supports all Base API methods through our global infrastructure:
Mainnet
- JSON-RPC:
https://api.blockeden.xyz/base/<your-api-key>
- WebSocket:
wss://api.blockeden.xyz/base/<your-api-key>
Testnet (Sepolia)
- JSON-RPC:
https://api.blockeden.xyz/base-sepolia/<your-api-key>
- WebSocket:
wss://api.blockeden.xyz/base-sepolia/<your-api-key>
Quick Start
Step 1: Get Your API Key
- Visit BlockEden.xyz Dashboard
- Create a new API key for Base
- Select Mainnet or Testnet
Step 2: Test Connection
Get Latest Block Number
curl -X POST https://api.blockeden.xyz/base/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Get Account Balance
curl -X POST https://api.blockeden.xyz/base/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x742D5Cc6bF2442E8C7c74c7b4Be6AB9d6f10f5B4", "latest"],
"id": 1
}'
Get Gas Price
curl -X POST https://api.blockeden.xyz/base/<your-api-key> \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}'
Supported API Methods
Core JSON-RPC Methods
All standard Ethereum JSON-RPC methods are supported:
- Account Methods:
eth_getBalance
,eth_getTransactionCount
,eth_getCode
- Block Methods:
eth_blockNumber
,eth_getBlockByNumber
,eth_getBlockByHash
- Transaction Methods:
eth_sendRawTransaction
,eth_getTransactionReceipt
- Contract Methods:
eth_call
,eth_estimateGas
,eth_getLogs
- Gas Methods:
eth_gasPrice
,eth_feeHistory
,eth_maxPriorityFeePerGas
- Network Methods:
eth_chainId
,net_version