Skip to content

Instantly share code, notes, and snippets.

@killerstorm
Created September 9, 2015 14:21
Show Gist options
  • Save killerstorm/3d8c25a967168f9a8b3c to your computer and use it in GitHub Desktop.
Save killerstorm/3d8c25a967168f9a8b3c to your computer and use it in GitHub Desktop.
if (process.argv.length < 3) {
console.log('need address')
process.exit(1)
}
var rpc = require('node-json-rpc');
var client = new rpc.Client({
port: 80,
host: "regtest-controller.chromanode.com"
});
client.call({method: 'sendtoaddress',
params: [process.argv[2], 0.1],
id: 1},
function(err, res) {
console.log(err || res)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment