dao

list

the array list returns the list of all DAOs created using the smart-nodes

Get the list of all DAOs

GET dao/list

Fetch the list of all DAOs created on HbarSuite

Response Details

Response ItemDescription

name

DAO name

description

DAO description

about

more info about the DAO

tokenId

tokenId on which the DAO is based

symbol

token symbol

decimals

token decimals

type

token type

image

DAO image

isWeighted

defines if a DAO vote is based on token weight

limited.proposals

if limited, it has the topic ID on where council votes are registered

limited.councilNftId

NFT id of the council members

proposals

Topic ID where the proposals are written

blacklist

array of blacklisted accounts

fees.fixed.hbar

fees of the DAO creation

fees.wallet

wallet ID where the fees go

consensus_timestamp

timestamp when the DAO was created

details

Returns the details of a specified DAO

Fetch the details of a specified DAO

GET dao/details/?tokenId={tokenId}

DAO details

Query Parameters

NameTypeDescription

tokenId*

String

TokenId of the DAO

Response Details

Response ItemDescription

name

DAO name

description

DAO description

about

more info about the DAO

tokenId

tokenId on which the DAO is based

symbol

token symbol

decimals

token decimals

type

token type

image

DAO image

isWeighted

defines if a DAO vote is based on token weight

limited.proposals

if limited, it has the topic ID on where council votes are registered

limited.councilNftId

NFT id of the council members

proposals

Topic ID where the proposals are written

blacklist

array of blacklisted accounts

fees.fixed.hbar

fees of the DAO creation

fees.wallet

wallet ID where the fees go

consensus_timestamp

timestamp when the DAO was created

proposals

Returns an array with all the proposals of a DAO

Get the list of all proposals for a specific DAO/token

GET dao/proposals?tokenId={tokenId}

Fetch proposals list

Query Parameters

NameTypeDescription

tokenId

String

tokenId of the DAO

Response Details

Response ItemDescription

title

proposal title

description

proposal description

content

proposal main content

options

voting options

start_date

starting date of the proposal

end_date

end date of the proposal

author

account ID owner of the proposal

votes

Topic ID where the proposal votes are written

statistics

Topic ID where the statistics are written

created_at

timestamp of the proposal creation

snapshot.url

url of the IPFS cid for the snapshot

snapshot.holders

number of holders that can vote on the proposal

type

whether the proposal is private (council vote) or public for community vote

consensus_timestamp

timestamp of the proposal

fees.fixed.hbar

fee of the dao creation

fees.wallet

where the fees go

original_options

the voting options when on public vote

latestStatistics.consensus_timestamp

timestamp of the current statistics

latestStatistics.votes

current number of votes

latestStatistics.weights

current weight

latestStatistics.results.approve.weight

number of approval votes from council

latestStatistics.results.approve.percentage

percentage of approval from council

latestStatistics.results.reject.weight

number of rejection votes from council

latestStatistics.results.reject.percentage

percentage of rejection from council

status

current status of the proposal (whether approved or rejected)

proposal

Returns the details of a specific proposal

Fetch the details of a specific proposal

GET dao/proposal?tokenId={tokenId}&consensus_timestamp={consensus.timestamp}&type={type}

proposal details

Query Parameters

NameTypeDescription

tokenId*

String

tokenId of the DAO

consensus_timestamp*

String

consensus timestamp of the proposal

type*

String

type of the proposal

Response Details

Response ItemDescription

title

proposal title

description

proposal description

content

proposal main content

options

voting options

start_date

starting date of the proposal

end_date

end date of the proposal

author

account ID owner of the proposal

votes

Topic ID where the proposal votes are written

statistics

Topic ID where the statistics are written

created_at

timestamp of the proposal creation

snapshot.url

url of the IPFS cid for the snapshot

snapshot.holders

number of holders that can vote on the proposal

type

whether the proposal is private (council vote) or public for community vote

consensus_timestamp

timestamp of the proposal

fees.fixed.hbar

fee of the dao creation

fees.wallet

where the fees go

original_options

the voting options when on public vote

latestStatistics.consensus_timestamp

timestamp of the current statistics

latestStatistics.votes

current number of votes

latestStatistics.weights

current weight

latestStatistics.results.approve.weight

number of approval votes from council

latestStatistics.results.approve.percentage

percentage of approval from council

latestStatistics.results.reject.weight

number of rejection votes from council

latestStatistics.results.reject.percentage

percentage of rejection from council

status

current status of the proposal (whether approved or rejected)

snapshot

Returns an array with the list of accounts allowed to vote

Fetch the details of a specific proposal's snapshot

GET dao/snapshot?tokenId={tokenId}&consensus_timestamp={consensus_timestamp}&type={type}

Returns array of accounts details that are allowed to vote

Query Parameters

NameTypeDescription

tokenId*

String

tokenId of the DAO

consensus_timestamp*

String

consensus timestamp of the proposal

type*

String

type of the proposal

Response Details

Response ItemDescription

account_id

account id of the voter

created_timestamp

timestamp of account creation

delegating_spender

spender account id

deleted

if account id has been deleted, it will show 'true'

metadata

metadata of the snapshot

modified_timestamp

timestamp of last change

serial_number

serial number of the council NFT (if private vote or DAO based on NFT)

spender

hedera account spender

token_id

token ID of the token which allows you to vote

snapshot/validate

Check if a wallet ID has the right to vote

Check if a walletId has the right to vote on a proposal

GET dao/snapshot/validate?walletId={walletId}&tokenId={tokenId}&consensus_timestamp={consensus_timestamp}&type={type}

Check if an AccountId is present in a snapshot

Query Parameters

NameTypeDescription

walletId*

String

Account ID

tokenId*

String

tokenId of the DAO

consensus_timestamp*

String

consensus timestamp of the proposal

type*

String

type of the proposal

Response Details

Response ItemDescription

boolean

if true, the walletId has the right to vote

votes

Get the votes for a specific public proposal

Get the votes for a specific public proposal

GET dao/votes?tokenId={tokenId}&consensus_timestamp={consensus_timestamp}

public votes for a proposal

Query Parameters

NameTypeDescription

tokenId*

String

tokenId of the DAO

consensus_timestamp*

String

consensus timestamp of the proposal (public)

Response Details

Response ItemDescription

sender

sender of the response

timestamp

timestamp of the latest statistic

message

array of voting details

message.timestamp

timestamp of the message

message.message.wallet

walletId of the vote

message.message.weight

weight of the voter

message.message.option

voting option chosen by the voter

Last updated