Zum Inhalt
HALOWERK

Identwerk

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 submission.

POST https://ident.halowerk.com/v1/aa-simulate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
user_operationobjectJaThe UserOperation. EntryPoint v0.7 field names; v0.6 style is accepted and mapped.
chainstringNeinWhich chain to check against.
entry_pointstringNeinEntryPoint address. Defaults to v0.7.
simulate_callbooleanNeinExecute the inner call with eth_call to surface a revert.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "user_operation"
  ],
  "additionalProperties": false,
  "properties": {
    "user_operation": {
      "type": "object",
      "description": "The UserOperation. EntryPoint v0.7 field names; v0.6 style is accepted and mapped.",
      "properties": {
        "sender": {
          "type": "string",
          "description": "Smart account address."
        },
        "nonce": {
          "type": "string",
          "description": "Nonce as hex or decimal."
        },
        "callData": {
          "type": "string",
          "description": "The call the account should make."
        },
        "callGasLimit": {
          "type": "string"
        },
        "verificationGasLimit": {
          "type": "string"
        },
        "preVerificationGas": {
          "type": "string"
        },
        "maxFeePerGas": {
          "type": "string"
        },
        "maxPriorityFeePerGas": {
          "type": "string"
        },
        "paymaster": {
          "type": "string",
          "description": "Paymaster address, v0.7 style."
        },
        "paymasterAndData": {
          "type": "string",
          "description": "v0.6 style; the first 20 bytes are read as the paymaster."
        },
        "factory": {
          "type": "string"
        },
        "initCode": {
          "type": "string",
          "description": "v0.6 style; the first 20 bytes are read as the factory."
        }
      }
    },
    "chain": {
      "type": "string",
      "enum": [
        "ethereum",
        "base"
      ],
      "default": "base",
      "description": "Which chain to check against."
    },
    "entry_point": {
      "type": "string",
      "maxLength": 64,
      "description": "EntryPoint address. Defaults to v0.7."
    },
    "simulate_call": {
      "type": "boolean",
      "default": true,
      "description": "Execute the inner call with eth_call to surface a revert."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "user_operation": {},
  "chain": "base",
  "simulate_call": true
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →