Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Add governance proposals and referendums #157

Open
mariopino opened this issue May 10, 2020 · 0 comments
Open

Add governance proposals and referendums #157

mariopino opened this issue May 10, 2020 · 0 comments

Comments

@mariopino
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Fetch and store governance proposals and referendums.

Additional context

Proposals:

const proposals = await api.derive.democracy.proposals();

proposals.forEach(proposal => {
  console.log(JSON.stringify(proposal, null, 2));
  console.log(JSON.stringify(proposal.image.proposal.toHuman()));
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant