Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var steem = require('steem');
- var username = 'jpederson96';
- var password = 'master password';
- var ownerKey = steem.auth.getPrivateKeys(username, password, ['owner']).owner;
- steem.api.getAccounts([username], function(err, response){
- if (response) {
- var account = response[0];
- var activeAuth = account.active;
- var postingAuth = account.posting;
- var ownerAuth = account.owner;
- var memoKey = account.memo_key;
- postingAuth.account_auths = [];
- steem.broadcast.accountUpdate(ownerKey, username, ownerAuth, activeAuth,
- postingAuth, memoKey, account.json_metadata, function(err, result) {
- console.log(err,result);
- });
- } else {
- console.log(err)
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement