Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Token Metadata

GEThttps://solana-gateway.moralis.io/token/:network/:address/metadata

Get the global token metadata for a given network and contract (mint, standard, name, symbol, metaplex).

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address of the contract
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/metadata', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"mint": "",
"standard": "",
"name": "",
"symbol": ""
}