{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omniapps-ca/json-schema/omniapps-ca-simulate-tx-request-schema.json",
  "title": "SimulateTxRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sairen-omniapps-ca-openapi.json#/components/schemas/SimulateTxRequest",
  "properties": {
    "to_address": {
      "type": "string",
      "title": "To Address",
      "description": "Target contract or recipient EVM address (0x...)."
    },
    "from_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Address",
      "description": "Caller/sender address.",
      "default": "0x0000000000000000000000000000000000000001"
    },
    "data": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data",
      "description": "Hex-encoded transaction calldata.",
      "default": "0x"
    },
    "value": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Value",
      "description": "Native ETH value in wei (e.g. 0).",
      "default": 0
    },
    "gas_limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 21000.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Gas Limit",
      "description": "Optional gas limit constraint."
    },
    "chain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Chain",
      "description": "Target EVM chain: 'base' (default), 'ethereum', 'arbitrum', 'optimism', 'polygon'.",
      "default": "base"
    },
    "state_overrides": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "State Overrides",
      "description": "Optional state overrides for balance/storage slots."
    }
  },
  "type": "object",
  "required": [
    "to_address"
  ]
}