Scaling

Many endpoints takes the optional parameter scaled, which defaults to "true", in order to determine whether or not to scale the result by token decimals. If, for example, the token with 6 decimals has a supply of 1,000,000,000 , and scaled is "true", the totalSupply result will be 1,000. If, however, scaled is "false" (see the endpoint /v1/tokens/<chain id>/<token address>/total-supply) the result will be 1,000,000,000 which is exactly as stored on blockchain.

Last updated