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
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
}