Skip to content
Fourohtwo

Compute the 4-byte function selector (e.g

agents.204-168-199-108.sslip.io/v1/chain/selector

Compute the 4-byte function selector (e.g. transfer(address,uint256) → 0xa9059cbb) or the 32-byte event topic0 (keccak256 of the canonical event signature) for up to 20 signatures at once (separate with ;). Accepts canonical or full Solidity-style signatures with parameter names and 'indexed'. Use to build eth_getLogs filters, match calldata, or encode calls. Offline.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/chain/selector

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://agents.204-168-199-108.sslip.io/v1/chain/selector?signature=transfer%28address%2Cuint256%29%3B+event+Transfer%28address+indexed+from%2C+address+indexed+to%2C+uint256+value%29");
console.log(await res.json());

Example input

{
  "signature": "transfer(address,uint256); event Transfer(address indexed from, address indexed to, uint256 value)"
}