Annex Docs
Search…
Delegate
Delegate votes from the sender to the delegatee. Users can delegate to 1 address at a time, and the number of votes added to the delegatee’s vote count is equivalent to the balance of ANN in the user’s account. Votes are delegated from the current block and onward, until the sender delegates again, or transfers their ANN.
ANN
1
function delegate(address delegatee)
Copied!
  • delegatee: The address in which the sender wishes to delegate their votes to.
  • msg.sender: The address of the ANN token holder that is attempting to delegate their votes.
  • RETURN: No return, reverts on error.
Solidity
1
ANN ann = ANN(0x123...); // contract address
2
ann.delegate(delegateeAddress);
Copied!
Web3 1.2.6
1
const tx = await ann.methods.delegate(delegateeAddress).send({ from: sender });
Copied!
Last modified 4mo ago
Copy link