sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
- Install Geth -> Docs
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
$ make sol
$make run
Import blockChain.postman_collection.json
- to check balance :-
curl --location --request GET 'http://localhost:1323/balance'
- to check admin address :-
curl --location --request GET 'http://localhost:1323/admin'
- to deposite 50 abount of value from account's private key in address :-
curl --location --request POST 'http://localhost:1323/deposite/50' \ --header 'Content-Type: application/json' \ --data-raw '{ "accountPrivateKey":"fd4eef6dec5575cc78f3f14d4b749094f8b88ad7883caaa8d1d24e9a01e3732d" }'
- to withdrawl 10 :-
curl --location --request POST 'http://localhost:1323/withdrawl/50' \ --header 'Content-Type: application/json' \ --data-raw '{ "accountPrivateKey":"fd4eef6dec5575cc78f3f14d4b749094f8b88ad7883caaa8d1d24e9a01e3732d" }'