The popularity of Bitcoin Cash is on the rise and BITBOX 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 BITBOX SDK and Bitcoin Cash.
BITBOX 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.bitcoin.com 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 BITBOX 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 BITBOX SDK. You can do that with
. This will give you access to BITBOX scaffolds, console, paper wallet generator and more. To confirm it worked run bitbox --version. At the time of writing the latest version of BITBOX SDK is v1.4.4.
npm install bitbox-sdk --global
It should be noted that all of the above tools, NodeJS, NPM, AtomIO and BITBOX SDK all work on MacOS, Windows and Linux. The screenshots show MacOS but BITBOX SDK works across all platforms.
Now that you have all the tools installed you’re ready to start playing around with the BITBOX 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 BCH application in under a minute that you can build your app on. To see this in action run
bitbox 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 BITBOX Console you can copy and paste any code sample from the BITBOX 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.
Bitcoin.com’s BITBOX 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.