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.
name
string
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.
query
string
GraphQL query
args
object
Object with parameters
Example:
createDao(args, options) ⇒ Promise<TransactionResponse>
Promise<TransactionResponse>
Create
args
CreateDaoParams
Dao name, Dao token, useProxies option
options
CreateDaoOptions
EIP 1193 provider, Dao factory address
Examples:
For Node.js:
configure(config) ⇒ void
void
Overwrites the default configuration of govern.
config
Example:
Last updated
Was this helpful?