Skip to content

submit: 2056019848412008448: ChainScribe — onchain in plain language#10

Open
Infinity-light wants to merge 1 commit into
xagentAI:mainfrom
Infinity-light:submit/2056019848412008448
Open

submit: 2056019848412008448: ChainScribe — onchain in plain language#10
Infinity-light wants to merge 1 commit into
xagentAI:mainfrom
Infinity-light:submit/2056019848412008448

Conversation

@Infinity-light

Copy link
Copy Markdown

ChainScribe — onchain in plain language

A chat-first companion that turns crypto market questions into precise answers backed by live exchange data. No wallet to connect, no API key to paste, no dashboards to read — just ask.

The bet: AI-native chat × live market feeds beats yet-another-dashboard for most lookup tasks, especially for the 90% of people who don't speak block-explorer language yet.

Live Demo

https://chain-translator-blz45wctr-infinity-lights-projects.vercel.app/

Demo Video

https://github.com/Infinity-light/chain-translator/raw/main/media/demo.mp4

(GIF preview embedded in repo README)

GitHub Repo

https://github.com/Infinity-light/chain-translator

OKX Skills Used

  • /api/v5/market/ticker — live SPOT price + 24h stats for any pair (used by okx_ticker, okx_multi_ticker)
  • /api/v5/market/candles — OHLC history for trend / chart questions (okx_candles)
  • /api/v5/market/tickers — top gainers / losers across all USDT pairs (okx_top_movers)

Augmented with CoinGecko (trending, search, coin info, global market stats) so the agent can answer "what's the ATH?", "how is BTC dominance moving?", "is this coin new or old?" — context the exchange feed alone doesn't carry.

Key Features

  • Zero-config UX — public URL, click an example prompt, get an answer in seconds. No wallet, no signup, no keys.
  • Multi-step tool calling — agent searches → resolves → fetches → answers in one turn (max 8 steps via AI SDK v6 stopWhen)
  • Visible reasoning — tool-use chips activate in the UI as each tool fires; you can audit which data source backs each number
  • Live streaming — DeepSeek V4 chat mode streams tokens through useChat() for a snappy feel
  • CN + EN — agent matches user's language; tested with Chinese and English queries
  • Read-only by design — never asks for keys or signatures; the insight goes to whatever wallet you already trust

Stack

  • Next.js 16 (App Router, Turbopack) on Vercel
  • AI SDK v6 (ai + @ai-sdk/openai) → DeepSeek V4 chat mode (OpenAI-compatible, supports tool calls)
  • 8 typed tools (4× OKX V5 SPOT public + 4× CoinGecko free tier)
  • Tailwind v4, custom glass + radial-gradient dark theme

Roadmap

The /api/chat tool registry is built to accept OKX OnchainOS MCP tools (with a paid API key from web3.okx.com/build/dev-portal) side-by-side with the current public-feed tools — additive, no rewrite. That unlocks OKX-exclusive signals: KOL / Smart Money / Whale labels on every on-chain trade, meme pump bundle/sniper detection, developer rugpull history per token, cross-chain wallet PnL.

Track

Builder Track — Build with XAgent × OKX Hackathon, May 2026

@Infinity-light

Copy link
Copy Markdown
Author

v2 Update — added wallet & transaction translation

The first submission was honest about being market-only. After re-reading "ChainScribe — onchain in plain language" it was clear the name only half-fit, so this update closes the gap.

What's new (7 chain-aware tools alongside the existing 8 market tools):

  • Solana: sol_wallet_overview (SOL + SPL tokens), sol_recent_txs, sol_tx_decode (with SOL & SPL balance deltas) — via mainnet-beta RPC, no key
  • EVM: evm_wallet_overview, evm_wallet_multi_chain (Ethereum + Base + Arbitrum + Polygon + BNB Chain in parallel), evm_tx_decode (with auto-detected ERC-20 Transfer events) — via PublicNode, no key
  • Helper: detect_address — auto-classifies any unfamiliar long string so the agent picks the right downstream tool without guessing

The flow that proves it works:

User pastes 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and asks "在主流链上分别有多少?" → agent calls detect_address → identifies EVM address → calls evm_wallet_multi_chain (5 chains parallel) → answers with breakdown across ETH/Base/Polygon/BNB/Arbitrum. (Demo GIF in repo README shows this exact flow.)

Stable production URL (alias, won't change between deploys): https://chain-translator-app.vercel.app/

Updated demo video: https://github.com/Infinity-light/chain-translator/raw/main/media/demo.mp4 (38s, shows: top-movers → multi-chain Vitalik wallet → Ethereum tx decode)

Latest commit: Infinity-light/chain-translator@main

Total: 15 typed tools / 6 chains / 0 paid keys required to run.

@lessthanno lessthanno added hackathon Hackathon submission round-1 themu-shanghai TheMu Shanghai cohort and removed round-1 labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hackathon Hackathon submission themu-shanghai TheMu Shanghai cohort

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants