@celo/network-utils › "genesis-block-utils" › GenesisBlockUtils
Class: GenesisBlockUtils
Hierarchy
- GenesisBlockUtils
Index
Methods
Methods
Static
getChainIdFromGenesis
▸ getChainIdFromGenesis(genesis
: string): number
Defined in genesis-block-utils.ts:22
Parameters:
Name | Type |
---|---|
genesis |
string |
Returns: number
Static
getGenesisBlockAsync
▸ getGenesisBlockAsync(networkName
: string): Promise‹string›
Defined in genesis-block-utils.ts:14
Fetches the genesis block (as JSON data) from Google Storage. If the network is not working, the method will reject the returned promise along with the response data from Google api.
Parameters:
Name | Type | Description |
---|---|---|
networkName |
string | Name of the network to fetch genesis block for |
Returns: Promise‹string›