Skip to main content

Token info

GET https://sol.shrine.trade/api/token-info?mint=…

Decimals, supply and token program from the chain; name, symbol, launchpad, active pool and the last price from the data API's own registry.

{
"mint": "…pump",
"decimals": 6,
"tokenProgram": "spl-token",
"totalSupply": 1000000000,
"totalSupplyRaw": "1000000000000000",
"name": "…", "symbol": "…", "uri": "…",
"protocol": "PUMPFUN",
"pool": "<bonding curve or pool>",
"graduated": false,
"quote": "So11111111111111111111111111111111111111112",
"price": 3.2e-8,
"marketCap": 32.1,
"priceUSD": 0.0000031,
"marketCapUSD": 3100,
"priceTime": 1789126483,
"solPriceUSD": 98.9,
"holderReward": false,
"mayhemMode": false,
"cashbackCoin": false
}

On a pump.fun coin the curve's flags are read live: holderReward, mayhemMode, cashbackCoin, and creatorFeeBps when a custom-pair coin sets its own. quote is the curve's quote mint.

price is in the quote asset (SOL for most coins). The price fields appear once the token has traded since the API started watching it; a coin nobody has touched yet reports only the chain facts.

Example​

const info = await (await fetch(`https://sol.shrine.trade/api/token-info?mint=${mint}`)).json();
console.log(info.symbol, info.protocol, info.graduated ? "graduated" : "on the curve", info.priceUSD);