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.
No account and no API key. Pay per successful call with MPP on Tempo (USDC.e or pathUSD). Invalid input or an upstream failure returns 402 and is not charged.
| Route | Price | What you get |
|---|---|---|
POST /mpp/evm/selector | $0.001 | Selector 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.002 | Decode 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.002 | Decode 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.001 | Verified 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.001 | Encode 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. |
These call POST /mpp/evm/abi ($0.001) — Verified contract ABI (Sourcify, any EVM chain). Swap the path for any other route in the table.
npx mppx https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi -X POST -H 'content-type: application/json' -d '{"chain_id":1,"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}'
The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.
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"}'
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())
# 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())
{
"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: 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.