Supported ChainEthereum
Ethereum API
Access Ethereum blockchain data through the Spectrum API. Ethereum is the most widely used smart contract platform and the foundation of the EVM ecosystem. Spectrum provides full endpoint coverage for Ethereum, including exclusive ENS name resolution support.
| Property | Value |
|---|---|
| Slug | ethereum |
| Type | EVM |
| Native Token | ETH |
| Chain ID | 1 |
Available methods
| Method | Description |
|---|---|
| getBlockHeight | Latest Ethereum block number |
| getBalance | ETH balance for a wallet |
| getTokenBalance | ERC-20 token balance |
| getTokenMetadata | ERC-20 token info |
| getTokenAllowance | Token spending allowance |
| getPortfolio | Full portfolio with USD values |
| resolveENS | ENS name resolution (Ethereum only) |
| getNftCollection | NFT holdings for a wallet |
| getBlockTransactions | Transactions in a block |
| estimateGas | Gas estimation for a transaction |
| traceTransaction | Internal call trace |
| getHistoricalBalance | Balance at a historical block |
| getCode | Contract bytecode check |
| simulateCall | Simulate a contract call |
| rpcProxy | Raw JSON-RPC passthrough |
| getChainHealth | Ethereum RPC health check |
Quick start
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_KEY" \
{ "jsonrpc": "2.0", "method": "getBlockHeight", "params": { "chain": "ethereum" }, "id": 1 }
{
"jsonrpc": "2.0",
"result": {
"chain": "0x1",
"height": 24535031
},
"id": 1
}Get an Ethereum wallet balance
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_KEY" \
{ "jsonrpc": "2.0", "method": "getBalance", "params": { "chain": "ethereum", "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" }, "id": 1 }
Get Ethereum gas comparison
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_KEY" \
{ "jsonrpc": "2.0", "method": "compareGas", "params": {}, "id": 1 }
Resolve an ENS name
ENS (Ethereum Name Service) resolution is available exclusively on Ethereum.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_KEY" \
{ "jsonrpc": "2.0", "method": "resolveENS", "params": { "name": "vitalik.eth" }, "id": 1 }
SDK
import { Spectrum } from '@spectrum-nodes/sdk';
const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' });
// Get the latest Ethereum block height
const block = await spectrum.core.getBlockHeight('ethereum');
console.log(block.height);
// Get a wallet's ETH balance
const balance = await spectrum.tokens.getBalance(
'ethereum',
'0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
);
console.log(balance.balance);
// Resolve an ENS name
const ens = await spectrum.ens.resolve('vitalik.eth');
console.log(ens.address);
// Get DeFi lending rates on Ethereum
const rates = await spectrum.yields.getLending({ chain: 'ethereum', protocol: 'aave' });
console.log(rates);DeFi yields on Ethereum
Ethereum has the deepest DeFi ecosystem. Query yields from protocols like Aave V3, Compound V3, Morpho, Lido, Rocket Pool, Pendle, and Yearn through the DeFi Yields endpoints.
Related pages
- API Reference: Full endpoint documentation
- ENS: Ethereum Name Service resolution
- DeFi Yields: Lending, vault, and staking rates
- Supported Chains: All networks