connect()
This file documents the main exports of the library.
connect(location, connector, options)
Connects and returns an Organization
for location
.
Name | Type | Description |
---|---|---|
|
| The Ethereum address or ENS domain of an Aragon organization. |
|
| Accepts a |
|
| The optional configuration object. |
|
| An EIP-1193 compatible object. |
| The network to connect to. Defaults to | |
| The IPFS gateway and cached results. Defaults to | |
returns |
| An |
This function can throw the following errors:
Error type | Description |
---|---|
An unsupported or invalid connector was provided. | |
The Ethereum provider doesn’t seem to be valid. | |
The provided location doesn’t seem to be valid. | |
The network is incorrect or unsupported. |
Example
Last updated