Last active
May 19, 2019 09:11
-
-
Save xiaojay/bb4f25536faba64278a556f2be347c13 to your computer and use it in GitHub Desktop.
use node.js to call "grin wallet init -r"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cp = require('child_process') | |
i = cp.spawn('grin-wallet', ['init', '-r']) | |
i.stdout.on('data', function(data){ | |
let output = data.toString() | |
console.log(output) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment