← Back to marketplace

OneSource - Blockchain Data API for AI Agents

external

Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.

by Onesource33 endpoints100% uptime663ms avg

Price

from $0.0010

up to $0.0200 per request

Network

base

Category

ai

On-chain txns

414

Uptime

100%

Avg latency

663ms

Checks

64

Status

Healthy

Base URL

https://api.onesource.io

Endpoints (33)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/api/chain/allowance
base$0.0030

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

POST/api/chain/block-number
base$0.0010

Latest Ethereum block height - current chain tip via eth_blockNumber

POST/api/chain/block/%7Bnumber%7D
base$0.0030

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

POST/api/chain/call
base$0.0050

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

POST/api/chain/chain-id
base$0.0010

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

POST/api/chain/code/%7Baddress%7D
base$0.0030

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

POST/api/chain/contract/%7Baddress%7D
base$0.0050

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

POST/api/chain/ens/%7Binput%7D
base$0.0050

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

POST/api/chain/erc1155-balance
base$0.0030

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

POST/api/chain/erc20-balance
base$0.0030

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

POST/api/chain/erc20-transfers
base$0.0050

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

POST/api/chain/erc721-tokens
base$0.0080

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

POST/api/chain/estimate-gas
base$0.0040

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

POST/api/chain/events
base$0.0050

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

POST/api/chain/live-balance
base$0.0030

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

POST/api/chain/network-info
base$0.0010

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)

POST/api/chain/nft-metadata
base$0.0080

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

POST/api/chain/nft-owner
base$0.0030

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

POST/api/chain/nonce/%7Baddress%7D
base$0.0030

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

POST/api/chain/pending
base$0.0100

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

POST/api/chain/proxy/%7Baddress%7D
base$0.0050

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

POST/api/chain/receipt/%7Bhash%7D
base$0.0050

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

POST/api/chain/storage
base$0.0050

Read a raw storage slot from any Ethereum contract via eth_getStorageAt

POST/api/chain/total-supply
base$0.0030

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

POST/api/chain/tx/%7Bhash%7D
base$0.0080

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

POST/deepstate/v1/analytics/cost-to-quote
base$0.0200

Gas spent resting and cancelling orders for a Deepstate market

POST/deepstate/v1/analytics/depth-history
base$0.0200

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

POST/deepstate/v1/analytics/makers
base$0.0200

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

POST/deepstate/v1/book/%7Bbook%7D
base$0.0050

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

POST/deepstate/v1/candles/%7Bbook%7D
base$0.0050

Deepstate OHLCV candles for a market

POST/deepstate/v1/markets
base$0.0050

The Deepstate markets this service serves, with their token layout

POST/deepstate/v1/stats/%7Bbook%7D
base$0.0050

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

POST/deepstate/v1/trades/%7Bbook%7D
base$0.0050

Deepstate trade tape for a market, newest first

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://api.onesource.io \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://api.onesource.io
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://api.onesource.io", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.