description:How to convert VESTS to HIVE or HIVE POWER
exclude:true
layout:full
canonical_url:vest-to-hive.html
---
### Intro
Hive's has base unit is VESTS and usually user doesn't know about this unit because everything is dynamically calucated and presented in HIVE form for convenience of the user. In this recipe we will talk about how converting is working behind the scenes on all Hive apps. Dynamic Global Properties are used in this recipe to fetch the current values of global blockchain properties.
## Steps
1.[**Get Dynamic Global Properties**](#get-global) Fetch current values of global blockchain properties
1.[**Formulate VESTS_TO_HIVE**](#formula) Formulate function that will convert given VESTS to HIVE.
#### 1. Get Dynamic Global Properties <a name="get-global"></a>
Following method can be used to fetch global values
From above results we have everything we need to calculate HIVE from given VESTS value.
Let's say we have been given `availableVESTS` variable, value in VESTS and we want to convert that to HIVE. By using values from above returned object our formula would be as follows:
```
vestHive = ( result.total_vesting_fund_hive x availableVESTS ) / result.total_vesting_shares
Hive's has base unit is VESTS and usually user doesn't know about this unit because everything is dynamically calucated and presented in HIVE form for convenience of the user. In this recipe we will talk about how converting is working behind the scenes on all Hive apps. Dynamic Global Properties are used in this recipe to fetch the current values of global blockchain properties.
## Steps
1.[**Get Dynamic Global Properties**](#get-global) Fetch current values of global blockchain properties
1.[**Formulate VESTS_TO_HIVE**](#formula) Formulate function that will convert given VESTS to HIVE.
#### 1. Get Dynamic Global Properties <a name="get-global"></a>
Following method can be used to fetch global values
From above results we have everything we need to calculate HIVE from given VESTS value.
Let's say we have been given `availableVESTS` variable, value in VESTS and we want to convert that to HIVE. By using values from above returned object our formula would be as follows:
```
vestHive = ( result.total_vesting_fund_hive x availableVESTS ) / result.total_vesting_shares