Skip to content

daostack/arc.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb08e22 · Jun 3, 2021
Jan 17, 2020
Sep 23, 2020
Jan 24, 2020
Jan 17, 2021
Jan 17, 2021
Mar 15, 2019
Nov 11, 2018
Dec 11, 2018
Nov 25, 2019
Aug 10, 2020
Jul 22, 2019
Nov 11, 2018
Mar 1, 2021
Jan 10, 2020
Nov 11, 2018
Sep 10, 2019
Jan 6, 2021
Jun 3, 2021
Jun 3, 2021
Jul 7, 2020
Nov 28, 2018
Aug 12, 2020
Jan 7, 2020
Jan 7, 2020

Repository files navigation

DEVELOPMENT OF THIS PACKAGE HAS MOVED TO: https://github.com/daostack/alchemy-monorepo/tree/dev/packages/arc.js

Build Status

DAOstack Client

The DAOStack Client is a nodejs library to work with the DAOstack ecosystem

  • Convenience functions to interact with the DAOstack contracts: create proposals, and vote and stake on them
  • A client library for the DAOstack subgraph - search for daos, proposals

Usage

In your nodejs project run

npm install --save @daostack/client

now you can do:

import { Arc } from '@daostack/client'

// create an Arc instance
const arc = new Arc({
  graphqlHttpProvider: "https://subgraph.daostack.io/subgraphs/name/v23",
  graphqlWsProvider: "wss://ws.subgraph.daostack.io/subgraphs/name/v23",
  web3Provider: `wss://mainnet.infura.io/ws/v3/${YOUR_TOKEN_HERE}`,
  ipfsProvider: {
    "host": "subgraph.daostack.io",
    "port": "443",
    "protocol": "https",
    "api-path": "/ipfs/api/v0/"
  }
})

// get a list of DAOs
arc.daos().subscribe(
  (daos) => console.log(`Here are your DAOS: ${daos}`)
)

More information