Skip to main content

getProposal


Get information regarding a proposal made to an INTU vault

import { getProposal} from "@intuweb3/web-exp";
getProposal(vaultAddress, proposalId,provider)

Arguments:

InputTypeDescription
vaultAddressstringaddress of the vault
proposalIdnumberId of proposal, retrieved from getVaults results
providerobjectSigner object acquired from ethers or equivalent

Returns:

All of the data associated with a single proposal Id

NameTypeDescription
idBigNumberid of proposal
voteForNeededBigNumberNumber of Votes needed
endTimeBigNumberunix timestamp for vault creation.
voteForCountcount of for votes
_calldatastring
executedbooleancompleted or not