An autonomous listings desk for token-listing decisions — powered by intelligence bought through Telegraph.
Built for Telegraph Hackathon Season II · Track 03 Apps & Agents · Mission 01: Exchange.
An exchange listing review burns weeks of analyst time: contract audits, market-integrity checks, sanctions screening and social-authenticity checks are bought per seat, from separate vendors, with no shared receipts. ListingDesk collapses that into one agent run: give it a token contract address, and it buys ranked intelligence through Telegraph, then issues a signed listing-risk memo with a verdict and a cost line.
node src/cli.js check --contract 0x... --name "Project" --social @handle --chain BSC
- Preflight (free): reads the Telegraph account/escrow state, the
live intent catalogue and the current ranking epoch from the real
node (
devnode.telegraphprotocol.com, beta 2). - Purchases (paid, machine-to-machine, from escrow):
SMART_CONTRACT_AUDIT_GENERAL— contract audit (18 miners live; top-ranked:codewire-smart-contract-audit, score 0.9938)WASH_TRADING_DETECTION_GENERAL— market-integrity / wash-trading verdict with wash-volume share (17 miners live)SANCTIONS_SCREENING_MATCH_GENERAL— OFAC/EU/UN sanctions screen of the project name (26 miners live; only when--nameis given)SOCIAL_BOT_DETECTION_GENERAL— bot/coordination score for the project's social account (16 miners live; only with--social) Each ask costs ~$0.01 test USDC, paid automatically from the local Telegraph escrow by the official MCP server.
- Verdict (deterministic): a pure rule engine converts the purchased answers into LAYAK (list) / WASPADA (caution) / TOLAK (reject). A confirmed sanctions match or ≥50% wash volume is a hard reject; a failed required purchase yields INCOMPLETE — the desk never guesses a verdict it didn't pay to check.
- Memo: a listing-risk memo (JSON + text) containing every purchased answer as evidence, the verdict reasons, the total cost line, and a SHA-256 verification hash over the canonical memo — any later edit is detectable.
Telegraph beta 2 runs on Ethereum Sepolia (testnet). All money in
this project is test USDC (Telegraph's own test token,
0xcc194e1a843B658526D0D5C431f670028582Ae17) — no real funds are used
anywhere. The hackathon rules expressly allow a supported testnet
implementation to qualify.
Prerequisites: Node ≥ 20. Nothing to install (zero dependencies; the
official Telegraph MCP server is fetched by npx on first run).
# 1. Unit tests (verdict engine, validation, memo hashing)
npm test
# 2. Create the dedicated Telegraph wallet (testnet only, interactive)
npm run setup # creates ./.telegraph/wallet.json — back it up!
# 3. Fund it (needs tegar/account steps, see below), then deposit to escrow
npm run fund
# 4. Live smoke: free tools against the real node
npm run smoke
# 5. A real check (paid asks; ~$0.03 test USDC for the full panel)
node src/cli.js check --contract 0x865bd15C54B024239cFc1fC898E6ca08d44C3423 --name "BOME66" --chain "BSC"The dedicated wallet created in step 2 is
0xAe02FdefC1BCFAAbb62bC25fBE2fd18010d5718d in this workspace. It needs:
- A little Sepolia ETH for gas — any public Sepolia faucet.
- Test USDC — claim at https://anjoman.ai/dashboard/faucet
(sign in; 1 USDC per account every 24 hours) and send it to the
wallet address. (In this workspace the faucet's Google sign-in was
broken, so the same 1 USDC was minted directly through the test
token's open
mintfunction — testnet only, exactly the faucet amount, tx0x125b605b….) npm run fund— moves USDC into the Telegraph escrow (two testnet transactions: approve + deposit), after confirmation.
Status in this workspace: escrow FUNDED on 2026-11-15 — approve
tx 0x376316b8531052383391f792ba90929c3d9a108284befa5a3cb54f3315d4a0aa,
deposit tx
0x44e5b0bf4a8cf13843c0fbc239a657fea56fd902ee41aa676dc0f2bdcdc97b7c
(Sepolia; 1 test USDC deposited). One operational lesson: the node's
payment view lags a fresh deposit by several minutes — asks made in
the first minutes after depositing are refused with HTTP 402
("available=0 μUSDC", nothing charged) even though the account already
shows the escrow as spendable. Wait a few minutes and retry; a failed
ask is never billed. Before funding, the same 402 path produced the
INCOMPLETE memos recorded during the 2026-11-15 live session.
With the escrow funded, the exact command from step 5 above was run
against the live node for the BSC token BOME66
(0x865bd15C54B024239cFc1fC898E6ca08d44C3423):
SMART_CONTRACT_AUDIT_GENERAL— OK, $0.01WASH_TRADING_DETECTION_GENERAL— OK, $0.01SANCTIONS_SCREENING_MATCH_GENERAL— OK, $0.01- Verdict: TOLAK (reject) — the purchased audit reported critical findings (reentrancy; honeypot); sanctions: no match reported; wash trading: no material signal. The deterministic engine rejects on the critical audit findings alone.
- Total cost: $0.03 test USDC (escrow remainder $0.97).
- Memo verification hash (SHA-256):
0b67c5e6c67b434f55d1e6b0b5a14e07d00b2431267a3c3832d462885e3dbcd5
So the full loop — buy ranked intelligence machine-to-machine, decide deterministically, issue a hash-sealed memo with a cost line — is proven end-to-end on the live beta-2 network, not just in unit tests.
- Invalid contract address → structured
INVALID_CONTRACT_ADDRESSerror, exit code 2, no network calls. - Escrow empty → all purchases refused with 402, verdict INCOMPLETE, exit code 3, $0 charged (a failed ask is never billed).
- Missing optional inputs (
--name,--social) → those panels are skipped, the rest of the memo still completes.
src/cli.js CLI entry: check command, input validation, orchestration
src/telegraph.js Telegraph access via the official MCP server (subprocess)
src/mcp-client.js Minimal MCP stdio client (JSON-RPC)
src/verdict.js Deterministic verdict engine (pure, unit-tested)
src/memo.js Memo assembly, canonical SHA-256 verification hash
scripts/smoke.mjs Live smoke against the real node (free; --paid for one ask)
test/ node:test unit tests (fixtures are dev-only, never evidence)
- Who is the buyer? Listing/risk teams at spot exchanges and launch platforms; they face this problem for every listing application.
- Problem → result: weeks of per-seat analyst tooling → one agent run, ~$0.03 of purchased intelligence, a reproducible memo with receipts and a cost line.
- Why Telegraph? The intelligence is ranked by measured performance and bought machine-to-machine; the desk holds no vendor contracts and swaps in whichever miner currently ranks best per intent.
- Honest status: testnet (beta 2 / Sepolia), solo build; escrow funded and the first full paid run completed live on 2026-11-15 (verdict issued, $0.03 spent — see "Live proof" above). Independent adoption evidence is still to be gathered during the remaining event window.
Original code by tegar07 for this hackathon. The only reused component
is the official Telegraph MCP server
(@telegraphprotocol/telegraph-protocol-mcp, Telegraph Protocol),
driven as a subprocess — disclosed here as required by the rules.