Retrieve the fee required for creating a token based on the token amount and decimals.
Method : GET
URL : /tokens/fee
Parameter
Required
Location
Data Type
Constraints
Description
token_amount
Yes
Query
Integer
Positive value
The total supply of tokens
decimals
Yes
Query
Integer
0-8
The number of decimals for the token
GET /tokens/fee?token_amount=1000&decimals=2
Parameter
Required
Data Type
Description
fee
Yes
Integer
The fee for creating the token
Example Successful Response
Common Error Response Structure
Parameter
Required
Data Type
Description
error
Yes
String
Error code
message
Yes
String
Error description
Error Code
HTTP Status Code
Error Description
VALIDATION_FAILED
400 Bad Request
Invalid decimals value
VALIDATION_FAILED
400 Bad Request
Invalid amount value
{
"error" : " VALIDATION_FAILED" ,
"message" : " invalid decimals value"
}
The user sends a request specifying the token amount and decimals.
The server calculates the fee and returns it.
If the request is invalid (e.g., incorrect decimals or amount), the server returns an error.