- Export ENV or Add to .env
export APP_ADDR=0.0.0.0:8080
RPC_API_URL=https://rpc.canxium.org
-
Build & start API
go build cmd/api/main
./main
-
Get supply
curl --location --request GET '127.0.0.1:8080/info/cau'
-
Get total supply
curl --location --request GET '127.0.0.1:8080/info/cau?q=totalSupply'
-
Get circulating supply
curl --location --request GET '127.0.0.1:8080/info/cau?q=circulatingSupply'