Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

getBlockHash

🚧

New site!

All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.

Usage: await client.core.getBlockHash(height, options)
Description: Allow to fetch a specific block hash from its height

Parameters:

parameterstyperequiredDescription
heightNumberyesA valid block height
optionsDAPIClientOptionsno

Returns : {Promise<null|string>} - the corresponding block hash