Get Pump.fun Token Metadata with Moralis API
Retrieve detailed metadata for any Pump.fun token using the Moralis Solana API. This guide will show you how to fetch a tokenβs name, symbol, logo, total supply, and more! π
β¨ What You Can Doβ
Using this API, you can:
- Fetch a Pump.fun tokenβs metadata (name, symbol, decimals, logo, supply)
- Retrieve Metaplex metadata (URI, update authority, primary sale status)
- Get the tokenβs fully diluted valuation (FDV)
π Step 1: Get Your Moralis API Keyβ
Before making API calls, you need an API key. Hereβs how to get one:
- Go to developers.moralis.com and sign up (itβs free!).
- Navigate to the "API Keys" section in your dashboard.
- Copy your API Key β youβll need this for making requests.
π Step 2: Find Your Pump.fun Token Addressβ
Every Pump.fun token has a unique contract address on Solana. Youβll need this to fetch metadata.
- If you already know the tokenβs Solana address, youβre good to go!
- If not, you can find it on Pump.fun or Solana explorers like Solscan.
Example token address for $PUMP token:
9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
β‘ Step 3: Fetch Token Metadata via APIβ
Visit the token metadata API page and make an API request.
You can also use cURL, Postman, or your favorite programming language.
π Example API Requestβ
curl --request GET \
--url 'https://solana-gateway.moralis.io/token/mainnet/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/metadata' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
π Example API Responseβ
{
"mint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
"standard": "metaplex",
"name": "Fartcoin ",
"symbol": "Fartcoin ",
"logo": "https://d23exngyjlavgo.cloudfront.net/solana_9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
"decimals": "6",
"metaplex": {
"metadataUri": "https://ipfs.io/ipfs/QmYfe8zVGHA1heej47AkBX3Nnetg2h2kqj5yymz1xyKeHb",
"masterEdition": false,
"isMutable": false,
"sellerFeeBasisPoints": 0,
"updateAuthority": "TSLvdd1pWpHVjahSpsvCXUbgwsL3JAcvokwaKt1eokM",
"primarySaleHappened": 0
},
"fullyDilutedValue": "1147224812.01",
"totalSupply": "999995434231329",
"totalSupplyFormatted": "999995434.231329",
"links": null,
"description": null
}
π Step 4: Understanding the Responseβ
Hereβs what the response tells you:
nameβ The Pump.fun tokenβs namesymbolβ The token tickerlogoβ A URL to the tokenβs logo imagedecimalsβ The tokenβs decimal placestotalSupplyFormattedβ The total supply formatted for displayfullyDilutedValueβ The market cap assuming all tokens are in circulationmetaplex.metadataUriβ The IPFS link to extended metadatametaplex.updateAuthorityβ The address that can update metadatametaplex.sellerFeeBasisPointsβ The creator fee percentage on secondary sales
π Step 5: Integrate into Your Projectβ
Now that you have token metadata, you can use it in your app!
π― Some ideas:
- Build a Pump.fun token explorer
- Display metadata on a trading dashboard
- Show token details in a DeFi dApp