DevX Multichain Balances

io.github.devx-agent由 GitHub 账号 devx-agent 发布v2.1.0更新于 Nov 6, 2026

Balances on 7 EVM chains, Solana, Tron: free one-chain lookup; full call 0.002 USDC via x402.

已验证Streamable HTTP可网页运行数据库金融

概览

AI 生成的概览

只读的多链钱包余额查询服务,覆盖 7 条 EVM 链、Solana 和 Tron,提供免费单链工具与付费多链调用。

可以做什么
  • 查询单个地址在某条链上的原生币及 USDC(Tron 上为 USDT)余额,免费、只读,取最新区块数据。
  • 获取如何购买完整多链调用的说明,该调用覆盖 7 条 EVM 链、Solana 和 Tron 的主要代币及自定义代币,通过 x402 支付 0.002 USDC。
  • 支持 ethereum、base、arbitrum、optimism、polygon、avalanche、bsc、solana 和 tron 上的地址。
适用场景
适合助手需要回答某个钱包持有什么、而用户不想自建 RPC 基础设施的场景,且免费的单链查询已足够。需要一次调用覆盖多条链和主要代币时,才考虑付费多链方式。
运行要求
远程 streamable HTTP 端点无需任何凭据。本地 npm 包通过 npx 运行(需 Node.js);付费多链调用需要环境变量 X402_PRIVATE_KEY,其值为持有 USDC 的 Base 钱包;未设置时付费调用只返回报价。需要能访问托管 API 的网络。
安装前请注意
付费多链调用每次 0.002 USDC,使用 X402_PRIVATE_KEY 中的钱包密钥签名,建议使用专用的低余额钱包。自 v2 起该包只是轻量客户端,所查询的地址会发送到托管 API。结果来自公共 RPC 节点,仅覆盖固定代币列表及 Solana 关联代币账户,稳定币总额为面值而非市价。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "devx-multichain-balances": {
      "type": "http",
      "url": "https://wallet-balances.nextill-pos.workers.dev/mcp"
    }
  }
}

README

DevX Multichain Balances

One call, nine chains. Native coin plus the major tokens for an address on Base, Ethereum, Arbitrum, Optimism, Polygon, Avalanche, BNB Chain, Solana and Tron. It is built for AI agents and apps that need to answer "what does this wallet hold?" without running their own RPC setup.

Everything here is read-only. It never asks for keys and never moves funds.

WhatCost
CLI / stdio MCP devx-multichain-balances (v2)Client for the hosted API below. One chain (native + USDC, USDT on Tron) is free; all / multichain_balances is the paid call, paid from your own wallet keyfree / 0.002 USDC
Remote MCP https://wallet-balances.nextill-pos.workers.dev/mcpbasic_balance (one chain, free) + multichain_balances_infofree
HTTP API GET /v1/balancesUp to 3 addresses (one EVM, one Solana, one Tron) → native + USDC, USDT, DAI, EURC, bridged USDC, WETH, WBTC/cbBTC per EVM chain; SOL + USDC/USDT (SPL); TRX + USDT/USDC (TRC-20); plus up to 10 custom tokens (ERC-20, SPL mint, TRC-20). Block numbers/slots included, stablecoin face-value total0.002 USDC via x402 on Base

Live: https://wallet-balances.nextill-pos.workers.dev · token list: /tokens.json

CLI

sh
npx devx-multichain-balances 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM          # free: SOL + USDC on Solananpx devx-multichain-balances TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G                      # free: TRX + USDT on Tronnpx devx-multichain-balances 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --chain arbitrum   # free: ETH + USDC on Arbitrum
# paid, 0.002 USDC per call: every matching chain, all majors, custom tokensexport X402_PRIVATE_KEY=0x...   # a Base wallet holding a little USDC (use a dedicated low-balance wallet)npx devx-multichain-balances all 0xd8dA...6045,9WzD...AWWM --chains base,ethereum,solana

How paying works: the CLI asks the API for its x402 quote, checks that it is USDC on Base, goes to 0xB3cD…f247 and is at or under --max-usd (default 0.01), then signs a gasless EIP-3009 authorization with your key via @x402/fetch. The key stays on your machine. Without a key, all prints the quote, pays nothing and exits with code 2. Since v2.0.0 the package is a thin client. It no longer ships the balance-reading code, and the addresses you query are sent to the hosted API.

MCP

Claude Desktop / Cursor (stdio):

json
{ "mcpServers": { "multichain-balances": { "command": "npx", "args": ["-y", "devx-multichain-balances", "mcp"], "env": { "X402_PRIVATE_KEY": "0x... (optional, enables the paid tool)" } } } }

Or remote (streamable HTTP): https://wallet-balances.nextill-pos.workers.dev/mcp (free tool + info only)

Tools: basic_balance (free), multichain_balances (0.002 USDC per call, pays only if X402_PRIVATE_KEY is set and never above 0.01 USDC, otherwise returns the quote), multichain_balances_info.

Paid hosted call (x402)

GET https://wallet-balances.nextill-pos.workers.dev/v1/balances?address=0x...,<solana>,<T...>[&chains=base,ethereum,solana,tron][&tokens=base:0xToken,solana:<mint>,tron:<T...>]
  • Answers 402 with an x402 v1 body (X-PAYMENT, network base) and a v2 PAYMENT-REQUIRED header (PAYMENT-SIGNATURE, eip155:8453). Both work. POST with a JSON body works too.
  • 2000 atomic USDC (0.002 USDC) to 0xB3cDDccEe6B150c8efFD55B961afc0Ecefe7f247, settled through the Coinbase CDP facilitator, listed in the CDP x402 Bazaar.
  • Settled only after a result is produced. Bad input, or every chain's RPC failing, is not charged. Failed chains are listed in summary.chains_failed.
  • chains defaults to every chain that matches the addresses you gave (evm = the 7 EVM chains).

Limits

  • It does not discover arbitrary tokens. It checks a fixed, verified list (see /tokens.json), and you can pass extra tokens yourself.
  • On Solana it reads the owner's associated token accounts (where wallets normally keep tokens). Tokens held in other token accounts are not counted.
  • The stablecoin total is face value (1 token = 1 unit), not a market price.
  • Data comes from free public RPC nodes (publicnode.com with fallbacks: mainnet-beta / Tatum gateway for Solana, TronGrid for Tron). Identical calls within 20 s may be served from a short per-instance cache (cache.hit).

OpenAPI: /openapi.json · Terms: /terms

Related DevX tools

Layout

  • cli/: npm package devx-multichain-balances (CLI + stdio MCP client for the hosted API), npm test
  • worker/: the Cloudflare Worker behind the hosted API (npm run build, npm test)

MIT. Made by DevX · [email protected]

来源:README.md,提交 644e6ad

工具

2

basic_balance

Free, read-only: native coin + USDC (USDT on Tron) balance of one address on one chain (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc, solana, tron), live at the latest block. Address: EVM 0x, Solana base58 or Tron T...

输入参数chainaddress必填

multichain_balances_info

How to buy the full call (native + USDC/USDT/DAI/EURC/bridged USDC/WETH/WBTC on 7 EVM chains, SOL + USDC/USDT on Solana, TRX + USDT on Tron, + custom tokens) via x402 for 0.002 USDC. Does not pay.

无需输入参数。

版本历史

1
  1. v2.1.0最新Oct 30, 2026

评分

已满足适用检查项的 100%

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

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