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 集成