Chainstate
Responses
200
Chain tip retrieved successfully
application/json
Chainstate.
bitcoinBlockHeightinteger · int64 · nullableOptional
Bitcoin block height
stacksBlockHashstringRequired
Stacks block hash at the height.
stacksBlockHeightinteger · int64Required
Stacks block height.
404
Address not found
application/json
405
Method not allowed
application/json
500
Internal server error
application/json
get/chainstate
GET /chainstate HTTP/1.1
Host: localhost:3031
Accept: */*
{
"bitcoinBlockHeight": 1,
"stacksBlockHash": "text",
"stacksBlockHeight": 1
}Path parameters
heightinteger · int64Required
Height of the blockchain data to receive.
Responses
200
Chainstate retrieved successfully
application/json
Chainstate.
bitcoinBlockHeightinteger · int64 · nullableOptional
Bitcoin block height
stacksBlockHashstringRequired
Stacks block hash at the height.
stacksBlockHeightinteger · int64Required
Stacks block height.
400
Invalid request body
application/json
404
Address not found
application/json
405
Method not allowed
application/json
500
Internal server error
application/json
get/chainstate/{height}
GET /chainstate/{height} HTTP/1.1
Host: localhost:3031
Accept: */*
{
"bitcoinBlockHeight": 1,
"stacksBlockHash": "text",
"stacksBlockHeight": 1
}Last updated
Was this helpful?