Files
stacks-blockchain-api/docs/api/search/search-mempool.schema.json

52 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"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": {
"type": "object",
"anyOf": [
{
"$ref": "../../entities/mempool-transactions/transaction.schema.json"
}
],
"additionalItems": false
}
}
}
}
}