Command Palette

Search for a command to run...

Server Favicon

OneSource - Blockchain Data API for AI Agents

This document covers the live chain-RPC family only: Ethereum mainnet, Sepolia testnet, and Robinhood Chain data for AI agents, returned fresh from OneSource-operated nodes rather than an index. Some endpoints proxy one RPC method; composite endpoints issue bounded RPC batches, decode contract calls, combine related results, or resolve off-chain NFT metadata. OneSource also serves Deepstate on-chain market data (order books, trades, candles, stats, and analytics) on this same host under /deepstate/v1/* — a separate family with its own spec at https://api.onesource.io/deepstate/openapi.yaml, not merged into this document. No API key or account is required to start: pay per call or use batch/session mode — USDC on Base via x402 (per-call `exact` scheme or batch-settlement `x402-batch` scheme), or pathUSD/USDC.e on Tempo via MPP (per-call or `tempo.session`). A flat-rate monthly subscription is also available via an API key, for callers who need volume or whose environment cannot custody a wallet or settle on-chain: https://onesource.io/rest-api#pricing.

GET

/api/chain/allowance

$0.003
ERC20 allowance via allowance (eth_call) - how much a spender is approved to move from an owner's wallet
GET

/api/chain/block-number

$0.001
Latest Ethereum block height - current chain tip via eth_blockNumber
GET

/api/chain/block/{number}

$0.003
Fetch an Ethereum block header and transaction hashes by number, tag, or hex via eth_getBlockByNumber
GET

/api/chain/chain-id

$0.001
Ethereum chain ID (EIP-155) via eth_chainId - confirm which chain a network is on
GET

/api/chain/code/{address}

$0.003
Check if an Ethereum address is a contract via eth_getCode - returns deployed bytecode
GET

/api/chain/contract/{address}

$0.005
Best-effort contract introspection via batched RPC - bytecode presence, token metadata, and ERC20-like/ERC721/ERC1155 classification
GET

/api/chain/ens/{input}

$0.005
ENS resolve - turn a .eth name into an address, or an address into its primary .eth name, via eth_call on OneSource live Ethereum RPC
GET

/api/chain/erc1155-balance

$0.003
ERC1155 token balance via balanceOf (eth_call) - how many copies of a token_id a wallet holds
GET

/api/chain/erc20-balance

$0.003
ERC20 token balance for any Ethereum wallet - USDC, USDT, DAI, or any token - via balanceOf (eth_call) on OneSource live Ethereum RPC
GET

/api/chain/erc20-transfers

$0.005
ERC20 Transfer logs via eth_getLogs - raw Transfer events for a token or wallet
GET

/api/chain/erc721-tokens

$0.008
List every ERC721 NFT token_id a wallet owns in a collection via tokenOfOwnerByIndex (eth_call)
GET

/api/chain/events

$0.005
Query Ethereum contract event logs via eth_getLogs - filter by contract, topic, and block range
GET

/api/chain/live-balance

$0.003
Live wallet balance - native ETH plus up to 20 caller-supplied ERC20 tokens in one bounded RPC batch
GET

/api/chain/network-info

$0.001
EVM network info - chain ID, block height, gas price, chain head age, and chain characteristics in one batched RPC call (eth_chainId + eth_blockNumber + eth_gasPrice + latest block header)
GET

/api/chain/nft-metadata

$0.008
NFT metadata for ERC721 or ERC1155 tokens via eth_call, with IPFS, Arweave, data URI, and public HTTP(S) resolution
GET

/api/chain/nft-owner

$0.003
Look up the current owner of an ERC721 NFT by token_id via ownerOf (eth_call)
GET

/api/chain/nonce/{address}

$0.003
Next transaction nonce for any Ethereum wallet via eth_getTransactionCount - how many txs it has sent
GET

/api/chain/pending

$0.01
Pending block - transactions not yet mined, via eth_getBlockByNumber("pending")
GET

/api/chain/proxy/{address}

$0.005
Detect upgradeable proxy patterns (EIP-1967, UUPS, Transparent) via eth_getStorageAt - returns the implementation address behind a proxy
GET

/api/chain/receipt/{hash}

$0.005
Transaction receipt via eth_getTransactionReceipt - status, gas, and event logs for a mined Ethereum transaction
GET

/api/chain/storage

$0.005
Read a raw storage slot from any Ethereum contract via eth_getStorageAt
GET

/api/chain/total-supply

$0.003
Total supply of an ERC20 or ERC721 token contract via totalSupply (eth_call)
GET

/api/chain/tx/{hash}

$0.008
Full Ethereum transaction details by hash via eth_getTransactionByHash - from, to, value, calldata, block
POST

/api/chain/call

$0.005
Simulate a read-only Ethereum contract call via eth_call - no transaction sent
POST

/api/chain/estimate-gas

$0.004
Estimate the gas a transaction will consume via eth_estimateGas before signing it

GET

/deepstate/v1/analytics/cost-to-quote

$0.02
Gas spent resting and cancelling orders for a Deepstate market
GET

/deepstate/v1/analytics/depth-history

$0.02
Deepstate depth heatmap - resting order size by price level over time for a market
GET

/deepstate/v1/analytics/makers

$0.02
Per-maker time-at-top, notional rested, fills, and DEEP rewards earned for a Deepstate market
GET

/deepstate/v1/book/{book}

$0.005
Deepstate order-book snapshot for a market - bids descending, asks ascending
GET

/deepstate/v1/candles/{book}

$0.005
Deepstate OHLCV candles for a market
GET

/deepstate/v1/markets

$0.005
The Deepstate markets this service serves, with their token layout
GET

/deepstate/v1/stats/{book}

$0.005
Deepstate rolling 24h / 7d / 30d volume and price change for a market
GET

/deepstate/v1/trades/{book}

$0.005
Deepstate trade tape for a market, newest first

Install on Your Agent

Add OneSource - Blockchain Data API for AI Agents skills to any client

npx agentcash add https://api.onesource.io
Transactions
Volume
Agents