Skip to main content
2 votes

Gov2: list of who is voting on what | Polkadot.js api

With PolkadotJS you can get information about a specific referendum with this code: const referenda = await api.query.referenda.referendumInfoFor(48); console.log(`Referenda: ${JSON.stringify(...
Alex Bean's user avatar
  • 5,757
2 votes

Using fungible Statemine assets with governance

What is the best design to reuse governance pallets (e.g. treasury, council, Gov2) with non-L1 tokens? You'll want to look at the pub trait Config { type Currency } for each of the pallets you are ...
joepetrowski's user avatar
  • 2,955
1 vote

How to use polkadot{.js} substrate methods in itraction with kusama's gov2

You can still query all the democracy storage to get all the referendums. You can get some indexes with: /* The next free referendum index */ const nextFreeIndex = await api.query.democracy....
Alex Bean's user avatar
  • 5,757

Only top scored, non community-wiki answers of a minimum length are eligible