|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "description": "Array of sortition information objects from the burnchain", |
| 4 | + "title": "SortitionsResponse", |
| 5 | + "type": "array", |
| 6 | + "minItems": 1, |
| 7 | + "maxItems": 2, |
| 8 | + "items": { |
| 9 | + "type": "object", |
| 10 | + "description": "Information about a burnchain sortition event", |
| 11 | + "properties": { |
| 12 | + "burn_block_hash": { |
| 13 | + "type": "string", |
| 14 | + "description": "The burnchain header hash of the block that triggered this event", |
| 15 | + "pattern": "^0x[0-9a-f]{64}$" |
| 16 | + }, |
| 17 | + "burn_block_height": { |
| 18 | + "type": "integer", |
| 19 | + "description": "The burn height of the block that triggered this event", |
| 20 | + "minimum": 0 |
| 21 | + }, |
| 22 | + "burn_header_timestamp": { |
| 23 | + "type": "integer", |
| 24 | + "description": "The burn block time of the sortition (Unix timestamp)", |
| 25 | + "minimum": 0 |
| 26 | + }, |
| 27 | + "sortition_id": { |
| 28 | + "type": "string", |
| 29 | + "description": "This sortition ID of the block that triggered this event. This incorporates PoX forking information and the burn block hash to obtain an identifier that is unique across PoX forks and burnchain forks.", |
| 30 | + "pattern": "^0x[0-9a-f]{64}$" |
| 31 | + }, |
| 32 | + "parent_sortition_id": { |
| 33 | + "type": "string", |
| 34 | + "description": "The parent of this burn block's Sortition ID", |
| 35 | + "pattern": "^0x[0-9a-f]{64}$" |
| 36 | + }, |
| 37 | + "consensus_hash": { |
| 38 | + "type": "string", |
| 39 | + "description": "The consensus hash of the block that triggered this event. This incorporates PoX forking information and burn op information to obtain an identifier that is unique across PoX forks and burnchain forks.", |
| 40 | + "pattern": "^0x[0-9a-f]{40}$" |
| 41 | + }, |
| 42 | + "was_sortition": { |
| 43 | + "type": "boolean", |
| 44 | + "description": "Boolean indicating whether or not there was a successful sortition (i.e. a winning block or miner was chosen). This will also be true if this sortition corresponds to a shadow block." |
| 45 | + }, |
| 46 | + "miner_pk_hash160": { |
| 47 | + "type": [ |
| 48 | + "string", |
| 49 | + "null" |
| 50 | + ], |
| 51 | + "description": "If sortition occurred, and the miner's VRF key registration associated a nakamoto mining pubkey with their commit, this will contain the Hash160 of that mining key.", |
| 52 | + "pattern": "^0x[0-9a-f]{40}$" |
| 53 | + }, |
| 54 | + "stacks_parent_ch": { |
| 55 | + "type": [ |
| 56 | + "string", |
| 57 | + "null" |
| 58 | + ], |
| 59 | + "description": "If sortition occurred, this will be the consensus hash of the burn block corresponding to the winning block commit's parent block ptr. In 3.x, this is the consensus hash of the tenure that this new burn block's miner will be building off of.", |
| 60 | + "pattern": "^0x[0-9a-f]{40}$" |
| 61 | + }, |
| 62 | + "last_sortition_ch": { |
| 63 | + "type": [ |
| 64 | + "string", |
| 65 | + "null" |
| 66 | + ], |
| 67 | + "description": "If sortition occurred, this will be the consensus hash of the most recent sortition before this one.", |
| 68 | + "pattern": "^0x[0-9a-f]{40}$" |
| 69 | + }, |
| 70 | + "committed_block_hash": { |
| 71 | + "type": [ |
| 72 | + "string", |
| 73 | + "null" |
| 74 | + ], |
| 75 | + "description": "In Stacks 2.x, this is the winning block. In Stacks 3.x, this is the first block of the parent tenure.", |
| 76 | + "pattern": "^0x[0-9a-f]{64}$" |
| 77 | + }, |
| 78 | + "vrf_seed": { |
| 79 | + "type": [ |
| 80 | + "string", |
| 81 | + "null" |
| 82 | + ], |
| 83 | + "description": "This is the VRF seed generated by this sortition", |
| 84 | + "pattern": "^0x[0-9a-f]{64}$" |
| 85 | + } |
| 86 | + }, |
| 87 | + "required": [ |
| 88 | + "burn_block_hash", |
| 89 | + "burn_block_height", |
| 90 | + "burn_header_timestamp", |
| 91 | + "sortition_id", |
| 92 | + "parent_sortition_id", |
| 93 | + "consensus_hash", |
| 94 | + "was_sortition" |
| 95 | + ] |
| 96 | + } |
| 97 | +} |
0 commit comments