Hive Developer Portal - Tutorials

Read, play, and learn Hive.
Javascript
-
JS: Getting Started
Prepare your development environment to use Javascript with the Hive blockchain.
-
JS: Making a Decentralized Game on Hive
We will develop a decentralized game by the end of this series.
-
JS: Blog Feed
How to fetch most recent five posts from particular user on Hive.
-
JS: Hivesigner
Understand the basics of using Hivesigner with your Hive application.
-
JS: Client Signing
How to sign, verify broadcast transactions locally on Hive.
-
JS: Get Posts
Query for the most recent posts having a specific tag, using a Hive filter
-
JS: Get Post Details
How to get post details and use them appropriately.
-
JS: Get Voters List On Post
By the end of this tutorial you would know how to get voters list on any content.
-
JS: Get Post Comments
By the end of this tutorial you would know how to get comments made by others on any post.
-
JS: Get Account Replies
How to get replies made on particular account’s content.
-
JS: Get Account Comments
How to retrieve account comments from the Hive blockchain.
-
JS: Submit Post
How to prepare comments for Hive and then submit using the
broadcast.comment
function. -
JS: Submit Comment Reply
How to post a simple comment to Hive.
-
JS: Edit Content Patching
How to patch post edits to Hive.
-
JS: Stream Blockchain Transactions
How to stream transactions and blocks from Hive blockchain.
-
JS: Reblogging Post
How to reblog a post from hive
-
JS: Search Accounts
How to call a list of user names from the hive blockchain
-
JS: Search Tags
How to run a search for trending tags
-
JS: Vote On Content
Create a weighted up or down vote on a comment/post.
-
JS: Follow A User
Follow and unfollow a user / author.
-
JS: Get Follower And Following List
Get the followers of a user/author & the authors that user is following.
-
JS: Account Reputation
Learn how to interpret account reputation.
-
JS: Transfer Hive And Hbd
Transfer both HIVE and HBD from one account to another.
-
JS: Witness Listing And Voting
Create a list of available witnesses as well as vote for and remove your vote for a witness.
-
JS: Claim Rewards
Learn how to claim rewards from unclaimed reward balance using Hive Signer as well as client signing method.
-
JS: Power Up Hive
Power up an account’s Hive using either Hive Signer or a client-side signing.
-
JS: Power Down
Perform a power down on all or part of an account’s VESTS using either Hive Signer or client-side signing.
-
JS: Create Account
Create Hive account using Hive Signer as well as with client-side signing.
-
JS: Delegate Power
Delegate power to other users using Hive Signer or Client-side signing.
-
JS: Set Withdraw Route
Set routes to an account’s power downs or withdraws.
-
JS: Get Delegations By User
View the vesting delegations made by a user as well as the delegations that are expiring.
-
JS: Grant Posting Permission
How to grant and revoke posting permission to another user.
-
JS: Grant Active Permission
How to grant and revoke active permission to another user.
-
JS: Convert HBD To HIVE
How to convert HBD to HIVE for a specified account.
-
JS: Get State Replacement Api
This is a list of replacement API calls for each of the different routes available from the
getState
function. -
JS: Convert HIVE To HBD
How to convert HIVE to HBD for a specified account.
Php
-
PHP: Getting Started
Before interact with the blockchain, we start with the presentation and configuration of
hive-php-lib
. -
PHP: Blog Feed
This tutorial shows you how to get blogs details from the specified author, limited to five results.
-
PHP: Get Post Details
This tutorial fetches the contents of a single post and explains all data related to that post.
-
PHP: Search Accounts
How to call a list of user names from the Hive blockchain
Python
-
PY: Getting Started
One excellent Hive library for Python is
beem
. It comes with a BIP38 encrypted wallet and a practical CLI utility calledbeempy
. -
PY: Using Keys Securely
Learn how the Beem python library handles transaction signing with Hive user’s key and how to securely manage your private keys.
-
PY: Get Posts
Tutorial pulls a list of the posts from the blockchain with selected filter and tag then displays output.
-
PY: Get Post Details
Get post details from list of posts from the blockchain with
created
filter and tag then display selected post details. -
PY: Get Voters List On Post
Voters list and detail of each vote on selected content.
-
PY: Get Post Comments
Fetch comments made on each content or post using Python.
-
PY: Get Account Replies
List of replies received by account to its content, post, comment.
-
PY: Get Account Comments
Fetch list of comments made by account on posts or comments.
-
PY: Submit Post
How to submit post on Hive blockchain using Python.
-
PY: Submit Comment Reply
How to submit a comment on a post to the Hive blockchain.
-
PY: Edit Content Patching
How to edit post content with diff_match_patch using Python.
-
PY: Stream Blockchain Transactions
How to stream transactions on the live Hive blockchain
-
PY: Reblogging Post
We will show how to reblog or reblog post using Python, with username and posting private key.
-
PY: Search Accounts
How to pull a list of the active user accounts or trending tags from the blockchain using Python.
-
PY: Search Tags
How to pull a list of the trending tags from the blockchain using Python.
-
PY: Vote On Content
How to vote on a post/comment using Python.
-
PY: Follow A User
How to follow or unfollow an author using Python.
-
PY: Get Follower And Following List
Tutorial pulls a list of the followers or authors being followed from the blockchain then displays the result.
-
PY: Account Reputation
Would you like to know how to interpret account reputation to more human readable format, then this tutorial is for you.
-
PY: Transfer HIVE And HBD
How to transfer HIVE and HBD to another account using Python.
-
PY: Witness Listing And Voting
How to vote for or remove a vote for a witness user using Python.
-
PY: Claim Rewards
How to claim rewards using Python.
-
PY: Power Up Hive
How to power up your HIVE to HIVE Power using Python.
-
PY: Power Down
How to power down (withdraw) your vesting shares using Python.
-
PY: Delegate Power
How to delegate or remove delegation of HIVE POWER to another user using Python.
-
PY: Get Delegations By User
How to get a list of active or expiring vesting delegations using Python.
-
PY: Grant Posting Permission
How to give another user posting permission on your account using Python.
-
PY: Grant Active Permission
How to give another user active permission on your account using Python.
-
PY: Convert HBD To HIVE
How to convert your HBD to HIVE using Python.
-
PY: Transfer HIVE And HBD To Savings Balance
How to transfer HIVE and HBD to savings using Python.
-
PY: Password Key Change
How to change your accounts password and keys
-
PY: Account Recovery
How to recover an account using Python.
-
PY: Resource Credit System Developer Guide
The goal of this guide is to demystify how resources and RC’s work. The intended audience is developers working on Hive user interfaces, applications, and client libraries.
-
PY: Convert HIVE to HBD
How to convert your HIVE to HBD using Python.
Ruby
-
RB: Getting Started
To access the Hive blockchain using Ruby, install the Radiator gem: https://github.com/inertia186/radiator. Full documentation on Radiator api methods are hosted on rubydoc.info.
-
RB: Blog Feed
This example will output blog details to the terminal for the author specified, limited to five results.
-
RB: Get Posts
This example will output posts depending on which category is provided as the arguments.
-
RB: Get Post Details
Understand and use the most common fields of the requested content.
-
RB: Get Voters List On Post
This example will output the active vote totals for the post/comment passed as an argument to the script.
-
RB: Get Post Comments
This example will output the reply details and totals for the post/comment passed as an argument to the script.
-
RB: Get Account Replies
Fetching the replies written to a particular account.
-
RB: Get Account Comments
Fetching the comments written by a particular account.
-
RB: Submit Post
This example will broadcast a new post to the blockchain using the values provided. To create a post in
ruby
, we will use aRadiator::Transaction
containing acomment
operation, which is how all content is stored internally. -
RB: Submit Comment Reply
How to prepare comments for Hive and then submit using Radiator.
-
RB: Edit Content Patching
Patching changes to a post on Hive.
-
RB: Stream Blockchain Transactions
How to stream transactions and operations from Hive blockchain.
-
RB: Reblogging Post
To reblog a post, we can use a
custom_json
operation that is handled by the follow plugin. -
RB: Search Accounts
Performing a search on account by names starting with a given input.
-
RB: Search Tags
Performing a search for tags.
-
RB: Vote On Content
To vote for a post (or reply), we can use a vote operation and provide the voting weight (the percentage of one vote being cast).
-
RB: Follow Another User
How to follow/unfollow another user.
-
RB: Get Follower And Following List
How to create a list of followers and accounts that you are following.
-
RB: Convert HBD to Hive
How to convert your HBD to HIVE using Ruby.
Recipes
-
Account creation process
The methods on how to create a new account.
-
Calculating RC costs
How to calculate resource credit cost for transactions.
-
Estimate the value of an upvote
Calculate the approximate value of an upvote on Hive
-
Forum/Market Bandwidth
How to interpret raw bandwidth data.
-
How to serialize and sign Hive transactions using Javascript
Serialization and signing without additional Hive Javascript libraries.
-
Paginated API Methods
Querying multiple pages of results from the API.
-
RC Bandwidth Parameters
Analyze the dynamics of the resource budget pool.
-
RC Bandwidth System
All about the RC bandwidth system, the complete rewrite of the bandwidth system.
-
Single Sign-on
Login without authority.
-
Understanding Configuration Values
Low level blockchain constants
-
Understanding Dynamic Global Properties
Maintains global state information
-
Understanding Transaction Status
How to use the Hive API to check the status of a transaction for a given
trx_id
value. -
Using Multisignature Accounts
How to set up and use multisignature accounts on Hive Blockchain.
-
Converting VESTS to HIVE
How to convert VESTS to HIVE or HIVE POWER
-
Streaming blockchain transactions
Including virtual operations when streaming blockchain transactions