FMF Tools EVM Decoder

Pay-per-call calldata and log decoder, any chain, no RPC. No API key.

Hosted MCP Server

npx add-mcp 'https://mpp-chain.fmf-x402.workers.dev/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Pay-per-call EVM decoding for AI agents: decode transaction calldata (including nested multicall/router/Safe calls) and receipt event logs into named, typed arguments; look up 4-byte selectors and event topics; fetch Sourcify-verified ABIs with proxy resolution; encode calldata from a signature. Works for Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Tempo and any EVM chain. No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD), from $0.001. Invalid input or upstream failure returns 402 and is not charged.

Try it free first, no wallet: add ?sample=1 or ?test=1 (whichever the route documents) for a labelled sample. Your first real call on a read/check route is free: one per network (IPv4 address or IPv6 /64), for life; ask for it with header X-FMF-Trial: 1 or ?fmf_trial=1. A call that fails does not use it up.

Paid calls take USDC on Base via x402 where the route offers it (about $0.001–$0.01). A funding guide is at tools.fmf-x402.workers.dev/funds. Some routes also accept MPP. Invalid input or an upstream failure returns 402 and is not charged.

Try it free, then pay in USDC on Base

EVM calldata and event-log decoder with 4byte selector and Sourcify verified-ABI lookup, any chain, no RPC at $0.00125/call, zero API key. Pay per call with MPP on Tempo mainnet (chainId 4217, USDC.e or pathUSD) or x402 on Base (USDC).

npx mppx account create --network mainnet
# fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); \`npx mppx account fund\` is testnet-only
npx mppx https://mpp-chain.fmf-x402.workers.dev/mpp/evm/calldata --network mainnet -J '{"data":"0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000de0b6b3a7640000"}'
npx mppx https://mpp-chain.fmf-x402.workers.dev/mpp/evm/logs --network mainnet -J '{"logs":[{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045","0x00000000000000000000000028c6c06298d514db089934071355e5743bf21d60"],"data":"0x00000000000000000000000000000000000000000000000000000000000f4240"}]}'
npx mppx https://mpp-chain.fmf-x402.workers.dev/mpp/evm/selector --network mainnet -J '{"function":"0xa9059cbb,0x38ed1739","event":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"}'

Paid calls take USDC on Base via x402. Some routes also accept MPP (USDC.e 0x20C000000000000000000000b9537d11c60E8b50, pathUSD 0x20c0000000000000000000000000000000000000) — optional, not required for x402. Recipient 0xB2070a4A874E7141E551890a3642bF7B24a1a148. Invalid input is not charged. More: docs · llms.txt · OpenAPI · all FMF Tempo mainnet APIs · comparison vs other paid APIs (llms-comparisons.txt, comparisons.json)

Routes

RoutePriceWhat you get
POST /mpp/evm/selector$0.00125Selector and event-topic lookup (4byte) Look up up to 50 function selectors (4-byte) and/or event topics (32-byte) and get human-readable signatures, verified-contract matches first. Also computes selectors from signatures you pass (e.g. "transfer(address,uint256)"). Drop-in for 4byte / openchain lookups.
POST /mpp/evm/calldata$0.00125Decode EVM calldata (any chain, no RPC) Decode transaction input data into function name, signature and typed named arguments. Uses your ABI, or the Sourcify-verified ABI for chain_id + address (proxies resolved), or the 4byte signature database with a strict re-encode check. Recursively decodes nested calls (multicall, execute, Safe, routers) up to 2 levels.
POST /mpp/evm/logs$0.00125Decode EVM event logs (any chain, no RPC) Decode up to 50 raw logs ({topics, data, address}) from a receipt into event names and typed arguments. Uses your ABI, a Sourcify-verified ABI (chain_id + address), or the 4byte event database, trying indexed-parameter layouts until one decodes strictly.
POST /mpp/evm/abi$0.00125Verified contract ABI (Sourcify, any EVM chain) Get the verified ABI, contract name, compiler and match level for a contract on any Sourcify-supported chain, with proxy detection and the implementation ABI merged in. Returns function/event selectors alongside the ABI.
POST /mpp/evm/encode$0.00125Encode EVM calldata from a signature Build 0x calldata from a function signature and arguments (e.g. "transfer(address,uint256)" + ["0x…", "1000000"]). Numbers may be strings; returns selector and calldata ready for eth_call or a transaction.

Copy-paste examples

These call POST /mpp/evm/abi ($0.00125) — Verified contract ABI (Sourcify, any EVM chain). Swap the path for any other route in the table.

mppx CLI

npx mppx https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi --network mainnet -J '{"chain_id":1,"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}'

Create a mainnet account once with npx mppx account create --network mainnet and fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); npx mppx account fund is testnet-only. The CLI then pays the 402 automatically. See mpp.dev/sdk.

curl (unpaid — shows the 402, not charged)

curl -i -X POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi -H 'content-type: application/json' -d '{"chain_id":1,"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}'

Example output (fixed sample of a real response)

{
  "abi": [
    {
      "constant": false,
      "inputs": [
        {
          "name": "newImplementation",
          "type": "address"
        }
      ],
      "name": "upgradeTo",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "newImplementation",
          "type": "address"
        },
        {
          "name": "data",
          "type": "bytes"
        }
      ],
      "name": "upgradeToAndCall",
      "outputs": [],
      "payable": true,
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "implementation",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "attribution": "Signatures: Sourcify 4byte signature database (api.4byte.sourcify.dev, open data) — the successor of openchain.xyz; verified ABIs: Sourcify (sourcify.dev, open data). Decoding is done locally with viem.",
  "chain_id": 1,
  "compiler": "solc 0.4.24+commit.e67f0147",
  "implementation": {
    "address": "0x43506849D7C04F9138D1A2050bbF3A0c054402dd",
    "match": "match",
    "name": "FiatTokenV2_2"
  },
  "match": "match",
  "name": "FiatTokenProxy",
  "proxy": {
    "implementations": [
      {
        "address": "0x43506849D7C04F9138D1A2050bbF3A0c054402dd",
        "name": "FiatTokenV2_2"
      }
    ],
    "type": "ZeppelinOSProxy"
  },
  "repo_url": "https://repo.sourcify.dev/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "selectors": [
    {
      "selector": "0x3659cfe6",
      "signature": "upgradeTo(address newImplementation)",
      "type": "function"
    },
    {
      "selector": "0x4f1ef286",
      "signature": "upgradeToAndCall(address newImplementation,bytes data) payable",
      "type": "function"
    },
    {
      "selector": "0x5c60da1b",
      "signature": "implementation() view returns (address)",
      "type": "function"
    }
  ],
  "verified_at": "2024-08-08T13:20:07Z"
}

Free, no wallet: https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi?test=1. Output field types for every route: /openapi.json (responses, 200).

TypeScript SDK (mppx)

import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'

Mppx.create({
  methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})

// Global fetch now pays the 402 automatically.
const res = await fetch('https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi', {
  method: 'POST',  headers: {
    'content-type': 'application/json',
  },
  body: JSON.stringify({"chain_id":1,"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}),
})
console.log(await res.json())

Python SDK (pympp)

# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo

account = TempoAccount.from_key("0x...")

async def main():
    async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
        response = await mpp.fetch("https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi", method="POST", json={"chain_id":1,"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"})
        print(await response.json())

asyncio.run(main())

MCP config (Cursor, Claude Desktop, VS Code)

{
  "mcpServers": {
    "fmf-mpp-chain": {
      "url": "https://mpp-chain.fmf-x402.workers.dev/mcp"
    }
  }
}

Transport is Streamable HTTP at https://mpp-chain.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.

Sources and licences

Sources: Sourcify 4byte signature database (api.4byte.sourcify.dev, open data, successor of openchain.xyz); Sourcify verified contracts (sourcify.dev, open data); decoding by viem (MIT). Responses are cached; nothing you send is stored.

Sister services