The popularity of Ravencoin is on the rise and RVNBOX SDK aims to channel all the interest in to amazing applications. In this post we'll go over the basics needed to get started creating amazing applications with RVNBOX SDK and Ravencoin.
RVNBOX is an incredibly powerful and intuitive SDK which lets developers build world class applications quickly. It’s built with modern web tech which is familiar to developers all over the world. We launched developer.ravencoin.online to help beginners and old pros hone their blockchain dev skills. The goal of this article is to show the first steps needed to set up your development environment and start playing around with the RVNBOX SDK.
In this post we’ll cover the following:
This also comes bundled with npm which is the “Node Package Manager”. You can confirm everything downloaded correctly by opening your terminal and running node --version and npm --version.
Finally you’re ready to install RVNBOX SDK. You can do that with
. This will give you access to RVNBOX scaffolds, console, paper wallet generator and more. To confirm it worked run rvnbox --version. At the time of writing the latest version of RVNBOX SDK is v1.4.4.
npm install rvnbox-sdk --global
It should be noted that all of the above tools, NodeJS, NPM, AtomIO and RVNBOX SDK all work on MacOS, Windows and Linux. The screenshots show MacOS but RVNBOX SDK works across all platforms.
Now that you have all the tools installed you’re ready to start playing around with the RVNBOX SDK. We want to make it as easy as possible to go from idea to app so we offer scaffolds to bootstrap basic wallets in the popular Angular, React, Node, Next and Vue frameworks. These allow you to scaffold a basic RVN application in under a minute that you can build your app on. To see this in action run
rvnbox new sampleApp --scaffold react
Next to run the app change directories to the newly created sampleApp directory and first install all the dependencies with npm install. Once that is complete run the app with npm start.
Our scaffold app first create a 256 mnemonic in one of 8 languages (english, french, italian, spanish, korean, japanese and chinese simplified/traditional). Next it creates the first BIP44 account and generates the first 10 external change addresses for that account. Finally it creates a 1-to-1 Pay-to-PubKeyHash (P2PKH) transaction so you can see how the code flow works. Note that each time your refresh the page a new mnemonic and BIP44 wallet will be created.
Now that you have a RVNBOX Console you can copy and paste any code sample from the RVNBOX SDK documentation and it will work. This is a great way to play around with the SDK and test your ideas quickly with no ovehead.
ravencoin.online's RVNBOX SDK is incredibly powerful and intuitive. It’s built with modern web tech that is familiar to developers all over the world and has everything needed for you to hit the ground running and go from idea to app 10x faster than the competition.