Skip to main content
Version: 2.0

Get ERC20 token metadata by contract

GEThttps://deep-index.moralis.io/api/v2/erc20/metadata

Get the metadata for a given token contract address (name, symbol, decimals, logo).

QUERY PARAMS
chainstring
The chain to query
addressesarrayrequired
The addresses to get metadata for
No items in the array
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.token.getTokenMetadata({
"chain": "0x1"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
Empty