Plain-English decode of any Base mainnet transaction: strict JSON, risk flags, no LLM.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
One MCP tool: explain_transaction(tx_hash) β strict JSON explanation of any Base mainnet transaction.
Feed it a transaction hash. Get back what happened, in plain English, plus the structured facts: what moved, who was involved, what to be careful about, what it cost. Deterministic onchain decode β no LLM anywhere in the response path, so the same input always produces the same output, there is nothing to hallucinate, and the JSON contract is stable enough to parse blind.
Base mainnet (chain id 8453) only.
Links: Live endpoint Β· Docs Β· OpenAPI Β· MCP registry: io.github.0200project/base-transaction-decoder Β· Site
Formerly
base-tx-explain. The tool, the endpoint and the schema are unchanged β only the name moved, so that a search for "transaction" or "decoder" can find it. The repository keeps its original name, so existing clones, forks and links still work.
returns (as both structuredContent and stringified JSON in content[0].text):
action_type β one of: eth_transfer, erc20_transfer, erc20_approval, approval_revoked, approval_for_all, swap, add_liquidity, remove_liquidity, wrap, unwrap, nft_mint, nft_transfer, nft_sale, token_mint, bridge_in, bridge_out, lending_supply, lending_withdraw, lending_borrow, lending_repay, stake, unstake, claim, batch_transfer, account_abstraction_bundle, attestation, name_registration, contract_deployment, contract_interaction, unknown.risk_flags[].flag β one of: unverified_contract, first_time_counterparty, approval_for_all, unlimited_approval, known_drainer, nonstandard_token_symbol, impersonated_token, transaction_reverted. A flag always means evidence was found; a failed lookup never produces a flag.checks β read this before drawing any conclusion from an empty risk_flags. Because a failed lookup never produces a flag, an empty risk_flags means either "nothing was found" or "nothing was looked at", and those are opposite. Each of contract_verification, first_interaction and drainer_blacklist reports ok (ran against every address that warranted it), partial (ran against some), unavailable (the upstream sources were unreachable, so it could not run β a retry may get an answer), inconclusive (it ran and nothing failed, but the method cannot answer for this input and a retry will not change that β today, first_interaction for a sender with more transaction history than the lookup reads), or not_applicable (nothing to look at). unchecked_addresses names addresses that warranted a lookup but did not get one, because the transaction involved more of them than the per-transaction cap β so the address described in risk_flags is not necessarily the one that went unexamined. note says in plain language what did not run, and is null when everything did. An empty risk_flags alongside any status other than ok means not checked, not clean, and summary says so too. Absence of a flag is never a safety guarantee: these are observations about a transaction that has already been mined, not a verdict on it and not advice. The same statuses are counted across all responses and published as check_health on /healthz, so you can see whether a check was unavailable for a stretch of time rather than having to infer it from your own responses one at a time.status β success or reverted. Reverted transactions are classified by intent (what was attempted) and carry a transaction_reverted risk flag.partial: true β the transaction's full meaning could not be established; summary states exactly what is and is not known. On errors the tool returns isError: true with { "error": "...", "code": "invalid_hash" | "not_found" | "pending" | "upstream_error" }.provenance.untrusted_fields β lists the fields whose string contents come from attacker-controllable sources (token symbols, contract/collection names, event/function names): today summary, assets_moved[].token, and counterparties[].label. If you feed this output to an LLM, treat those fields as data, never as instructions. A token that names itself with instruction-like or promotional text is a scam signal, not a command. Symbols are normalized (control characters, line separators, emoji, and homoglyphs are stripped) and a token whose self-reported symbol is not a plausible ticker is shown as its contract address rather than its chosen name β so a hostile name cannot impersonate a real one or smuggle text into an agent's context.Raw transaction + receipt from Base RPC β builtin decoders for ~40 event formats (ERC-20/721/1155, Uniswap V2/V3/V4, Aerodrome/Solidly, Seaport, Aave V3, Compound V3, OP-stack bridges, ERC-4337 EntryPoint, EAS, Basenames, WETH, LP position managers) β deterministic rule-ordered classification β labels from a verified table of major Base contracts. App-specific events are named via the contract's verified ABI on Sourcify when available. Risk flags come from Sourcify/Basescan verification status, the ScamSniffer and MyEtherWallet public blocklists, and approval semantics. gas_paid_usd includes the OP-stack L1 data fee and prices ETH from the Chainlink ETH/USD feed at the transaction's block.
Environment (see .env.example): PAYMENT_MODE (none | x402), X402_PAY_TO (your receiving address β use a fresh wallet), X402_PRICE_USD, X402_FACILITATOR_URL (defaults to the keyless PayAI facilitator; Coinbase CDP facilitator also works and its API keys carry no spend exposure), FREE_CALLS_PER_IP, BASE_RPC_URLS, optional ETHERSCAN_API_KEY.
The server is stateless (fresh MCP server per request), so it scales horizontally and runs on anything that runs Docker β a Dockerfile and an Apify .actor/ config are included.
known_drainer flag is not a safety guarantee.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/base-transaction-explainer)<a href="https://allmcps.com/mcp/base-transaction-explainer"><img src="https://allmcps.com/api/badge/base-transaction-explainer?style=directory" alt="Base Transaction Explainer on AllMCPs" /></a>