{"uid":"cap_h_RX1tW9jEsLRKJwG4zPd","slug":"pro-api-coingecko-com-c0f730eb","name":"CoinGecko On-Chain Solana SPL Token Price","description":"Fetch the current USD price for a Solana SPL token using on-chain data by providing its mint address.","url":"https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/solana/token_price/4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"include_24hr_vol":{"type":"boolean"},"mcap_fdv_fallback":{"type":"boolean"},"include_market_cap":{"type":"boolean"},"include_inactive_source":{"type":"boolean"},"include_24hr_price_change":{"type":"boolean"},"include_total_reserve_in_usd":{"type":"boolean"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","type","attributes"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"attributes":{"type":"object","required":["token_prices","h24_volume_usd","market_cap_usd","h24_price_change_percentage"],"properties":{"token_prices":{"type":"object","required":["4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank"],"properties":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":{"type":"string"}}},"h24_volume_usd":{"type":"object","required":["4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank"],"properties":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":{"type":"string"}}},"market_cap_usd":{"type":"object","required":["4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank"],"properties":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":{"type":"null"}}},"h24_price_change_percentage":{"type":"object","required":["4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank"],"properties":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":{"type":"string"}}}}}}}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true}},"output":{"type":"object","example":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":{"usd":0,"usd_24h_vol":0,"usd_24h_change":0,"usd_market_cap":0}}}},"response":{"data":{"id":"16b8e92f-1516-4515-a820-dea45099bdec","type":"simple_token_price","attributes":{"token_prices":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":"0.0000087917843667586747626283702756654984462022753025485033643487129"},"h24_volume_usd":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":"1.1578414527"},"market_cap_usd":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":null},"h24_price_change_percentage":{"4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank":"0.0"}}}}},"exampleRequest":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true},"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.010000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hR_Gac3_HHoN6cLs8892M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price and optional market data for a specific Solana SPL token (4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank) using on-chain data","exampleAgentPrompt":"What's the current USD price of the Solana token with mint address 4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank, and can you also include its 24-hour volume, market cap, and price change?","exampleUseCases":null,"resultDescription":"Returns a JSON object keyed by the token mint address containing the current USD price as a high-precision decimal string, plus optional fields: 24h trading volume in USD, market cap in USD (may be null for low-liquidity tokens), and 24h price change percentage.","failureModes":["Invalid or unknown mint address returns empty or error response","Token with no liquidity may return null market cap and zero volume","Network outage on Solana may cause stale or unavailable price data","Missing x402 payment header results in 402 Payment Required response","Rate limiting if payment not processed correctly"],"whenToPreferThis":"Use this endpoint when you need a real-time, on-chain USD price for the specific Solana SPL token at mint address 4BmaxxckzuAnFZANYP8uZ4MQUBLoKBHxbx1xbZSDbank. Prefer this over off-chain or aggregated price feeds when on-chain accuracy matters, or when building DeFi workflows on Solana. Choose over generic CoinGecko coin price endpoints when the asset is a Solana SPL token identified by mint address rather than a CoinGecko coin ID.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:38.589Z","isFirstParty":false}