Skip to content
Fourohtwo

Decodes the real recipient or spender from EVM calldata

jogger-ageless-pronounce.ngrok-free.dev/preflight

Decodes the real recipient or spender from EVM calldata - transfer, transferFrom, approve, increaseAllowance, permit, setApprovalForAll, Uniswap V2 swaps and Multicall3 - and checks it against your allowlist and epoch caps. Catches calls whose destination is allowlisted while the money leaves elsewhere. Fails closed on unknown selectors.

BaseUnchecked
POSThttps://jogger-ageless-pronounce.ngrok-free.dev/preflight

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://jogger-ageless-pronounce.ngrok-free.dev/preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"policy":{"allowlist":["0xSafeRecipient"],"tokenCaps":{"0xTokenContract":{"capUnits":"1000","decimals":6}},"epochCapWei":"1000000000000000000"},"request":{"to":"0xTokenContract","data":"0xa9059cbb<recipient><amount>","valueWei":"0"}}),
});
console.log(await res.json());

Example input

{
  "policy": {
    "allowlist": [
      "0xSafeRecipient"
    ],
    "tokenCaps": {
      "0xTokenContract": {
        "capUnits": "1000",
        "decimals": 6
      }
    },
    "epochCapWei": "1000000000000000000"
  },
  "request": {
    "to": "0xTokenContract",
    "data": "0xa9059cbb<recipient><amount>",
    "valueWei": "0"
  }
}