FMF Tools EVM Decoder

v1.0.0
io.github.GeminiGeorge22/fmf-chain Checked 1 day ago Published 9 days ago

Pay-per-call EVM calldata and log decoder, any chain, no RPC.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

evm_selector

Selector and event-topic lookup (4byte) ($0.001 per call, paid via MPP on Tempo). 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. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/selector. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

ParameterTypeDescription
eventstringComma-separated 32-byte event topics Also accepted as: topics, topic.
functionstringComma-separated 4-byte selectors, e.g. 0xa9059cbb,0x095ea7b3 (alias: selectors) Also accepted as: selectors, selector.
signaturesstringComma- or newline-separated text signatures to hash, e.g. transfer(address,uint256); prefix with "event " for events

evm_calldata

Decode EVM calldata (any chain, no RPC) ($0.002 per call, paid via MPP on Tempo). 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. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/calldata. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP r…

ParameterTypeDescription
data *string0x calldata (tx input), up to 100 KB Also accepted as: input, calldata.
abistringOptional ABI: JSON array, or human-readable lines like "function transfer(address to,uint256 amount)"
addressstringOptional contract address (the tx "to")
chain_idintegerOptional chain id for Sourcify ABI lookup
nestedbooleanDecode nested calldata in bytes args (default true)

evm_logs

Decode EVM event logs (any chain, no RPC) ($0.002 per call, paid via MPP on Tempo). 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. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/logs. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

ParameterTypeDescription
logs *arrayArray of {topics: [0x..], data: 0x.., address?} (eth_getTransactionReceipt logs work as-is)
abistringOptional ABI (JSON or human-readable)
addressstringOptional emitting contract address for Sourcify ABI
chain_idintegerOptional chain id for Sourcify ABI

evm_abi

Verified contract ABI (Sourcify, any EVM chain) ($0.001 per call, paid via MPP on Tempo). 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. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/abi. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

ParameterTypeDescription
address *stringContract address Also accepted as: addr, wallet, account.
chain_id *integerChain id, e.g. 1, 8453, 42161, 10, 137, 56
resolve_proxybooleanMerge the implementation ABI for proxies (default true)

evm_encode

Encode EVM calldata from a signature ($0.001 per call, paid via MPP on Tempo). 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. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/encode. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

ParameterTypeDescription
signature *stringFunction signature, e.g. transfer(address to,uint256 amount)
argsarrayArguments in order (JSON array; big numbers as strings)