# How do I use SnsListProposalsParams and {certified: false}

**URL:** <https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773>\
**Category:** Developers\
**Tags:** sns\
**Created:** [July 5, 2024, 7:24pm UTC](https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773 "2024-07-05T19:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [July 5, 2024, 7:24pm UTC](https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773/1 "2024-07-05T19:24:44Z")

</div>

Locally I’d like to list my proposals, which I can do:

```auto
async function listProposals(beforeProposal?: ProposalId) {
    const agent: any = await ActorFactory.getGovernanceAgent();
    if (process.env.DFX_NETWORK !== "ic") {
      await agent.fetchRootKey();
    }

    const principal: Principal = Principal.fromText(process.env.CANISTER_ID_SNS_GOVERNANCE ?? "");
    const { listProposals: governanceListProposals } = SnsGovernanceCanister.create({
      agent,
      canisterId: principal
    });

    const params: SnsListProposalsParams = {
      includeStatus: [selectedProposalStatus],
      limit: itemsPerPage,
      beforeProposal: beforeProposal,
      excludeType: getExcludedFunctionIds()
    };

    proposals = await governanceListProposals(params);
    console.log(proposals);
    filterProposals();
  }

```

provided I change this line:  
proposals = await governanceListProposals(params);  
to  
proposals = await governanceListProposals({certified: false});

How do I do the certified false and have the params?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 5, 2024, 7:45pm UTC](https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773/2 "2024-07-05T19:45:26Z")

</div>

You do not use TypeScript?

`certified` is part of the params for the function `listProposals`.

> <https://github.com/dfinity/ic-js/blob/941864ecb3d84561301cb1af7d1e36576407e4b2/packages/sns/src/types/governance.params.ts#L32>

> <https://github.com/dfinity/ic-js/blob/941864ecb3d84561301cb1af7d1e36576407e4b2/packages/utils/src/types/query.params.ts#L4>

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 5, 2024, 7:46pm UTC](https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773/3 "2024-07-05T19:46:44Z")

</div>

To be fair the JSdocs of the function can be improved, agree.

> <https://github.com/dfinity/ic-js/blob/941864ecb3d84561301cb1af7d1e36576407e4b2/packages/sns/src/governance.canister.ts#L95>

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [July 5, 2024, 8:11pm UTC](https://forum.dfinity.org/t/how-do-i-use-snslistproposalsparams-and-certified-false/32773/4 "2024-07-05T20:11:43Z")

</div>

Sorry mate, yeah I was using typescript but my problem was I just wasn’t including all the statuses to actually show the proposals.

```auto

  let selectedProposalStatus = [0,1,2,3,4,5];

```

so i get them and am able to add certified false to the extended params

```auto

    const principal: Principal = Principal.fromText(process.env.CANISTER_ID_SNS_GOVERNANCE ?? "");
    const { listProposals: governanceListProposals } = SnsGovernanceCanister.create({
      agent,
      canisterId: principal
    });

    const params: SnsListProposalsParams = {
      includeStatus: selectedProposalStatus,
      limit: itemsPerPage,
      beforeProposal: beforeProposal,
      excludeType: getExcludedFunctionIds(),
      certified: false
    };

    proposals = await governanceListProposals(params);

```
