Berikut ini adalah contoh permintaan/request yang memungkinkan Anda untuk menghitung jumlah pasokan maupun sirkulasi berdasarkan kontrak token Anda (contoh: TDN Token).

1. get trusti supply of TDN tokens

$ curl --request POST \
  --url http://209.97.162.124:8080/v1/chain/get_currency_stats \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"code":"trusti","symbol":"TDN"}'

Supply: 200000000.0000 TDN

2. get account supply

$ curl --request POST \
  --url http://209.97.162.124:8080/v1/chain/get_currency_balance \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"code":"trusti","account":"myplayground"}'

Balance (myplayground): 1.0000 TDN

3. TDN supply calculations

$ curl --request POST \
  --url http://209.97.162.124:8080/v1/chain/get_currency_balance \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"code":"trusti","account":"trusti"}'

supply - accounts balance = TDN active supply

supply calculations: 199494997.0000 TDN