Skip to content
Fourohtwo

Decode one EVM calldata hex string

horizonpulse.dev/api/evm/decode

Decode one EVM calldata hex string. POST JSON data, optional abi, decimals (0-36) and knownSpenders. Matches bundled ERC-20, ERC-721, ERC-1155, ERC-2612, Permit2, Multicall3 and common router selectors, or a caller-supplied ABI. Returns the function, arguments, human amounts when decimals are supplied, and flags for unlimited approval, setApprovalForAll, and a permit spender absent from knownSpend

BaseAnswering
POSThttps://horizonpulse.dev/api/evm/decode

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://horizonpulse.dev/api/evm/decode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"data":"0xa9059cbb","decimals":6,"knownSpenders":["0x1111111111111111111111111111111111111111"]}),
});
console.log(await res.json());

Example input

{
  "data": "0xa9059cbb",
  "decimals": 6,
  "knownSpenders": [
    "0x1111111111111111111111111111111111111111"
  ]
}