1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
ocean.js/docs/classes/ConfigHelper.md
2023-05-02 18:18:30 +01:00

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

config/ConfigHelper.ts:124


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

Config obhjedct

Defined in

config/ConfigHelper.ts:214