Created
September 9, 2015 14:21
-
-
Save killerstorm/3d8c25a967168f9a8b3c to your computer and use it in GitHub Desktop.
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
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