A simple calculator for truebit os (truebit.io) token minting and retiring operations. This is inspired by lpmythbuster's implementation.
- Go installed on your system
.env
file configured
-
Configure the environment variables in
.env
file -
Start the server:
go run cmd/server/main.go
-
Wait for the "Server starting on localhost:XXXX" message
You can access the calculator in two ways:
-
Via cURL:
curl -H "Accept: application/json" http://localhost:XXXX/truebit | jq
-
Via Web Browser:
Simply navigate to
http://localhost:XXXX/truebit
in your preferred browser