Base Onchain Tools

dev.workers.dolerite.base-onchain-tools由 base-onchain-tools.dolerite.workers.dev 发布官方发布者v1.0.0更新于 Oct 24, 2026

Base mainnet analysis: contract audits, transfer simulation, token pricing. Paid via x402.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

面向 Base 主网的远程 MCP 服务器:合约审计、地址与交易核查、代币定价、Gas 与资产组合查询,按次以 USDC 付费。

可以做什么
审计与识别合约:反汇编未验证字节码,检测 ERC-20/721/1155 类型与代理,并提供固定地址的 Base USDC 免费演示审计。核查地址与交易:区分合约与 EOA、查询余额与转出交易数,以及确认数、最终性和 ERC-20 转账明细。读取代币数据:元数据、授权额度,以及通过 Uniswap V3 池或 Chainlink 价格源获取任意 Base 代币的美元价格。查询 Gas 与模拟转账:实时 Gas 预言机、转账成本估算,以及不消耗 Gas 的失败原因解析。查询资产组合:一次调用获取最多 20 个地址的 ETH 与 USDC 余额。
适用场景
适合在向 Base 地址转账前核查地址、确认交易、查询代币价格,或了解未验证合约实际能做什么时使用。免费演示工具可先查看付费工具的输出形式,再决定是否付费。
运行要求
远程 streamable HTTP 端点;未声明本地运行时、账户或 API 密钥。付费工具需通过 Base 上的 x402 以 USDC 支付,因此需要能完成 x402 付款且有余额的钱包。需要网络访问该端点及 Base 主网数据。
安装前请注意
多数工具按次以 USDC 收费,每次 0.001 至 0.003 美元;调用付费工具会返回付款要求,声明失败调用不计费。支付涉及钱包和 Base 上的真实资金。结果仅为只读分析,不构成财务建议,且依赖第三方链上数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Base Onchain Tools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.workers.dolerite.base-onchain-tools%2Fbase-onchain-tools/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "base-onchain-tools": {
      "type": "http",
      "url": "https://base-onchain-tools.dolerite.workers.dev/mcp"
    }
  }
}

工具

12

base_demo

Free. Returns a complete, live contract audit of Base USDC — the same output shape as the paid audit tool, with the address fixed. Call this first to see what the paid tools return before spending anything.

无需输入参数。

base_address_check

Pre-flight check on a Base mainnet address before you pay it: contract vs EOA, ETH and USDC balances, outbound tx count, and warnings about whether funds sent there can actually be moved. Costs $0.002 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数address必填

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 decoded. Costs $0.002 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数hash必填

base_token

ERC-20 token metadata on Base mainnet: name, symbol, decimals and total supply, read straight from the contract. Costs $0.001 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数address必填

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 ETH. Costs $0.001 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

无需输入参数。

base_price

ETH/USD and BTC/USD read live from Chainlink's on-chain price feeds on Base, with the feed's own description, decimals, update timestamp, age in seconds and a staleness flag. Costs $0.001 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

无需输入参数。

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 slot with the current implementation address. Costs $0.002 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数address必填

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 right now. Defaults to USDC. Costs $0.001 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数owner必填tokenspender必填

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, and cross-checks the remaining ones to flag thin or manipulated liquidity. Costs $0.006 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数address必填

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), Panic codes translated to English, or a custom error selector), and separately reports balance and allowance blockers. Understands that a caller with no ETH is fine for gasless EIP-3009 or a sponsored relayer. Costs $0.008 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数to必填from必填tokenamount必填spender

base_contract_audit

What an UNVERIFIED Base contract can actually do — the case where block explorers show you nothing. Disassembles the deployed bytecode with a PUSH-aware opcode walk (a naive byte scan reports SELFDESTRUCT on contracts that cannot self-destruct), strips the Solidity metadata trailer, recovers the function selectors from the dispatch table and names them against a keccak-derived signature database, then reports admin powers (mint, blacklist, freeze, pause, trading switches, adjustable fees, upgrade hooks), dangerous opcodes (DELEGATECALL, SELFDESTRUCT, CALLCODE, CREATE2), which token standards it really implements, and whether it supports EIP-3009 so it can be paid gaslessly over x402 at all. Proxies are detected and followed, because a forwarder's own bytecode tells you nothing. Costs $0.04 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数address必填follow_proxy

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. Costs $0.003 per call, paid in USDC over x402 on Base. Calling this tool returns the payment requirements; failed calls are never billed.

输入参数addresses必填

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。