Skip to content
Fourohtwo

Validates a UserOperation structurally and against chain state

ident.halowerk.com/v1/aa-simulate

Validates a UserOperation structurally and against chain state. It computes the required prefund from the gas limits and fee fields, reads the sender deposit on the EntryPoint and, when a paymaster is set, that paymaster deposit and stake, and says plainly whether the operation is funded. The nonce is read from the EntryPoint and compared with the one supplied, so a stale nonce is caught before su

BaseAnswering
POSThttps://ident.halowerk.com/v1/aa-simulate

Uptime100% of 4 checks 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://ident.halowerk.com/v1/aa-simulate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","user_operation":{"callGasLimit":"100000","factory":"0x0BA5ED0c6AA8c49038F819E587E2633c4A9F428a","maxFeePerGas":"10000000","nonce":"0","preVerificationGas":"60000","sender":"0x1Bc8A116f9D04d508C377F29dD4BF140f4FcAfF6","verificationGasLimit":"500000"}}),
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "user_operation": {
    "callGasLimit": "100000",
    "factory": "0x0BA5ED0c6AA8c49038F819E587E2633c4A9F428a",
    "maxFeePerGas": "10000000",
    "nonce": "0",
    "preVerificationGas": "60000",
    "sender": "0x1Bc8A116f9D04d508C377F29dD4BF140f4FcAfF6",
    "verificationGasLimit": "500000"
  }
}