This is an accompanying repo for the Building turbo-ledger: A Scalable Ledger with Go and Redis post.
go get .
go run .
curl http://localhost:12000/wallets \
--include \
--header "Content-Type: application/json" \
--request "POST" \
--data '{"wallet_id": "new_wallet", "tags": ["vip","rich"],"owner":"rafik}'
curl http://localhost:12000/transactions \
--include \
--header "Content-Type: application/json" \
--request "POST" \
--data '{"source_wallet": "src_wallet",
"destination_wallet": "dst_wallet",
"amount": 5,
"transaction_description":"my cool transaction",
"date":"2022-06-07T19:02:01.0Z"}'
curl http://localhost:12000/wallets/owner?query\=bob\
--include \
--header "Content-Type: application/json" \
--request "GET"
curl http://localhost:12000/wallets/tags\?query\=rich\
--include \
--header "Content-Type: application/json" \
--request "GET"