Ethereum Transaction Builder

io.github.nirholas由 GitHub 帳號 nirholas 發布v1.0.0更新於 Oct 24, 2026

Build and sign Ethereum transactions - EIP-1559, gas estimation, RLP, ERC-20 transfers

發布方自己的服務:WAI Quantum job service

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理建構、簽署、解碼與分析以太坊交易,包含 EIP-1559 與 ERC-20 轉帳。

可以做什麼
建構並簽署傳統或 EIP-1559 交易,支援一步完成建構與簽署,以及 ERC-20 轉帳 calldata 編碼、任意函式呼叫編碼與 calldata 解碼。解碼已簽署的原始交易或未簽署交易,並還原簽署者位址。估算以 ETH 計的 gas 成本、驗證交易欄位、比較兩筆交易並計算最大成本。在 wei、gwei 與 ether 之間換算,並對交易做 RLP 序列化。讀取內建的交易類型、gas 估算、鏈 ID 與 EIP-1559 參考資源,並依引導提示完成轉帳、解碼與 gas 最佳化流程。
適用情境
適合讓助理離線準備或檢查以太坊交易:草擬轉帳、核對 gas 與手續費、解碼原始交易,或在你自行廣播前說明 EIP-1559 欄位。
執行需求
以 stdio 本機程序執行,可從 PyPI 安裝(pip install transaction-mcp-server)或以 uvx 啟動,需要 Python 環境。未宣告帳號、API 金鑰或環境變數。簽署據稱離線完成,工具本身不需要網路存取。
安裝前請注意
簽署工具以輸入參數接收私鑰;README 稱私鑰不會被記錄或保存,但這仍是把簽署金鑰交給本機程序,建議只使用測試金鑰。伺服器不會廣播已簽署的原始交易,需另行送出。README 標明本專案僅供教育與開發用途。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Transaction MCP Server

[PyPI] [MCP Registry]

An MCP (Model Context Protocol) server providing comprehensive Ethereum transaction capabilities including building, signing, decoding, and analysis for both legacy and EIP-1559 transactions.

Features

Tools (15 total)

Transaction Building & Signing
  • build_transaction - Build an unsigned transaction
  • sign_transaction - Sign a transaction with a private key
  • build_and_sign_transaction - Build and sign in one step
Transaction Decoding
  • decode_raw_transaction - Decode a signed raw transaction
  • decode_unsigned_transaction - Decode an unsigned transaction
  • recover_transaction_signer - Recover signer from signed transaction
Transaction Analysis
  • estimate_transaction_cost - Estimate gas cost in ETH
  • validate_transaction - Validate transaction fields
  • compare_transactions - Compare two transactions
Gas Utilities
  • convert_gas_units - Convert between wei, gwei, ether
  • calculate_max_cost - Calculate maximum transaction cost
Data Encoding
  • encode_transfer - Encode ERC-20 transfer calldata
  • encode_function_call - Encode arbitrary function call
  • decode_calldata - Decode transaction input data
Serialization
  • serialize_transaction - RLP encode a transaction

Resources (4 total)

  • transaction-types - Documentation on transaction types (Legacy, EIP-2930, EIP-1559)
  • gas-estimation - Guide to gas estimation and optimization
  • chain-ids - Chain ID reference for all networks
  • eip-1559 - EIP-1559 fee mechanism explained

Prompts (4 total)

  • build_transfer_workflow - Guide through building an ETH transfer
  • token_transfer_workflow - Guide through ERC-20 token transfers
  • decode_transaction_workflow - Help decode and analyze transactions
  • gas_optimization_workflow - Optimize transaction gas costs

Installation

bash
pip install transaction-mcp-server

Or install from source:

bash
cd transaction-mcp-serverpip install -e .

Usage

Run the server

bash
transaction-mcp-server

Configure in Claude Desktop

json
{  "mcpServers": {    "transaction": {      "command": "transaction-mcp-server"    }  }}

Tool Examples

Sign a Simple Transfer

python
# Input{    "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f5b4E2",    "value": "1000000000000000000",  # 1 ETH in wei    "nonce": 0,    "chain_id": 1,    "max_fee_per_gas": "30000000000",    "max_priority_fee_per_gas": "2000000000",    "private_key": "0x..."}
# Output{    "raw_transaction": "0x02f8...",    "transaction_hash": "0x...",    "from": "0xABC...",    "to": "0x742...",    "value_eth": "1.0",    "type": "EIP-1559"}

Decode a Transaction

python
# Input{    "raw_transaction": "0x02f8..."}
# Output{    "type": "EIP-1559 (Type 2)",    "chain_id": 1,    "nonce": 0,    "to": "0x742...",    "value_wei": "1000000000000000000",    "value_eth": "1.0",    "max_fee_per_gas_gwei": "30.0",    "max_priority_fee_per_gas_gwei": "2.0"}

Transaction Types

TypeEIPDescription
Legacy (0)-Original Ethereum transactions
Access List (1)EIP-2930With access list for gas savings
Dynamic Fee (2)EIP-1559Base fee + priority fee model

Security Notes

  1. Private keys are NEVER logged or persisted
  2. Transactions are signed OFFLINE - no network connection
  3. Raw transactions must be broadcast separately
  4. For educational and development purposes only

Chain IDs

ChainID
Ethereum Mainnet1
Goerli5
Sepolia11155111
Polygon137
Arbitrum One42161
Optimism10
Base8453

License

MIT

來源:transaction-mcp-server/README.md,提交 dabb599

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Transaction 整合