Decimals
get
Retrieves the number of decimals for the provided ERC20 token.
Authorizations
AuthorizationstringRequired
Path parameters
accountstringRequired
- The account address for the ERC20 token.
Query parameters
chainIdstringRequired
- The chain ID for the ERC20 token.
addressstringRequired
- The contract address for the ERC20 token.
Header parameters
AuthorizationstringRequired
- The authorization token for accessing the ERC20 token.
Responses
200
A promise that resolves to an ERC20APIResponse object containing the number of decimals for the ERC20 token.
application/json
Interface representing the structure of an API response for ERC20 operations.
successbooleanRequired
Indicates whether the API request was successful.
messagestringRequired
A message providing additional information about the API response.
datanumber · doubleOptional
Optional data payload returned by the API.
get/erc20/{account}/decimals
GET /erc20/{account}/decimals?chainId=text&address=text HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200
A promise that resolves to an ERC20APIResponse object containing the number of decimals for the ERC20 token.
{
"success": true,
"message": "text",
"data": 1
}