Animica x402 Directory

Directory / base-onchain-tools.dolerite.workers.dev

base-onchain-tools.dolerite.workers.dev/v1/base/token-price

USD price for ANY token on Base, not just the two assets Chainlink covers. Discovers every Uniswap V3 pool against WETH and USDC across all four fee tiers, reads sqrtPriceX96 and does the Q96 fixed-point maths, prices off the deepest pool, ignores deployed-but-never-traded pools whose prices are nonsense, and cross-checks the remaining ones to flag thin or manipulated liquidity. Query param: address.

Call it

# 1. Ask the endpoint what it costs (no payment, no wallet needed):
curl -i -X GET 'https://base-onchain-tools.dolerite.workers.dev/v1/base/token-price'

# -> HTTP/1.1 402 Payment Required
#    the response carries the price, asset and pay-to address.

# 2. Pay and retry with any x402 client:
npx x402-fetch 'https://base-onchain-tools.dolerite.workers.dev/v1/base/token-price'

Endpoint: https://base-onchain-tools.dolerite.workers.dev/v1/base/token-price. Operated by base-onchain-tools.dolerite.workers.dev, not by Animica. Price and availability were correct at the last probe on 2026-09-02 and are set by the operator, who may change them.

Other endpoints on base-onchain-tools.dolerite.workers.dev

base-onchain-tools.dolerite.workers.dev/v1/base/address-check

Pre-flight check on a Base mainnet address before paying it. Returns contract-vs-EOA, ETH and USDC balances, outbound transaction count, and warnings about whet…

GET · $0.002

base-onchain-tools.dolerite.workers.dev/v1/base/allowance

ERC-20 allowance on Base: how much a spender may pull from an owner, whether it is an unlimited approval, the owner balance, and how much is actually spendable …

GET · $0.001

base-onchain-tools.dolerite.workers.dev/v1/base/contract-audit

What an UNVERIFIED Base contract can actually do, which is exactly where block explorers show nothing. Disassembles the deployed bytecode with a PUSH-aware opco…

GET · $0.04

base-onchain-tools.dolerite.workers.dev/v1/base/contract-type

Identify what a Base contract actually is: ERC-20, ERC-721 or ERC-1155 via ERC-165, plus proxy detection across EIP-1967, EIP-1822 and the legacy ZeppelinOS slo…

GET · $0.002

base-onchain-tools.dolerite.workers.dev/v1/base/gas

Live Base mainnet gas oracle: current gas price, base fee, recent base fee trend, priority fee percentiles, and the estimated cost of a plain ERC-20 transfer in…

GET · $0.001

base-onchain-tools.dolerite.workers.dev/v1/base/portfolio

ETH and USDC balances for up to 20 Base addresses in a single call, with per-address funded flags and totals. One request instead of forty RPC round trips. Quer…

GET · $0.003

base-onchain-tools.dolerite.workers.dev/v1/base/price

ETH/USD and BTC/USD read live from Chainlink on-chain price feeds on Base, including the feed description, decimals, update timestamp, age in seconds and a stal…

GET · $0.001

base-onchain-tools.dolerite.workers.dev/v1/base/simulate-transfer

Will this token payment actually go through, and if not exactly why. Simulates the transfer without spending gas, decodes the real revert reason (Error(string),…

GET · $0.008

base-onchain-tools.dolerite.workers.dev/v1/base/token

ERC-20 token metadata on Base mainnet: name, symbol, decimals and total supply, read straight from the contract. Query param: address.

GET · $0.001

base-onchain-tools.dolerite.workers.dev/v1/base/tx-check

Confirm a Base mainnet transaction: success or reverted, block, confirmations and finality, gas used, and every ERC-20 transfer it moved with USDC amounts decod…

GET · $0.002

All 11 endpoints on base-onchain-tools.dolerite.workers.dev →