You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When interacting with the Blockbook API to query transactions involving Ethereum tokens with a decimal value of 0, such as Sensorium, inconsistencies arise in the reported decimal value. Despite tokens having a specified decimal value of 0, the API response consistently returns a decimal value of 18. This discrepancy creates confusion and inaccuracies when processing token values and can potentially lead to incorrect calculations or interpretations of token transactions.
Steps to Reproduce:
Call the Blockbook API endpoint for a transaction involving a token with a decimal value of 0, for example, Sensorium.
Analyze the API response to observe the reported decimal value.
Expected Behavior:
The Blockbook API response should accurately reflect the decimal value specified for the token in the transaction. Tokens with a decimal value of 0 should consistently return a decimal value of 0 in API responses.
Actual Behavior:
The Blockbook API returns a decimal value of 18 for tokens with a decimal value of 0, irrespective of the token's actual decimal value. This behavior contradicts the expected behavior and introduces ambiguity and inconsistency in token value representation.
Hi everyone,
Description:
When interacting with the Blockbook API to query transactions involving Ethereum tokens with a decimal value of 0, such as Sensorium, inconsistencies arise in the reported decimal value. Despite tokens having a specified decimal value of 0, the API response consistently returns a decimal value of 18. This discrepancy creates confusion and inaccuracies when processing token values and can potentially lead to incorrect calculations or interpretations of token transactions.
Steps to Reproduce:
Expected Behavior:
The Blockbook API response should accurately reflect the decimal value specified for the token in the transaction. Tokens with a decimal value of 0 should consistently return a decimal value of 0 in API responses.
Actual Behavior:
The Blockbook API returns a decimal value of 18 for tokens with a decimal value of 0, irrespective of the token's actual decimal value. This behavior contradicts the expected behavior and introduces ambiguity and inconsistency in token value representation.
Example API Response:
Additional Info
The text was updated successfully, but these errors were encountered: