"title":"Command for waiting for blocks on the blockchain",
"description":[
"The **waitblockheight** RPC command waits until the blockchain has reached the specified *blockheight*."
],
"request":{
"required":[
"blockheight"
],
"properties":{
"blockheight":{
"type":"u32",
"description":[
"Current blockheight of the blockchain if the value is greater than this number. If it is a present or past block height, then the command returns immediately."
]
},
"timeout":{
"type":"u32",
"description":[
"Only wait up to specified seconds."
],
"default":"60 seconds"
}
}
},
"response":{
"required":[
"blockheight"
],
"properties":{
"blockheight":{
"type":"u32",
"description":[
"The current block height (>= *blockheight* parameter)."
]
}
},
"post_return_value_notes":[
"If *timeout* seconds is reached without the specified blockheight being reached, this command will fail with a code of `2000`."