82trust / 100

Event Log Decoding

by Pocket Network in Onchain & crypto

x402 APIPassing, checked 48 min ago

Decode the event logs of an Ethereum transaction: ERC-20 Transfer events come back typed (from, to, raw value, contract); every other log is returned raw with its topics and data. Values are in base units. POST /v1/log with {tx_hash}. Pay per request in USDC; no account, no API key.

POST https://agent.pocket.network/v1/event-log-decoding

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
40 ms typical, 40 ms slowest 5%
Last check
48 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent.pocket.network/v1/event-log-decoding" \
  -H "content-type: application/json" \
  -d '{"chain_id":1,"tx_hash":"0x0fe8c764aeb33454d741e7112ea7d6530c05a4349d8abc93a4e2d7d683c59dfd"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent.pocket.network%2Fv1%2Fevent-log-decoding
const res = await pay("https://agent.pocket.network/v1/event-log-decoding", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain_id":1,"tx_hash":"0x0fe8c764aeb33454d741e7112ea7d6530c05a4349d8abc93a4e2d7d683c59dfd"}),
});
console.log(await res.json());

Example input

{
  "chain_id": 1,
  "tx_hash": "0x0fe8c764aeb33454d741e7112ea7d6530c05a4349d8abc93a4e2d7d683c59dfd"
}

Example output

{
  "data": {},
  "portal": {
    "provenance": "third-party-supplier",
    "schemaCheck": "passed",
    "serviceId": "event-log-decoding"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed40243 ms$0.005
6 h agoPassed40240 ms$0.005