Skip to content
Fourohtwo

api.liquidagent.ai/v1/gas/decode

Decode an EVM transaction and its event logs with a caller-supplied ABI. Base, Polygon, Arbitrum, Optimism or Avalanche. $0.003 per completed decode; unknown selectors retain raw data.

BasePolygonAnswering
POSThttps://api.liquidagent.ai/v1/gas/decode

Uptime100% of 3 checks 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://api.liquidagent.ai/v1/gas/decode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"abi":[{"inputs":[],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"}],"chain":8453,"txHash":"0xc9a9b57ffcb07e1c23ae6e66f161ab02bb97626026a571268197c835ec968245"}),
});
console.log(await res.json());

Example input

{
  "abi": [
    {
      "inputs": [],
      "name": "transferWithAuthorization",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "chain": 8453,
  "txHash": "0xc9a9b57ffcb07e1c23ae6e66f161ab02bb97626026a571268197c835ec968245"
}