Catalog / erc4337-userop-check
ERC-4337 UserOperation check
Shows what an ERC-4337 UserOperation really commits to before a smart account signs it: the exact userOpHash, the unpacked gas, fee, paymaster and factory fields, the worst-case cost, and an ok / review / refuse verdict against the caller's limits.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Offline ERC-4337 UserOperation check for EntryPoint v0.6, v0.7 and v0.8: computes the userOpHash as EntryPoint.getUserOpHash does (v0.8 as EIP-712; matches viem getUserOperationHash), accepts the v0.6 form, the packed PackedUserOperation and the unpacked RPC form, unpacks accountGasLimits, gasFees, paymasterAndData and initCode (factory or EIP-7702 marker), and gives the worst-case prefund in wei. Verdict ok / review / refuse with reason codes: entry point not canonical or not the declared version, hash, nonce key or sequence not as expected, prefund over budget, maxFeePerGas over cap, paymaster or factory not on an allowlist, zero sender, factory, paymaster or EIP-7702 delegate, AA93/AA94/AA99-style defects. Differs from viem on purpose: on v0.6/v0.7 a 0x7702 initCode is hashed as sent (and refused), and a v0.8 EIP-7702 op without a delegate gets no hash. callData is hashed, not decoded; no RPC, never signs.
- Example input
{"user_operation":"{\"sender\":\"0x1234567890123456789012345678901234567890\",\"nonce\":\"0x50000000000000007\",\"factory\":\"0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985\",\"factoryData\":\"0x5fbfb9cf0000000000000000000000001234567890123456789012345678901234567890\",\"callData\":\"0xb61d27f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000\",\"callGasLimit\":\"0x186a0\",\"verificationGasLimit\":\"0x30d40\",\"preVerificationGas\":\"0xc350\",\"maxFeePerGas\":\"0x3b9aca00\",\"maxPriorityFeePerGas\":\"0x5f5e100\",\"paymaster\":\"0x0000000000000039cd5e8aE05257CE51C473ddd1\",\"paymasterVerificationGasLimit\":\"0x186a0\",\"paymasterPostOpGasLimit\":\"0xc350\",\"paymasterData\":\"0xdeadbeef\",\"signature\":\"0x\"}","entry_point":"0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108","chain_id":8453,"max_cost_budget_wei":"1000000000000000","max_fee_per_gas_cap_wei":"2000000000","allowed_paymasters":"0x0000000000000039cd5e8aE05257CE51C473ddd1","allowed_factories":"0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985","expected_nonce_key":"5","expected_nonce_sequence":"7"}- Answer
{"ok":true,"result":{"valid":true,"reason":null,"error_field":null,"verdict":"ok","reasons":[],"checks":{"entry_point":"pass","user_op_hash":"not_checked","max_cost":"pass","max_fee":"pass","paymaster":"pass","factory":"pass","nonce_key":"pass","nonce_sequence":"pass"},"standard":"ERC-4337 (eth-infinitism EntryPoint v0.6.0, v0.7.0, v0.8.0)","entry_point":"0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108","entry_point_version":"0.8","version_source":"entry_point","entry_point_canonical":true,"chain_id":8453,"form":"unpacked","user_op_hash":"0x413dc2e289fa726b1909aa056b9ef5e487209e778b1f076c6d6f3d6687cc4771","op_hash":"0x78d3f5135313b9e486840b2371dbf620cec9dd081a3d5a16cc26019772bfd0a5","domain_separator":"0x32d3d9470df728b0d14d164308641c85a39d325b72281e775cc8d113c59a1201","hash_scheme":"EIP-712: keccak256(0x1901 || domainSeparator(ERC4337, 1, chainId, entryPoint) || hashStruct(PackedUserOperation))","user_op":{"sender":"0x1234567890123456789012345678901234567890","nonce":"92233720368547758087","nonce_key":"5","nonce_key_hex":"0x5","nonce_sequence":"7","init_code_kind":"factory","init_code_bytes":56,"factory":"0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985","factory_data_bytes":36,"eip7702_delegate":null,"call_data_bytes":132,"call_data_selector":"0xb61d27f6","call_gas_limit":"100000","verification_gas_limit":"200000","pre_verification_gas":"50000","max_fee_per_gas":"1000000000","max_priority_fee_per_gas":"100000000","paymaster":"0x0000000000000039cd5e8aE05257CE51C473ddd1","paymaster_verification_gas_limit":"100000","paymaster_post_op_gas_limit":"50000","paymaster_data_bytes":4,"paymaster_and_data_bytes":56,"account_gas_limits":"0x00000000000000000000000000030d40000000000000000000000000000186a0","gas_fees":"0x00000000000000000000000005f5e1000000000000000000000000003b9aca00","init_code_hash":"0x73d0205e53ed160d46f25e5e2dab8e4fd1c99d9d7d9eb38f54e21aa005e83c5e","call_data_hash":"0xa6a8cf8f03953b606543e7f68c239ba73f55955e3c07765061d5f58cef29fcdd","paymaster_and_data_hash":"0x239eb5395e9d2fe4e12b2fc629b58d78ce090f40c2661d2b010e2be57e93a189"},"max_cost":{"required_gas":"500000","max_fee_per_gas":"1000000000","wei":"500000000000000","native":"0.0005","payer":"paymaster","formula":"(verificationGasLimit + callGasLimit + paymasterVerificationGasLimit + paymasterPostOpGasLimit + preVerificationGas) x maxFeePerGas"},"unknown_field_count":0,"conflicting_fields":null},"warnings":["callData is hashed, not decoded: what the account executes is not judged here."]}- Try it free
- /try/erc4337-userop-check
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/erc4337-userop-check?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/erc4337-userop-check?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/erc4337-userop-check?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/erc4337-userop-check/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.