Fortress
Search…
Fortress Credit and Lending
FTS Tokenomics
Supplying Assets
Borrowing Assets
FAI Stablecoin (Depreciated)
Interest Rates
Governance
FTS
Delegate
Delegate By Signature
Get Current Votes
Get Prior Votes
Fortress Governance
Quorum Votes
Proposal Threshold
Proposal Max Operations
Voting Delay
Voting Period
Propose
Queue
Execute
Cancel
Get Actions
Get Receipt
State
Cast Vote
Cast Vote By Signature
Timelock
Pause Guardian
Forced Liquidations
Smart Contracts
Guides
Road Map
Protocol Documentation
Getting Started
fTokens
Unitroller
Security
Powered By
GitBook
Get Receipt
Gets a proposal ballot receipt of the indicated voter.
function getReceipt(uint proposalId, address voter) returns (Receipt memory)
proposalId: ID of the proposal in which to get a voter’s ballot receipt.
voter: Address of the account of a proposal voter.
RETURN: Reverts on error. If successful, returns a Receipt struct for the ballot of the voter address.
Solidity
GovernorAlpha gov = GovernorAlpha(0x123...); // contract address
Receipt ballot = gov.getReceipt(proposalId, voterAddress);
Web3 1.2.6
const proposalId = 11;
const voterAddress = '0x123...';
const result = await gov.methods.getReceipt(proposalId, voterAddress).call();
const { hasVoted, support, votes } = result;
Previous
Get Actions
Next
State
Last modified
1yr ago
Copy link
Outline
Solidity
Web3 1.2.6