Skip to content

Latest commit

 

History

History
90 lines (44 loc) · 1.16 KB

README.md

File metadata and controls

90 lines (44 loc) · 1.16 KB

Bitcoin-Node-Js

Please Do Remeber to Edit/Change your bitcoin.config

for that you need to go to:

Linux Terminal :

cd

ls

cd Downloads

ls

cd bitcoin

ls

nano bitcoin.config

Ctrl+shift+O/Ctrl+shift+s/ctrl+s to Save

Bitcoin.config file will be open then Edit/change : Link

Or If this Don't work/open then :

cd

ls

ls -lha

cd bitcoin

ls -lha

nano bitcoin.config

Bitcoin.config file will be open then Edit/change : Link

Step 1:

Go to Terminal:

cd

dir

cd bitcoin

bitcoind

bitcoin --daemon

Bitcoin will start running

Step 2

Process for Running bitcoin through Node.js

Go to New Terminal

mkdir Ex

cd Ex

code .

Visual Studio Code will open with Project folder(Ex)

create new file : index.js

Go to Terminal:

npm init

npm install bitcoin

node index.js

bitcoin-cli getblockchaininfo

Screenshot from 2022-05-27 21-09-02

So, Now you will get the ouptut as in photo.