chain_tx_build
Build an unsigned EVM transaction (EIP-1559) — Build a ready-to-sign EIP-1559 (type 2) transaction on base, ethereum, arbitrum, optimism or polygon: pending nonce, eth_estimateGas with 20% headroom (21000 for plain transfers), base fee + priority fee by speed (slow/normal/fast), OP-stack L1 data fee, max and likely cost, sender balance check, the unsigned RLP serialization and the keccak signing hash. Native transfers (value= in ETH/POL), ERC-20 transfers (token= address or usdc plus amount= in human units - calldata encoded for you) or any contract call (data= hex). 422 with the revert reason if the transaction would fail. Required: from, to. Optional: chain (default base), value, token, amount, data, speed, gas_limit. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"from": "<from>",
"to": "<to>"
},
"name": "chain_tx_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 0x000000000000000000000000000000000000dEaD | |
| from | Yes | 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 | |
| chain | Yes | base |