mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
1.4 KiB
1.4 KiB
@oceanprotocol/lib / Exports / ConfigHelper
Class: ConfigHelper
Table of contents
Constructors
Methods
Constructors
constructor
• new ConfigHelper()
Methods
getAddressesFromEnv
▸ getAddressesFromEnv(network
, customAddresses?
): Partial
<Config
>
Parameters
Name | Type |
---|---|
network |
string |
customAddresses? |
any |
Returns
Partial
<Config
>
Defined in
getConfig
▸ getConfig(network
, infuraProjectId?
): Config
Returns the config object for a specific network supported by the oceanprotocol stack
Parameters
Name | Type | Description |
---|---|---|
network |
string | number |
the network's chainId or name |
infuraProjectId? |
string |
optional infura project id that will replace the configs node URI |
Returns
Config obhjedct