Functions
assertIsBlockhash
assertIsBlockhash(
putativeBlockhash
):asserts putativeBlockhash is Blockhash
From time to time you might acquire a string, that you expect to validate as a blockhash, from an untrusted network API or user input. Use this function to assert that such an arbitrary string is a base58-encoded blockhash.
Parameters
Parameter | Type |
---|---|
putativeBlockhash | string |
Returns
asserts putativeBlockhash is Blockhash