This repo is working version of Dan Anderson's sawtooth-simplewallet in Sawtooth 1.2
docker-compose updocker-compose run simplewallet-client bash:simplewallet-clientdocker-compose down
sawtooth keygen namesawtooth state list --url=http://rest-api:8008sawtooth block list --url=http://rest-api:8008
Don't forget to create keys with sawtooth keygen
create-wallet namebalance namedeposit name valuewithdraw name valuetransfer name name1 value
If you are out of any linux distro use: python3 transfer.py name name1 value
-
Running Containers:
docker-compose up, you can check active containers withdocker ps -a. -
Client App: In a new terminal, run
docker-compose run simplewallet-client bashto enter client bash. -
Keygen: In client, run
sawtooth keygen name1to generate key pairs. -
Create Wallet: In client, run
create-wallet name1 -
Deposit: In client, run
deposit jack amount -
Check Balance: In client, run
balance name1 -
Withdraw: In client, run
withdraw jack amount -
Transfer: In client, run
transfer name1 name2 amount
To exit from client bash use exit.