Toncoin → Gram
Following the approved network changes, TONAPI and Tonviewer now support the new currency naming: Gram.
We have made every effort to preserve backward compatibility wherever possible.
List of Changes
1. Both Variants Are Accepted in Input Parameters
The /v2/rates/chart endpoint now supports a new currency value:
* https://tonapi.io/v2/rates/chart?token=usdt¤cy=ton&points_count=5
* https://tonapi.io/v2/rates/chart?token=usdt¤cy=gram&points_count=5
The response returns the currency name exactly as specified in the request parameters.
2. New Fields for Gram
Throughout the TONAPI response schema https://tonapi.io/api-v2, Gram support has been added to all fields that previously referenced TON.
For example, in the GET /v2/multisig/{account_id} endpoint, the field orders[].risk.gram has been added alongside orders[].risk.ton.
Similarly, corresponding Gram fields have been introduced across other endpoints, such as:
* ton_balance + gram_balance
* and other TON-related fields.
3. `token_name` Value Changes
The token_name field now contains the value Gram instead of TON.
4. Other User-Facing Fields
In structures where fields are primarily intended for user-facing display, references to Toncoin have been changed to Gram.
For example, in the Action structure (used by endpoints such as /v2/accounts/{account_id}/events, /v2/gasless/estimate/{master_id}, and others):
* simple_preview.name: "Ton Transfer" → "Gram Transfer"
* simple_preview.description, prefix.simple_preview.value: "5 TON" → "5 Gram"
Post #131
3.22K