Hyperledger Sawtooth Case Implementation
docker-compose up -d
docker-compose up -d
docker exec -it sawtooth-client-default bash
curl http://rest-api:8080/blocks
curl http://localhost:8080/blocks
intkey create_batch --count 10 --key-count 5
intkey load -f batches.intkey -U http://rest-api:8080
sawtooth batch submit -f batches.intkey --url http://rest-api:8080
sawtooth block list --url http://rest-api:8080
sawtooth block show --url http://rest-api:8080 {BLOCK ID}
sawtooth state list --url http://rest-api:8080
sawtooth state show --url http://rest-api:8080 {STATE ADDRESS}
curl http://rest-api:8080/blocks
curl http://localhost:8080/blocks
xo init --username jack --url http://rest-api:8080
xo init --username jill --url http://rest-api:8080
xo init --username jack
xo create game1
xo list
xo take game1 4
xo init --username jill
xo take game1 3
xo show game1
# Jack
xo init --username jack
xo take game1 5
xo show game1
# Jill
xo init --username jill
xo take game1 6
xo show game1
# Jack
xo init --username jack
xo take game1 7
xo show game1
# Jill
xo init --username jill
xo take game1 1
xo show game1
# Jack
xo init --username jack
xo take game1 2
xo show game1
# Jill
xo init --username jill
xo take game1 9
xo show game1
O Jill ganhou :D