Public API
A keyless HTTP API for anyone building on Chartist: no account, no key. It can never touch anyone’s wallet.
- Public API (reads)LiveKeyless candles and trades for indexed coins. Launchpad lists are empty for now.
- Public API (quote and swap)Coming soonKeyless quotes and unsigned swap transactions for Chartist launchpad coins.
/stats and /tokens list coins on Chartist’s own launchpad, which is not on mainnet yet. /tokens/:mint, /candles and /trades serve any coin Chartist has indexed.Read endpoints
Base URL https://chartist.cc/api/public/v1. Every response is JSON with a data field. Amounts are whole lamports or token base units, as decimal strings.
GET /statsLaunchpad totalsGET /pairsQuote assets a coin can pair withGET /tokensCoins on the Chartist launchpadGET /tokens/:mintOne coinGET /pools/:mintA coin’s poolGET /pools/:mint/positionsLiquidity positions in that poolGET /candlesPrice candlesGET /tradesRecent tradesGET /solpriceSOL priceWhat a pool read says about the pool
GET /pools/:mint answers a Chartist pool’s reserves, price and fee, and a trust object. Its lock, liquidity, impact, fee split and reward tax come from the pool’s own response at its slot; its upgrade facts come from the program’s ProgramData, read on its own and refreshed every 5 minutes; its dollar line uses Chartist’s SOL price. Add ?poolType=reward for a reward pool; without it the read is the graduated pool, then the general one, as is the pool /tokens/:mint embeds. A general or reward pool is permissionless: anyone can open one for a mint with no freeze authority, so it is not necessarily where the coin trades. Only a graduated pool is made by the coin’s own graduation.
trust.lockHow much of the pool’s LP nobody can withdraw (lpLocked, lpLockedPct). A graduated pool is 100%: its LP is never minted and, at this program build, no one can withdraw it, Chartist included; it can only be added to. While the program is upgradeable (trust.upgrade), an upgrade could change that. A reward pool is locked at its genesis share. A general pool is shown at its computed share, never 100%.trust.liquidityThe real reserves a trade can take out. The graduated pool’s 30 SOL of virtual quote and its base offset are listed beside them and never counted. oneSideDepth is the smaller of the two sides, as GMGN’s buy skill reads it.trust.depthGateGMGN’s $30,000 one-side depth line in lamports at the SOL price we read, and the market caps between which the pool meets it, or reachable: false.trust.impactBuys of 1, 5 and 10 SOL: base out, fee, price impact and all-in cost, refused where the program would refuse them, and whether buys are paused now (buysPausedNow).trust.feeSplitOne trade’s fee as the program books it: what stays in the pool, the creator, holders and Chartist, in basis points.trust.rewardTaxOn a reward coin’s pool, the holder tax every buy and sell pays, and whether it can change (null where there is none). On a graduated reward coin the creator can change it by up to 5 percentage points at a time, to at most 10%, and a change applies 24 hours after it is queued (changeRules); a queued change and when it applies are in pending. A reward pool’s tax is fixed when the pool is made.trust.upgradeWhether the program can still be upgraded and by which key, when it was last deployed, and the program’s own waits: a fee-ladder patch waits 7 days and never raises a fee (a reward coin’s tax has its own 24 hours, above); an admin pause lapses after 72 hours unless renewed. Sells are never paused.Quote and swap (coming soon)
Once the launchpad is live, POST /quote prices a trade, POST /swap returns an unsigned transaction for your own wallet to sign, and POST /swap/send relays the signed result. Chartist never holds the key, and the fee is set by the on-chain program, the same for every caller. If /swap/send gives no JSON answer (a timeout, a dropped connection), or says the outcome is unknown, the transaction may have been sent: poll its signature and do not sign a replacement until its blockhash has expired.