• new OpusPool(params
): OpusPool
Creates an OpusPool instance
Name | Type | Description |
---|---|---|
params |
Object |
Initialization parameters |
params.address |
Hex |
An address of the currently connected user wallet. If the user connects to a different wallet, OpusPool must be re-instantiated with a new user address |
params.network |
Networks |
Network configuration (Networks.Ethereum or Networks.Holesky) |
params.rpcUrl? |
string |
(Optional) An RPC URL to interact with. If not provided, a default public node will be used |
An instance of OpusPool
See
Installation for more information