Etherscan

io.etherscan由 etherscan.io 發布官方發布者v2.3.0更新於 Oct 25, 2026

Read-only Etherscan V2 blockchain data: balances, transactions, transfers, tokens, contracts, logs.

已驗證Streamable HTTP可網頁執行資料庫金融

概覽

AI 產生的概覽

唯讀的 Etherscan V2 區塊鏈資料伺服器,讓助理查詢以太坊餘額、交易、代幣轉帳、合約、日誌和 Gas 價格。

可以做什麼
查詢地址的原生代幣餘額和 ENS 名稱,將以太坊主網名稱解析為地址(不支援鏈下萬用字元名稱)。依雜湊取得一般交易、內部交易、完整交易物件、交易收據、收據狀態和合約執行狀態。列出 ERC-20、ERC-721 和 ERC-1155 代幣轉帳,可依合約篩選。取得已驗證合約的原始碼、ABI,以及最多五個合約的建立者地址和建立交易。依地址和主題在區塊範圍內搜尋事件日誌,取得 Gas 價格建議或最接近某個 Unix 時間戳的區塊。列出支援的鏈,並將資料工具已回傳的事實呈現成瀏覽器風格的卡片。
適用情境
適合助理需要回答以太坊鏈上活動問題時使用:查看地址餘額或歷史、檢查某筆交易、核實合約原始碼或 ABI、追蹤代幣轉帳或讀取事件日誌。它為唯讀,適合調查和報告,不適合送出交易。
執行需求
遠端 streamable HTTP 端點,不需本機套件。需要 Etherscan API 金鑰,透過 Authorization 標頭以 Bearer 加金鑰的形式傳送;可在 Etherscan 網站建立免費金鑰。需要能存取託管端點的網路。
安裝前請注意
API 金鑰是放在 Authorization 標頭中的機密,應避免出現在日誌和共用設定中。所有工具都是唯讀查詢,但查詢會向 Etherscan 揭露你正在調查的地址和合約。託管部署回傳隨套件附帶的鏈清單快照,可能落後於即時清單;部分資料有限制,例如僅支援拜占庭之後的收據,ENS 解析僅限主網。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Etherscan,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.etherscan%2Fetherscan-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "etherscan": {
      "type": "http",
      "url": "https://mcp-keyless.etherscan.io/mcp"
    }
  }
}

工具

17

get_native_balance

Get Native Balance

Get the native coin (e.g. ETH) balance of an address, in wei.

輸入參數tagaddress必填chainid

get_transactions

Get Transactions

Get the list of normal (external) transactions for an address.

輸入參數pagesortoffsetaddress必填chainidendblockstartblock

get_internal_transactions

Get Internal Transactions

Get internal transactions for an address, or by a specific parent transaction hash.

輸入參數pagesortoffsettxhashaddresschainidendblockstartblock

get_token_transfers

Get Token Transfers

Get token transfer events for an address, optionally filtered by token contract. Select the token standard: erc20 (fungible, default), erc721 (NFT), or erc1155 (multi-token).

輸入參數pagesortoffsetaddresschainidendblockstandardstartblockcontractaddress

resolve_ens_name

Resolve Ens Name

Resolve an ENS name (or onchain subdomain, e.g. etherscan.eth or gm.etherscan.eth) to its Ethereum address. Ethereum mainnet only. Offchain names that require CCIP Read / wildcard resolution (e.g. *.base.eth) are not supported.

輸入參數name必填

get_contract_source

Get Contract Source

Get the verified source code and metadata for a contract address.

輸入參數address必填chainid

get_contract_abi

Get Contract Abi

Get the verified ABI (JSON) for a contract address.

輸入參數address必填chainid

get_contract_creation

Get Contract Creation

Get the creator address and creation transaction hash for up to 5 contract addresses. The multi-kilobyte creation bytecode is omitted by default to keep responses small; set include_creation_bytecode=true to include it.

輸入參數chainidcontractaddresses必填include_creation_bytecode

get_transaction_receipt_status

Get Transaction Receipt Status

Get the receipt status of a transaction (1 = success, 0 = failed). Post-Byzantium only.

輸入參數txhash必填chainid

get_transaction_status

Get Transaction Status

Get the contract execution status of a transaction (detects failed/erroring executions).

輸入參數txhash必填chainid

get_gas_oracle

Get Gas Oracle

Get current gas price recommendations (safe / propose / fast) from the gas tracker.

輸入參數chainid

get_block_by_timestamp

Get Block By Timestamp

Get the block number closest to a given Unix timestamp (seconds).

輸入參數chainidclosesttimestamp必填

get_supported_chains

Get Supported Chains

Get the chains / chain IDs supported by the Etherscan V2 API. In the hosted (proxy) deployment this returns a bundled snapshot shipped with the server, refreshed when the package is updated; in direct/stdio mode it queries the live chain-list endpoint. A chain's absence from the returned list is not proof that it lacks live support.

無需輸入參數。

get_logs

Get Logs

Search event logs by contract address and/or topics over a block range. Topics are 32-byte hex values; topic0 is usually the keccak256 event-signature hash. Adjacent-topic operators (and/or) combine multiple topic filters. Provide 'address' and/or at least one topic.

輸入參數pageoffsettopic0topic1topic2topic3addresschainidtoblockfromblocktopic0_1_oprtopic1_2_opr另有 1 個

get_transaction_by_hash

Get Transaction By Hash

Get the full transaction object for a transaction hash (from, to, value, input data, gas, gas price, nonce, block number/hash, transaction index). Returns null if the hash is unknown.

輸入參數txhash必填chainid

get_transaction_receipt

Get Transaction Receipt

Get the transaction receipt for a transaction hash (execution status, gas used, cumulative gas used, effective gas price, logs, and the created contract address for deployments). Returns null if the hash is unknown or the transaction is still pending.

輸入參數txhash必填chainid

render_etherscan_widget

Show Etherscan Result

Present exact facts returned by Etherscan data tools in a fast explorer-style card. Call the relevant Etherscan data tool first and copy only supported values into this tool. Never invent scores, risk labels, historical prices, forecasts, or audit conclusions.

輸入參數view必填chainchartitemstitle必填footermetricssectionssubtitleexplorerUrl

版本歷史

1
  1. v2.3.0最新Sep 16, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Etherscan 整合