iexec / IExecNetworkModule
module exposing network methods
new IExecNetworkModule(
configOrArgs,options?):IExecNetworkModule
Create an IExecModule instance
IExecNetworkModule
config:
IExecConfig
current IExecConfig
getNetwork():
Promise<{chainId:string; }>
get info about the current iExec network
example:
const { chainId } = await getNetwork();
console.log(`working on chain ${chainId}`);Promise<{ chainId: string; }>
staticfromConfig(config):IExecNetworkModule
Create an IExecNetworkModule instance using an IExecConfig instance
IExecNetworkModule