Instances

Constructor

Creates an instance of BZxJS.
1
constructor(
2
web3: Web3,
3
params: { networkId: number; addresses?: string[]; }
4
);
Copied!
Arguments
web3 web3 instance
params.networkid id of the network to connect (for example 3 for ropsten)
params.addresses a map containing the bZx contracts addresses in the specified network
Returns
BZxJS instance
Last modified 3yr ago
Copy link