bZx Documentation
Website
GitHub
Medium
Telegram
Search…
👋Introduction to bZx
❔
FAQ
products
💱
Trade
💸
Borrow
🧮
Lend
🌾
Farm
🏦
Stake
governance
🏛️ bZx DAO
token
BZRX
BGOV
PGOV
iTokens
bZx.js
bZx.js Introduction
Installation & Setup
JavaScript API
Glossary
Roles
Instances
Methods
Structures
Building from sources
Starter Project
Base Protocol
GitHub
integration
Trading & Borrowing
Lending
Contract ABIs
Powered By
GitBook
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
Previous
Roles
Next
Methods
Last modified
3yr ago
Copy link