Govern.js API
WARNING
Aragon Govern is beta software which is NOT MAINTAINED anymore. It's a really cool product though with innovative and nifty smart contracts. So although you might run into an error 🐲 here and there, the documentation is definitely worth the read and the play!
And welcome to connect with us through Discord or our technical forum!
Usage with default config
The default config uses the Govern servers deployed by Aragon.
Usage with custom config
dao(name) ⇒ Promise<Dao>
Promise<Dao>
Returns details about a DAO by his address.
Param | Type | Description |
---|---|---|
name |
| The name of the DAO |
Example:
daos() ⇒ Promise<Dao[]>
Promise<Dao[]>
Returns all DAOs.
Example:
query(query, args) ⇒ Promise<object>
Promise<object>
Returns the desired data.
Param | Type | Description |
---|---|---|
query |
| GraphQL query |
args |
| Object with parameters |
Example:
createDao(args, options) ⇒ Promise<TransactionResponse>
Promise<TransactionResponse>
Create
Param | Type | Description |
---|---|---|
args |
| Dao name, Dao token, useProxies option |
options |
| EIP 1193 provider, Dao factory address |
Examples:
For Node.js:
configure(config) ⇒ void
void
Overwrites the default configuration of govern.
Param | Type | Description |
---|---|---|
config | Object with all config options |
Example:
Last updated