RE: RE: Hive Keychain DHF - Week 14
You are viewing a single comment's thread from:

RE: Hive Keychain DHF - Week 14

Words
47
Reading
1 min
Listen
Play
6y

I found this website that already sets up the Nodejs environment for you, so you don't need to worry about setting it up yourself : https://repl.it/languages/nodejs

Then just copy paste this :

const hive=require('@hiveio/hive-js');

const masterKey='xxx';
const user='xxx';
const new_recovery_account='xxx';

const ownerKey = hive.auth.toWif(user, masterKey, "owner");

hive.broadcast.changeRecoveryAccountAsync(ownerKey, user, new_recovery_account, []).then((result,error)=>{console.log(result,error)})

Modify the xxx with your desired values, and press the green triangle, that s it ;)

@stoodkev: I found this | Ecency