Class: IExecNetworkModule
April 29, 2026 ยท View on GitHub
iexec / IExecNetworkModule
Class: IExecNetworkModule
module exposing network methods
Extends
Constructors
Constructor
new IExecNetworkModule(
configOrArgs,options?):IExecNetworkModule
Create an IExecModule instance
Parameters
configOrArgs
options?
Returns
IExecNetworkModule
Inherited from
Properties
config
config:
IExecConfig
current IExecConfig
Inherited from
Methods
getNetwork()
getNetwork():
Promise<{chainId:string; }>
get info about the current iExec network
example:
const { chainId } = await getNetwork();
console.log(`working on chain ${chainId}`);
Returns
Promise<{ chainId: string; }>
fromConfig()
staticfromConfig(config):IExecNetworkModule
Create an IExecNetworkModule instance using an IExecConfig instance
Parameters
config
Returns
IExecNetworkModule