{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-contract-call-status-schema.json",
  "title": "ContractCallStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-contracts-api-openapi.yml#/components/schemas/ContractCallStatus",
  "type": "object",
  "required": [
    "id",
    "signer_id",
    "chain",
    "contract_address",
    "function_name",
    "status",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "signer_id": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "contract_address": {
      "$ref": "#/$defs/WalletAddress"
    },
    "function_name": {
      "type": "string"
    },
    "tx_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "confirmed",
        "failed"
      ]
    },
    "gas_used_wei": {
      "type": [
        "string",
        "null"
      ]
    },
    "gas_cost_usd_micros": {
      "type": [
        "integer",
        "null"
      ]
    },
    "receipt": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "WalletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    }
  }
}