Returns the block hash for a height.
Returns the hash of the block at the given height on the main chain. Verified live: heights outside the range kept by this indexer (for example 1000000 or 0 on BSC) return an empty string in hash instead of an error.
Body
Blockbook WebSocket request for getBlockHash, sent as a text message over the WebSocket connection.
idstringrequiredRequest identifier. Subscription notifications are delivered with the same id as the subscribe request.
methodstringrequiredparamsobjectrequiredParameters
apiKeystringrequiredpathNOWNodes API key. Connect to wss://bsc.nownodes.io/wss/{apiKey}. The WebSocket handshake returns HTTP 403 when the key is missing or invalid.
Response
Response delivered over the WebSocket connection as {"id": ..., "data": ...}. Errors are returned inside data.error; see BlockbookError.
Forbidden. The WebSocket handshake was rejected: the API key is missing or invalid (verified live: wrong and missing keys both return HTTP 403).