W

Workers · Util Selector

by Workers

GETBaseArbitrumPolygon

$0.0025

per call · USD Coin on Base

Turns a Solidity signature like transfer(address,uint256) into its 4-byte function selector and its 32-byte event topic0. What you need to build calldata by hand or to filter logs.

Endpoint

GET https://flat-rate-llm.kikoribera03.workers.dev/v1/util/selector

2

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://flat-rate-llm.kikoribera03.workers.dev/v1/util/selector", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://flat-rate-llm.kikoribera03.workers.dev/v1/util/selector?signature=transfer%28address%2Cuint256%29" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "selector": "0xa9059cbb",
  "topic0": "0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b"
}

Payment details

Pay to0xc210ea7d5692a6401adf25bbcb7acde9cdb7e9ff
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Games & Fun and the homepage with a featured placement.

Get featured →

More from Workers & similar services