Skip to content

getGenesisHash

getGenesisHash(network): Promise<string>

Returns the genesis hash in hexadecimal format for a given network object which is a ApiPromise.

Parameters

network: ApiPromise

network object of type ApiPromise for which the genesis hash is required.

Returns

Promise<string>

Returns the genesis hash in Hexadecimal format.

Source

config/src/Config.ts:141