chain_userop_hash
ERC-4337 UserOperation hash (EntryPoint v0.6/v0.7/v0.8) — Compute the userOpHash a smart account signs and bundlers return, for EntryPoint v0.6, v0.7 (PackedUserOperation) and v0.8 (EIP-712), and cross-check it live against EntryPoint.getUserOpHash on Ethereum/Base/Arbitrum/Optimism/Polygon (verify=true default). Accepts the bundler JSON userOp (userop={...}) or individual params: sender, nonce, callData, initCode or factory+factoryData, callGasLimit, verificationGasLimit, preVerificationGas, maxFeePerGas, maxPriorityFeePerGas, paymasterAndData or paymaster+paymasterVerificationGasLimit+paymasterPostOpGasLimit+paymasterData, or packed accountGasLimits/gasFees. Returns the packed fields, nonce key/sequence, required prefund, factory/paymaster used. Params: chain (base|ethereum|arbitrum|optimism|polygon|chain id), entrypoint (0.6|0.7|0.8|address), sender. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"entrypoint": "<entrypoint>",
"sender": "<sender>",
"nonce": "<nonce>",
"callData": "<callData>"
},
"name": "chain_userop_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | base | |
| nonce | Yes | 0 | |
| sender | Yes | 0xb8Cc8d6F2A1c3c47A2a0bB3c4a36A3b7a4d2E1F0 | |
| callData | Yes | 0x | |
| entrypoint | Yes | 0.7 |