Generate ScriptConfig for the genesis block, use this function when you are on a testnet, or you cannot determine which network you are on
const rpc = new RPC('http://localhost:8114') const genesisBlock = await rpc.getBlockByNumber('0x0') const scriptConfig = generateGenesisScriptConfigs(genesisBlock) Copy
const rpc = new RPC('http://localhost:8114') const genesisBlock = await rpc.getBlockByNumber('0x0') const scriptConfig = generateGenesisScriptConfigs(genesisBlock)
Generated using TypeDoc
Generate ScriptConfig for the genesis block, use this function when you are on a testnet, or you cannot determine which network you are on