BitShares Forum
Main => General Discussion => Topic started by: spartako on December 26, 2014, 10:20:07 pm
-
I have written a simple rpc client in nodejs for bitshares.
https://github.com/spartako-bitshares/node-bitshares
you can install with:
npm install bitshares
Enjoy!
-
Cute :)
Some rejects (if I may):
Nobody wants RPC credentials in cleartext in the process list. Users who explicitly run an RPC server should always set the parameters in config.json . Have your software look up these credentials from that file and use 'em.
No reason passing usernames and passwords in cleartext from commandline.
-
Cute :)
Some rejects (if I may):
Nobody wants RPC credentials in cleartext in the process list. Users who explicitly run an RPC server should always set the parameters in config.json . Have your software look up these credentials from that file and use 'em.
No reason passing usernames and passwords in cleartext from commandline.
Thanks for your feedback!
I added this note in readme file:
Note: This command is used only for convenience.
For security reason I strongly suggest you to change ~/.Bitshares/config.json file and launch bitshares_client without parameters.
-
Good job Spartako!
For future reference if anyone's looking for a nodejs rpc client, I've also just published one that's slightly different from this one, see:
https://bitsharestalk.org/index.php?topic=11272.msg168882#msg168882
Main differences are: uses promises, does not prefetch all rpc commands so you need to find them on your own.