Update token decimals and scale related entities
Tokens
Update token decimals and scale related entities
Updates the decimal places for a token and automatically scales all related donation and pledge amounts. This endpoint is restricted to users with the maintainer role. The operation is atomic - if any step fails, all changes are rolled back.
PATCH
Update token decimals and scale related entities
Documentation Index
Fetch the complete documentation index at: https://docs.endaoment.org/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Token ID
Body
application/json
New decimal places for the token
Required range:
1 <= x <= 32Example:
18
Response
200 - application/json
Token decimals successfully updated with detailed report
The updated token
Number of donations updated without precision loss
Example:
5
Number of crypto pledges updated without precision loss
Example:
3
Array of items that experienced precision loss during the update