Skip to content

docs(schema): clarify value field is decimal-scaled, not USD#536

Merged
0237h merged 1 commit into
mainfrom
fix/clarify-value-field-description
May 13, 2026
Merged

docs(schema): clarify value field is decimal-scaled, not USD#536
0237h merged 1 commit into
mainfrom
fix/clarify-value-field-description

Conversation

@0237h
Copy link
Copy Markdown
Collaborator

@0237h 0237h commented May 12, 2026

Summary

  • The value field on balances, holders, and transfers endpoints (EVM/SVM/TVM, regular and native) is computed as amount / 10^decimals — the human-readable token amount, not a USD valuation. The label was previously undocumented, leading consumers to interpret a large balance as a dollar value (e.g. reading "value: 2.95e9" on a GRT holder as ~$2.95B).
  • Adds an inline .describe(...) on each schema so the OpenAPI export and downstream SDK types make the semantics explicit.
  • No behavioural change. Same numbers, just documented.
  • Polymarket markets/activity intentionally excluded — its value is USDC and genuinely is a dollar amount given USDC's 6 decimals.

Closes #525.


🤖 Generated with Claude Code

The `value` field returned on balances, holders, and transfers
endpoints (EVM/SVM/TVM, regular and native) is computed as
`amount / 10^decimals` — the human-readable token amount, not a USD
valuation. The label was previously undocumented, leading consumers
to interpret large balances as dollar values.

Add a description on each schema so the OpenAPI export and SDK types
make the semantics explicit. No behavioural change; same numbers are
returned.

Polymarket activity intentionally excluded — its `value` is USDC and
genuinely is a dollar amount given USDC's 6 decimals.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@YaroShkvorets YaroShkvorets temporarily deployed to fix/clarify-value-field-description - token-api PR #536 May 12, 2026 20:58 — with Render Destroyed
@0237h 0237h merged commit 69af42d into main May 13, 2026
2 of 3 checks passed
@0237h 0237h deleted the fix/clarify-value-field-description branch May 13, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TOKEN_API_HOLDERS_VALUE_UNRELIABLE: value field is incorrect

2 participants