{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://capp.local/schemas/capp.solana-witness.observation.v1.schema.json",
  "title": "capp.solana-witness.observation.v1",
  "type": "object",
  "required": [
    "protocol",
    "operationId",
    "signature",
    "observedState",
    "simulated",
    "network"
  ],
  "properties": {
    "protocol": {
      "const": "capp.solana-witness.observation.v1"
    },
    "operationId": {
      "type": "string"
    },
    "attemptId": {
      "type": "string"
    },
    "messageDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "transactionDigest": {
      "type": "string"
    },
    "network": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "simulated": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "number"
    },
    "updatedAt": {
      "type": "number"
    },
    "signature": {
      "type": "string"
    },
    "observedState": {
      "type": "string"
    },
    "error": {},
    "confirmationStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "slot": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "additionalProperties": true
}
