RaiBlocksJS icon indicating copy to clipboard operation
RaiBlocksJS copied to clipboard

Wrapping this library up as an npm package

Open pramttl opened this issue 6 years ago • 4 comments

@SergiySW : It would be great to have a wonderful library like this wrapped up as an npm package to enable easy use by third-party developers, along with documentation for the API functions. I tried skimming through some of the functions in the .rpc.js but the function signatures are not completely clear by looking at them, (also the RaiBlocks RPC wiki does not have a definitions section so that makes the functions in this library even harder to understand).

Documentation for this library would be really nice as it would enable API use by third party developers. Also, cc-ing: @clemahieu if this library could be put under a Github Raiblocks org account or something ? An "official" looking JS API library for RaiBlocks RPC calls would be great.

pramttl avatar Dec 26 '17 08:12 pramttl

Functions to create blocks?

I think it's good idea add to npm with npm blake2 implementation if I have time...

SergiySW avatar Dec 26 '17 09:12 SergiySW

@SergiySW I've forked the project and looking to set it up as an npm package. I'm running into an issue when trying to test it out though. Is there documentation for how to setup (what I'm assuming is a node) the localhost server? I have the official wallet, but I think that RPC isn't setup by default. I also tried running the docker project (https://github.com/clemahieu/raiblocks/wiki/Docker-node) but still had trouble getting it working. Any advice? Really looking forward to contributing :)

Also while testing out the community script, it seemed like https://raiblockscommunity.net was down?

orrybaram avatar Dec 31 '17 18:12 orrybaram

@pramttl @SergiySW I have begun work on updating this library. It's still very much a work in progress, but you can check out progress here https://github.com/orrybaram/RaiBlocksJS/pull/1

orrybaram avatar Jan 03 '18 05:01 orrybaram

https://github.com/SergiySW/RaiBlocksJS/pull/6

orrybaram avatar Jan 07 '18 19:01 orrybaram