Skip to content
Snippets Groups Projects
Commit c739b382 authored by Mahdi Yari's avatar Mahdi Yari
Browse files

example for getHardforkVersion

parent 772171dc
No related branches found
No related tags found
1 merge request!17update readme
...@@ -816,11 +816,19 @@ Return Example: ...@@ -816,11 +816,19 @@ Return Example:
hbd_volume: '7287.268 HBD' } hbd_volume: '7287.268 HBD' }
``` ```
### Get Hardfork Version ### Get Hardfork Version
Gets the current hardfork version of the Hive blockchain.
```js ```js
hive.api.getHardforkVersion(function(err, result) { hive.api.getHardforkVersion(function(err, result) {
console.log(err, result); console.log(err, result);
}); });
``` ```
Return Example:
```js
'1.24.0'
```
This returns a string and not JSON.
See also: [getNextScheduledHardfork](#get-next-scheduled-hardfork), [getConfig](#get-config)
### Get Next Scheduled Hardfork ### Get Next Scheduled Hardfork
```js ```js
hive.api.getNextScheduledHardfork(function(err, result) { hive.api.getNextScheduledHardfork(function(err, result) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment