API Reference
The Spectrum API is exposed through a single JSON-RPC 2.0 endpoint.
Resources: OpenAPI JSON | Pagination Guide
Send all Spectrum requests to:
POST https://your-endpoint.simplystaking.xyz/v1
Include your Spectrum method name in method and pass parameters as an object in params:
{
"jsonrpc": "2.0",
"method": "getBalance",
"params": {
"chain": "ethereum",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
},
"id": 1
}cURL Example
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "getBalance",
"params": {
"chain": "ethereum",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
},
"id": 1
}'Response:
{
"jsonrpc": "2.0",
"result": {
"data": {
"chain": "0x1",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"token": "ETH",
"balance": "32.126799033316011"
}
},
"id": 1
}Batch Requests
Send up to 50 calls in one HTTP request by posting an array to POST /v1.
For full request and response examples, see JSON-RPC Batch.
Endpoint Categories
| Category | Description | Page |
|---|---|---|
| Blocks | Block heights, block data, transactions in a block | Blocks |
| Accounts | Native and token balances, historical balances | Accounts |
| Tokens | Token metadata, allowances | Tokens |
| Portfolio | Full wallet portfolio with USD values | Portfolio |
| Gas | Cross-chain gas comparison | Gas |
| Receipts | Transaction receipts, traces | Receipts |
| Logs | Event logs, ERC-20 transfers | Logs |
| Prices | Token prices, history, batch, top tokens, search | Prices |
| Token Discovery | Search tokens, get addresses across chains | Token Discovery |
| ENS | Forward and reverse ENS resolution | ENS |
| DeFi Yields | Lending, vault, and staking APY/TVL | Yields |
| DeFi Positions | Aave, Compound, Morpho, Lido, Curve positions | DeFi Positions |
| Swap Quotes | Uniswap V2/V3/V4, Jupiter quotes | Swaps |
| Perps | Funding rates from Hyperliquid, dYdX | Perps |
| Approvals | Token approvals and revoke transactions | Approvals |
| NFTs | Collections, balances, metadata, ownership | NFTs |
| Registry | Protocol contracts, ABIs, chain metadata | Registry |
| Contracts | Gas estimation, call simulation, contract code | Contracts |
| JSON-RPC Batch | Multi-method batch requests via POST /v1 | JSON-RPC Batch |
| RPC Proxy | Raw JSON-RPC passthrough to chain nodes | RPC Proxy |
| Health | API and chain health checks | Health |
Address Formats
- EVM:
0x-prefixed, 42 characters (e.g.0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045) - Solana: Base58-encoded (e.g.
vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg) - Bitcoin: Bech32, P2PKH, or P2SH formats
Supported Chains
| Chain | Slug | Type |
|---|---|---|
| Ethereum | ethereum | EVM |
| Polygon | polygon | EVM |
| BNB Chain | bsc | EVM |
| Optimism | optimism | EVM |
| Base | base | EVM |
| Avalanche | avalanche | EVM |
| Arbitrum | arbitrum | EVM |
| Gnosis | gnosis | EVM |
| Moonbeam | moonbeam | EVM |
| Linea | linea | EVM |
| Hyperliquid | hyperliquid | EVM |
| Solana | solana | SVM |
| Bitcoin | bitcoin | UTXO |
Error Responses
| Status | Meaning |
|---|---|
| 400 | Bad request: missing or invalid parameters |
| 401 | Unauthorized: missing or invalid API key |
| 404 | Not found: invalid chain slug or resource |
| 429 | Rate limited: too many requests |
| 500 | Internal server error |
| 503 | Service unavailable: chain RPC is down |