This project is for demonstration purposes only. The project has the following functionalities :-
- Generates wallet address for a user, which can be used to receive bitcoins in.
- Shows Transaction history for the address.
- Integrates a separate page for sending bitcoins (requires entering amount in BTC) to a user, using their bitcoin address.
- Shows the current account balance.
HTML
Vanilla CSS
React.js
> Node.js
> Express.js ( for API building )
> dotenv ( for environment variables )
> bitcoinjs-lib ( for Bitcoin transactions )
> bip32, bip39 ( for generating wallet addresses )
> axios ( for making API requests )
> cors ( to allow frontend requests )
> body-parser ( to parse JSON requests )
Here, its presumed that you have node.js and node package manager (npm) installed. Open your backend directory and initialize a node.js project
npm init -y
Now run -
npm install express dotenv bitcoinjs-lib bip32 bip39 axios cors body-parser
Use server.js script and run -
node server.js
The output should be something like -
Server running on port 5000
Install frontend dependencies by running -
npm install axios react-router-dom
Use the src/pages and all the scripts written there for the forntend setup. d o On the terminal run :-
npm start