{
  "type": "object",
  "title": "MempoolTxSearchResult",
  "description": "Contract search result",
  "required": ["found", "result"],
  "additionalProperties": false,
  "properties": {
    "found": {
      "type": "boolean",
      "description": "Indicates if the requested object was found or not",
      "default": true
    },
    "result": {
      "type": "object",
      "additionalProperties": false,
      "description": "This object carries the search result",
      "required": ["entity_id", "entity_type", "tx_data"],
      "properties": {
        "entity_id": {
          "type": "string",
          "description": "The id used to search this query."
        },
        "entity_type": {
          "type": "string",
          "enum": ["mempool_tx_id"]
        },
        "tx_data": {
          "type": "object",
          "additionalProperties": false,
          "description": "Returns basic search result information about the requested id",
          "required": ["tx_type"],
          "properties": {
            "tx_type": {
              "type": "string"
            }
          }
        },
        "metadata": {
          "$ref": "../../entities/mempool-transactions/transaction.schema.json"
        }
      }
    }
  }
}
