Skip to Content
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.

PropertyValue
Slugethereum
TypeEVM
Native TokenETH
Chain ID1

Available methods

MethodDescription
getBlockHeightLatest Ethereum block number
getBalanceETH balance for a wallet
getTokenBalanceERC-20 token balance
getTokenMetadataERC-20 token info
getTokenAllowanceToken spending allowance
getPortfolioFull portfolio with USD values
resolveENSENS name resolution (Ethereum only)
getNftCollectionNFT holdings for a wallet
getBlockTransactionsTransactions in a block
estimateGasGas estimation for a transaction
traceTransactionInternal call trace
getHistoricalBalanceBalance at a historical block
getCodeContract bytecode check
simulateCallSimulate a contract call
rpcProxyRaw JSON-RPC passthrough
getChainHealthEthereum 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.