When calling list_proposals
of any SNS governance canister, which parameters need to be set in which way to only fetch actionable proposals by the caller, i.e. proposals on which the caller hasn’t voted on yet?
Hi @Dustin,
You can obtain all actionable proposals by providing include_reward_status: [1]
. To filter those that the user can vote on, you need to implement the logic on your end. Here’s how it’s done in the nns-dapp:
Does this help?
1 Like
Thank you! Yes that’s it
1 Like