Skip to content

Token module

Vladislav Mikitich edited this page Sep 8, 2021 · 3 revisions

Token

PDV tokens are assigned to the user as soon as they reveal their personal data. There are no transactions, only query to get PDV token balance of the specific user.

CLI

# Query pdv token balance
decentrcli query token balance [address]

# Query pdv token pool and next reward details
decentrcli query token pool

# Query pdv token rewards history
decentrcli query token history [address]

REST

# Query pdv token balance
curl -s http://localhost:1317/token/balance/{address}

# Query pdv token pool and next reward details
curl -s http://localhost:1317/token/pool

# Query pdv token rewards history
curl -s http://localhost:1317/token/balance/{address}/history
Clone this wiki locally