Documentation

Build on the verified record.

Everything you need to use keldrin from code or from an agent (built for Agentic Stock Finance): the REST API, the MCP server, the CLI and the agent skill, how values are verified, what is covered and what is not. Free, keyless, read-only. Base URL BASE (the previous address, https://keldrin.vercel.app, serves the same API and stays available for existing integrations).

Introduction

keldrin is the verified record for Coinbase tokenized stocks (B20 tokens) on Base, chain 8453. It collects facts from public sources (Base chain state, Chainlink NAV feeds, SEC filings and Coinbase's public token list), checks each one with an independent second code path, and serves only what passed. When something is not known, keldrin says unknown with a reason instead of guessing.

keldrin is informational. It is not an exchange, a trading agent, an adviser or an execution-critical price oracle, and it is not affiliated with Coinbase, Chainlink, Base, Clanker or Bankr.

Quickstart

First request in 60 seconds

No account, no key, nothing to install. Pick one and paste it:

curl BASE/v1/assets/0xb20000000000000000000078ee7ce2fE4908108C/market-context

Agent: claude mcp add --transport http keldrin BASE/mcp · Terminal: npx -y keldrin context NVDAc

Three interfaces over the same verified data; choose the one that fits. MCP does not replace the REST API. The address used below is NVDAc; prefer contract addresses over symbols, because several tokens can share a symbol.

1. REST API, for apps and backends

curl: list tokens, then ask about one.

curl -s BASE/v1/assets | head -c 600
curl -s BASE/v1/assets/0xb20000000000000000000078ee7ce2fE4908108C/corporate-actions

JavaScript (fetch):

// Node 18+, Deno, Bun or a browser: no install, no key
const r = await fetch("BASE/v1/assets/0xb20000000000000000000078ee7ce2fE4908108C/market-context");
const { data } = await r.json();
console.log(data.symbol, "NAV", data.nav?.nav, "round", data.nav?.round_id, "state", data.staleness?.state);

Python (standard library):

# Python 3, standard library only: no install, no key
import json, urllib.request
url = "BASE/v1/assets/0xb20000000000000000000078ee7ce2fE4908108C/market-context"
data = json.load(urllib.request.urlopen(url))["data"]
print(data["symbol"], "NAV", data["nav"]["nav"], "round", data["nav"]["round_id"], "state", data["staleness"]["state"])

Building with an AI coding assistant? Paste this prompt:

Read BASE/llms.txt and BASE/openapi.json. Build a function that, for a tokenized stock contract on Base, returns its latest Chainlink NAV with the round id, whether the NAV is fresh, and the next corporate action, using keldrin's free REST API. Treat "unknown" fields as unknown; never invent values.

2. MCP, for AI agents

Claude Code:

claude mcp add --transport http keldrin BASE/mcp

Cursor and other clients with remote MCP (Claude Desktop: run it locally with npx -y keldrin mcp, see the agent guide):

{
  "mcpServers": {
    "keldrin": { "url": "BASE/mcp" }
  }
}

Then ask your agent:

Is NVDAc's price on Base trustworthy right now? Show the Chainlink round id, how old the NAV is, and whether a dividend is coming.

No MCP client? The same tool call over plain HTTP:

curl -s BASE/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_market_context","arguments":{"token":"0xb20000000000000000000078ee7ce2fE4908108C"}}}'

All 12 tools, more prompts, premium answers over x402 and a reproducible demo: agent integration guide.

3. CLI, for terminals and scripts

npx -y keldrin context NVDAc

Machine-readable output for scripts and agents:

npx -y keldrin actions NVDAc --json

Agent with a shell? Paste this prompt:

Use the keldrin CLI (npx -y keldrin --help) to check NVDAc: market context, upcoming corporate actions, then run "npx -y keldrin verify-nav NVDAc" to re-check the NAV onchain. Report anything marked unknown as unknown.

Every example marked on this page is run against the live API by keldrin's status checks (scripts/docs-examples.mjs), so a broken example is caught, not shipped.

Data and asset coverage

Reading live coverage…

CapabilityWhere it existsSource
Identity (contract, symbol, ISIN, decimals, multiplier)Every tracked tokenCoinbase token list, cross-checked against chain state
Corporate actions (dividends, splits, multiplier changes)Every tracked token is monitored; records exist where an action happenedBase chain + SEC filings
Historical NAV, risk, market contextOnly tokens with a Chainlink NAV feed listed by Coinbase and independently confirmedChainlink on Base
DEX price and depthTokens with verified plain pools (Uniswap v3, hookless v4, Aerodrome) against USDC, WETH or ETHBase chain, read live
Earnings releasesUS filers with SEC Form 8-K item 2.02 since 2025-01-01 (foreign 6-K filers not covered)SEC EDGAR
Onchain adoptionStocks used as the pair of verified Clanker v5 or Bankr launchesBase chain

Issued vs registered. Coinbase's list includes tokens that have been registered but not issued yet: the contract exists, but no tokens do, so nothing can be held or traded. Each token in GET /v1/assets has supply_state: issued (total supply above zero), registered_not_issued, or unknown; meta.supply_states counts them.

Each token in GET /v1/assets carries coverage_level (full, market, identity, unverified, unknown), capabilities (one boolean per row above) and missing: the reason each false capability is false (for example no_nav_feed_published), and missing_explained: the same reasons in plain English, on the token itself.

REST API reference

All endpoints are GET unless noted, return JSON {"data": …, "meta": …} and are listed in the OpenAPI 3.1 contract at /openapi.json. {contract} is a 0x address.

EndpointWhat it returns

Requests and responses

Market context for one token

curl BASE/v1/assets/0xb20000000000000000000078ee7ce2fE4908108C/market-context

Live response (read when this page loaded):

loading…

A token's coverage

loading…

MCP server

A remote MCP server (Streamable HTTP, stateless, every tool read-only) at BASE/mcp. Listed in the official MCP Registry. Setup for Cursor and Claude Desktop, example prompts, x402 for agents and a reproducible demo: agent integration guide.

claude mcp add --transport http keldrin BASE/mcp

Or run it locally over stdio through the CLI:

claude mcp add keldrin -- npx -y keldrin mcp
ToolWhat it does
Reading the live tool list…

CLI

Zero dependencies, Node 20+. Every command takes --json; --api=<url> and --rpc=<url> override the defaults (keldrin's API and Base's public RPC). Exit codes: 0 ok, 1 a verification found a mismatch, 2 error.

npx -y keldrin session
npx -y keldrin assets NVDA
npx -y keldrin actions GOOGLc
npx -y keldrin nav NVDAc --from=2026-11-01
npx -y keldrin context NVDAc
npx -y keldrin dex AAPLc
npx -y keldrin snapshot
npx -y keldrin report NVDAc
npx -y keldrin verify-nav NVDAc
npx -y keldrin verify-dex NVDAc
npx -y keldrin mcp

verify-nav and verify-dex re-read the served values on the chain yourself and compare. snapshot and report use the free daily tries (below).

Agent skill

An agent guide in plain Markdown: when to use keldrin, how to read each field, and the safety and payment rules. Point your agent at it:

Read BASE/skill.md and follow it.

Machine-readable summaries for agents: /llms.txt, /skill.md, /start.md, /openapi.json.

GET /v1/assets/{contract}/nav/history?interval=daily|round&from=YYYY-MM-DD&to=YYYY-MM-DD. The Chainlink NAV is a total-return reference published by the feed: it already includes dividends and splits, so never apply the multiplier to it again. daily gives the last official in-session round per NYSE trading day; round gives every official round (paged with limit). Every point names its feed, phase, aggregator and round id, so you can re-read it with getRoundData. Missing days are listed, never filled. Only independently verified feeds are served (503 NAV_NOT_VERIFIED otherwise).

Risk from the same closes: GET /v1/assets/{contract}/risk (30- and 60-day annualized volatility, max drawdown with peak and trough round ids, 1/5/20-day returns). History, not a forecast.

Corporate actions

GET /v1/assets/{contract}/corporate-actions, GET /v1/events, GET /v1/changes?since=…, GET /v1/calendar?state=upcoming, GET /v1/actions/{record_id}. Applied actions come from the token's onchain multiplier change (exact WAD integers, 1e18 = 1) matched to the issuer's SEC filing, with transaction hashes. Upcoming ones come from declared dividends and issuer announcements; the expected adjustment date is an observed pattern, stated with its rate, and a late adjustment is flagged late. Every event carries status_description, the status in plain English. Across all stocks, GET /v1/events?within_days=7 returns what is expected to apply in the next N days plus anything overdue; poll GET /v1/changes?since=… for anything new or changed. Balances never change: the multiplier does (shares per token = multiplier).

Market context

GET /v1/assets/{contract}/market-context and GET /v1/market/session. The US session now (open, pre, after, closed, weekend, holiday; NYSE calendar 2026–2027), next open and close, the latest Chainlink NAV read live with its round id and age, and a staleness verdict: fresh, expected_closed or unexpectedly_stale, judged against the feed's own verified update rhythm. The gap between the DEX price and the NAV is withheld when the NAV is stale or its rhythm unknown; when it is shown, gap_reflects_market_closure: true means the market is closed and the NAV is held at its last value, so the gap reflects the closure, not mispricing.

DEX pricing and liquidity

GET /v1/assets/{contract}/dex. Read live at one pinned block from pools keldrin found and independently re-derived: Uniswap v3, hookless Uniswap v4, Aerodrome and Slipstream, against USDC, WETH or ETH. Returns the main market (the deepest usable pool), price per token in USD, estimated depth to move the price 2%, and every pool with its status (too_thin, high_fee, outlier, …). Hooked launch pools (Clanker, Doppler) are never used as a stock price. Pools above a 1% fee are excluded; thin_market flags shallow main pools.

Earnings releases

GET /v1/assets/{contract}/earnings: SEC Form 8-K (and 8-K/A) filings listing item 2.02 since 2025-01-01, with SEC's exact acceptance time and links to the filing. Each is re-checked against the filing's own headers on www.sec.gov. Facts only: no estimates, consensus or predicted dates. Foreign issuers that report on Form 6-K are not covered yet.

Onchain adoption

GET /v1/assets/{contract}/adoption, GET /v1/pairs?platform=clanker|bankr&stock=0x…, GET /v1/pairs/overview. How a stock is used as the pair asset of community-token launches: launches, pools traded, swaps and stock-side volume for 24 h, 7 days and all time, from independently verified pools. Two platforms today: Clanker v5 and Bankr (Doppler launches whose onchain launch record names Bankr's integrator). These pools price the community token in the stock and are never a price for the stock. For Clanker, volume comes as net, tax and gross; for Bankr only gross is measured. Ranked by the last 7 days' builder activity: GET /v1/adoption/leaderboard (sort=all for all time). See the Adoption page.

Verification methodology

  • Two code paths. The research robot indexes; a separate verifier, with its own code, its own database login (it can only add reviews), re-derives each fact. Pool and NAV checks and receipt spot checks use a different data provider (Base's public RPC); large log recounts use the robot's provider with independent decoding. Only CONFIRMED facts are served.
  • Fail closed. Any mismatch is REJECTED and never served; an unreadable source is UNSURE and retried. A token whose identity check fails gets nothing beyond its registry entry.
  • Exact values. Multipliers are integers (WAD), NAV points carry round ids, DEX reads name their block, SEC facts link the filing. Append-only storage: corrections are new revisions, never edits.
  • Recheck it yourself. npx keldrin verify-nav and verify-dex; every response names its source.

Data freshness and market sessions

  • Live reads at request time: market context NAV, DEX prices, the session.
  • Indexed by the research robot, which runs once a day: corporate actions, NAV history, earnings, DEX pool discovery, onchain adoption. GET /health shows the last run.
  • Cached: /v1/overview (a few minutes), /v1/stats (up to about 20 minutes).
  • The Chainlink NAV updates during US market hours and holds its last value while the market is closed; expected_closed tells you that apart from a stale feed.

Error responses and unknown states

Errors are {"error": {"code", "message", "hint"}} and are never charged.

HTTPCodeMeaning
400BAD_ADDRESS, TOKEN_REQUIRED, BAD_PAGE, BAD_SINCE, BAD_LIMIT, BAD_CURSOR, UNKNOWN_PLATFORM; website forms: BAD_KIND, BAD_NAME, BAD_EMAIL, BAD_MESSAGE, TOO_LONGFix the input (an exact 0x address, a valid parameter)
402FREE_TRIES_USEDToday's 3 free snapshots/reports are used; pay lists the x402 links
404UNKNOWN_ASSET, UNKNOWN_SYMBOL, UNKNOWN_RECORD, NO_NAV_FEED, NOT_FOUNDNot tracked, or no verified NAV feed for this token
405METHOD_NOT_ALLOWEDRead-only API: use GET (POST only for /mcp and the website forms)
409AMBIGUOUS_SYMBOLSeveral tokens share the symbol: pass the address
413TOO_LARGERequest body too large
429RATE_LIMITEDSlow down; see retry-after
503INCOMPLETE, NAV_NOT_ENABLED, NAV_NOT_VERIFIED, FREE_TRIES_UNAVAILABLE, DB_UNAVAILABLE, CONTACT_UNAVAILABLEA complete, verified answer can't be built right now; retry in a minute

Inside successful answers, missing data is explicit: fields such as unavailable_reason, nav_unavailable_reason, value_at_nav_unavailable_reason and missing say why a value is absent. Treat null as unknown, never as zero.

x402 payments

Only the one-call snapshot and report are paid, and only after the free daily tries: $0.05 USDC on Base through Bankr's x402 service. Call without payment, read the terms in the payment-required header of the 402 response, check them (x402 version 2, scheme exact, network eip155:8453, USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, amount 50000 or less, payTo 0x8AEE621035D93Deb3C0C1177fac252dC2dd501a0), sign one EIP-3009 authorization and resend with PAYMENT-SIGNATURE. Only a 2xx is charged; keldrin returns a 2xx only for a complete answer.

curl -i BASE/api/snapshot

Full payment rules for agents: /skill.md.

Pricing and rate limits

FreePaid
REST API, MCP, CLIYes, no key—
Snapshot (all verified stocks) and report (one stock)3 a day per network address (shared by everyone calling from the same address, e.g. an agent server serving many users)$0.05 USDC per call via x402, no daily limit
Rate limitUp to 300 requests per minute per IP at the network edge; the API may answer 429 sooner under load (about 120 per minute per client per server)

Known limitations

  • NAV history, risk and market context exist only for tokens with a Chainlink NAV feed listed by Coinbase; most tracked tokens have none.
  • Coinbase tokenized stocks on Base only. Other issuers and chains are not covered yet.
  • Earnings: US 8-K item 2.02 filers only; no estimates or upcoming dates.
  • DEX prices describe onchain pools at a block, not the stock's exchange price; many pools are thin.
  • Onchain adoption: no wash-trade filtering, unique traders not measured; Bankr volume is gross only; dollar values only where a verified NAV exists, as an estimate.
  • The research robot runs once a day, so indexed data can be up to about a day old (live reads are not).
  • keldrin is not an oracle: do not use it as the only input for liquidations, settlement or other execution-critical decisions.

Support and contact

Questions, bugs, integrations and partnerships: the contact form or @usekeldrin on X. Live counts: Transparency. Terms and privacy: /legal.