Skip to main content
This page demonstrates how to vote on posts and comments on the Hive blockchain.

Basic Upvote

A simple upvote with 100% voting weight.

VoteOperation Type

All vote operations use the following structure:

Vote Weight Explained

The weight parameter determines the strength and direction of your vote:
  • 10000 = 100% upvote (maximum)
  • 5000 = 50% upvote
  • 2500 = 25% upvote
  • 0 = Remove vote
  • -2500 = 25% downvote
  • -10000 = 100% downvote (maximum)

Downvote Example

Downvoting uses negative weight values.

Partial Vote Examples

Vote with less than 100% weight to preserve voting power.

50% Upvote

25% Upvote

10% Downvote

Remove Vote

Set weight to 0 to remove an existing vote.

Vote on a Comment

Voting on comments uses the same operation as voting on posts.

Multiple Votes in One Transaction

You can vote on multiple posts/comments in a single transaction.

Vote Weight Calculator

Helper function to calculate vote weight from percentage.

Vote with Percentage Helper

Important Notes

  • Vote weight must be between -10000 and 10000
  • You can only vote once per post/comment (but can change your vote)
  • Votes after 7 days have no effect (payout window closed)
  • Use posting key to sign vote operations
  • Frequent voting depletes voting power (regenerates at 20% per day)
Using lower vote weights (e.g., 25-50%) allows you to vote more frequently without depleting your voting power.

Voting Power Consideration

Each vote consumes voting power based on the weight used. A 100% vote uses more power than a 50% vote. Voting power regenerates at 20% per day. If your voting power drops below 80%, consider using lower vote weights to preserve it.