Skip to main content

Vote.getAll() method

Get All Proposals

Example

const proposals = await contract.getAll();
console.log(proposals);

Signature:

getAll(): Promise<Proposal[]>;

Returns:

Promise<Proposal[]>

  • All the proposals in the contract.

Remarks

Get all the proposals in this contract.