DAO
Get stakeholders data
POST
https://api.octusbridge.io/v1/dao/search/stakeholders
This function is used to get stakeholders data.
It can be used for showing a list of desired number of stakeholders, where the information about total number of votes a stakeholder raised, how much stakeholder’s vote can weigh, address and number of proposals he voted for ordered by the vote weight.
Request parameters
Required body parameters:
Name | Example value | Comment |
---|---|---|
limit |
| Maximum number of stakeholders to be retrieved |
offset |
| Offset |
ordering |
| Value based on which the retrieved stakeholders data will be ordered (voteweightascending, voteweightdescending…)based on which the retrieved stakeholders data will be ordered (voteweightascending, voteweightdescending…) |
Response fields explanation
Name | Example value | Comment |
---|---|---|
stakeholders | - | List of stakeholders data determined by the limit body parameter |
proposalVotesCount |
| Amount of proposals stakeholder raised a vote |
userAddress |
| Address of the stakeholder |
voteWeight |
| Amount per vote |
votes |
| Total amount of votes raised |
totalCount |
| Total number of stakeholders |
Example
Get stakeholder data
GET
https://api.octusbridge.io/v1/dao/user/{user_address}
This function is used to get stakeholder data.
It can be used to show one’s stakeholder data based on his account address. Information that can be displayed is the amount of votes certain stakeholder raised, his vote weight, address and total number of proposal votes.
Request parameters
Required parameters:
Name | Example Value | Comment |
---|---|---|
userAddress | 0:66003d2db4bc1566c3d7d3c118004b1e1d54f1f62c30c6b173845db3aa459f07 | Address of particular account |
Response fields explanation
Name | Example value | Comment |
---|---|---|
proposalVotesCount | 1 | Amount of proposals stakeholder raised a vote |
userAddress | 0:66003d2db4bc1566c3d7d3c118004b1e1d54f1f62c30c6b173845db3aa459f07 | Address of the user |
voteWeight | 3.400 | Amount representing the vote weight (per vote) |
votes | 100002.580351726000 | Total amount of votes raised |
Example
Last updated