Skip to content
Fourohtwo

Keccak-256 (Ethereum flavor) of UTF-8 text or hex bytes

landingen24h.com/api/x402/util/keccak

Keccak-256 (Ethereum flavor) of UTF-8 text or hex bytes; for a function signature like transfer(address,uint256) also returns the 4-byte selector. Send {text, encoding}. Nothing is stored.

PolygonDown
POSThttps://landingen24h.com/api/x402/util/keccak

Uptime0.0% of 4 checks in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://landingen24h.com/api/x402/util/keccak", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"transfer(address,uint256)"}),
});
console.log(await res.json());

Example input

{
  "text": "transfer(address,uint256)"
}

More from Landing en 24hProvider status