{
  "type": "object",
  "title": "TxSearchResult",
  "description": "Transaction search result",
  "additionalProperties": false,
  "required": ["found", "result"],
  "properties": {
    "found": {
      "type": "boolean",
      "description": "Indicates if the requested object was found or not",
      "default": true
    },
    "result": {
      "type": "object",
      "description": "This object carries the search result",
      "required": ["entity_id", "entity_type", "tx_data"],
      "additionalProperties": false,
      "properties": {
        "entity_id": {
          "type": "string",
          "description": "The id used to search this query."
        },
        "entity_type": {
          "type": "string",
          "enum": ["tx_id"]
        },
        "tx_data": {
          "type": "object",
          "description": "Returns basic search result information about the requested id",
          "required": ["canonical", "block_hash", "burn_block_time", "block_height", "tx_type"],
          "additionalProperties": false,
          "properties": {
            "canonical": {
              "type": "boolean",
              "description": "If the transaction lies within the canonical chain"
            },
            "block_hash": {
              "type": "string",
              "description": "Refers to the hash of the block for searched transaction"
            },
            "burn_block_time": {
              "type": "integer"
            },
            "block_height": {
              "type": "integer"
            },
            "tx_type": {
              "type": "string"
            }
          }
        },
        "metadata": {
          "$ref": "../../entities/transactions/transaction.schema.json"
        }
      }
    }
  }
}
