Main Menu

nodejs module for bitshares

Started by spartako, December 26, 2014, 10:20:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

svk

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.
Worker: dev.bitsharesblocks

spartako

#3
Quote from: arubi on December 28, 2014, 07:38:01 PM
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.

wallet_account_set_approval spartako

arubi

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.

spartako

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!
wallet_account_set_approval spartako