Docs
TopBlast bonding curve — integration guide
Everything a terminal, bot or aggregator needs to quote, route and settle trades against TopBlast bonding curves on TON, plus the graduation handoff into a DeDust CPMM v2 pool.
Overview
Each launch deploys one bonding-curve contract and one TEP-74 jetton master. The full supply of 1,000,000,000 tokens (6 decimals) is minted once to the curve and the minter immediately renounces its admin rights — the jetton can never be re-minted, frozen or upgraded (get_jetton_data() returns mintable = 0 and a zero admin).
Tokens trade on a constant-product curve with virtual reserves against one quote asset: native GRAM, stablecoins (USDT, USDe), gold (XAUt0, XAUH), majors (hGRAM, ENA), SP500 and the xStocks (Apple, Tesla, Alphabet, NVIDIA, Nasdaq, MicroStrategy, Amazon, Robinhood, Coinbase, Anthropic), or a TON memecoin (GROYP, UTYA, NOT, REDO, XROCK, MY, CHERRY, HPO, LAMBO). When the raise reaches the pair's cap the curve migrates by itself: the net raise is paired with up to 300,000,000 tokens (30% of supply) at the final curve price and seeds a fresh DeDust CPMM v2 pool whose liquidity is locked forever. BTC and ETH pairs (on hold) will graduate to STON.fi exclusively, never DeDust.
GET /api/public/config (see Bots & terminals) and never hard-code caps, quotes or gas.Architecture
| BondingCurveMaster | Immutable factory. Holds the quote whitelist, caps, migration fees and both curve codes. Deploys one curve per launch at a deterministic address. Admin and treasury are the 3-of-5 multisig. |
| BondingCurve | Per-launch AMM for jetton-quoted pairs. Custodies the token supply and the quote raise, prices trades, splits fees on-chain, executes graduation. |
| BondingCurveNative | Same AMM for GRAM pairs: buys are plain GRAM messages, sells are token transfers. |
| JettonMinter / JettonWallet | Standard TEP-74 pair. One-shot mint, admin revoked to the zero address in the same transaction. |
| DeDust CPMM v2 | Pool deployed by the curve at graduation (jetton pairs: assetX = token, assetY = quote; GRAM pairs: assetX = GRAM, assetY = token). 100% of the LP is locked in the pool for good; only the curve itself can ever deposit. |
Addresses
| Master (new launches) | EQCzhG2WrCCM_sscCd-VydJ2WRBobHBI0kP6mVOWqDoS1JK_ |
| Earlier masters (still trading) | EQDC3JxXq_IUSiCwGRB6SdmvlLgNT8uTjXfAN8bvcQ-c6YP7 |
| EQBLLYmuwZUpNKiNx8hwfTRo1LeLHx7jYYSkGOuNip2Sslzu | |
| EQC_cS7HCZkuoomMxDVBFKl01h78VmpcZJjHh41NyiAGple9 | |
| EQCttxGf3-Nm-yo1AmhCY1VaW-8jRiE-_Bim8GEsgakiG6J_ | |
| EQCt5a4SjpoxxP4gtJOKVq2DxYaw7JwKaJrVZjHkmHcH0_rN | |
| EQDkdC5-1OSvUR7gk-WTAzqdNWMYxQqUxFiw0Wvj2Y3LBbgP | |
| EQA3QsiH-T6j7PlqUyUoGykqrnTFoys006VJ5Ea7qBZFwMlR | |
| EQCjKAPmQiPbLEKhuMw3HDpY7_-O-cYThipwATafnnO4eydi | |
| EQAd5W4QtMF035MlUairFG2t_XGyfM9n4-7sZzJ30fBGbERn | |
| EQASjYC2NQvWN0O-deM4ZjttP3HavXHUnqVD1R9OWMp3S2AO | |
| GRAM quote sentinel | EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c |
| Quote · USDT | EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs |
| Quote · XAUt0 | EQA1R_LuQCLHlMgOo1S4G7Y7W1cd0FrAkbA10Zq7rddKxi9k |
| Quote · SP500 | EQB1fyBAA9qQDP6LEGaF3cbU-Xbr-p6ESBZGnqlHkHIHAJZv |
| Quote · AAPLx | EQDsjAwfKo-6FVZv2EYt-1CaZTY_ZL-pfkSId6jeQchNwmdo |
| Quote · TSLAx | EQB4IwqWZPUczntdry8vSN2tsJKt-9F7iIb7gEFREYYOB563 |
| Quote · GOOGLx | EQALwJzXnxFjckNsurCi9O2kVg_0b1KdtjOSfvOedlY37iZc |
| Quote · NVDAx | EQCva-Of7acQdU_piADdlcbzsFtA-xJwZoctz8ZOXBdBoaB8 |
| Quote · QQQx | EQCe6utwqROmrO_cOUUvVNYkvyecUjfugtugvhUwlVYSEm7x |
| Quote · MSTRx | EQBbsLYH5sD74gYO4DOoj0QsHaNL81NLD13AdhkmD0Up-46H |
| Quote · AMZNx | EQCtD2-7qxHhQoNhxri2JSzH-dlmWqKYCDtlEZqRi3-56gd9 |
| Quote · HOODx | EQAHz1jK27NO5IdHrht8146-EFz9p4kSZZx2H1xXuNQOYp_r |
| Quote · COINx | EQCvk4Oq2l5Yts_S7Q4j08fB9Ftzx3IY-7UI1AqssyKGDt_I |
| Quote · ANTx | EQBfYiMWCUDvFdzfVt-0QcsUMOUTQlS6HdNKh429jsq4AkvH |
| Quote · USDe | EQAIb6KmdfdDR7CN1GBqVJuP25iCnLKCvBlJ07Evuu2dzP5f |
| Quote · BTC (not launchable) | EQDhyPzbIjJT_WnY3gGprjSYUK9fiGMjWMezxO8MZiUdfb_B |
| Quote · ETH (not launchable) | EQBTkLAhEteZCRgRe_xMs5ZE0bMrduYxKbyzGCpXXW8dRWOT |
| Quote · UTYA | EQBaCgUwOoc6gHCNln_oJzb0mVs79YG7wYoavh-o1ItaneLA |
| Quote · GROYP | EQAtwo6qMNwtr0iTA9eKVZ32cuACFJ0VKd78GrBWOe83-X1P |
| Quote · REDO | EQBZ_cafPyDr5KUTs0aNxh0ZTDhkpEZONmLJA2SNGlLm4Cko |
| Quote · XROCK | EQAVfEY2iKSpEkUhgFLFWAgHeSz2NH2XV-MvDuiKF5plSbsU |
| Quote · NOT | EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT |
| Quote · MY | EQCFVNlRb-NHHDQfv3Q9xvDXBLJlay855_xREsq5ZDX6KN-w |
| Quote · STON (not launchable) | EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO |
| Quote · DUST (not launchable) | EQBlqsm144Dq6SjbPI4jjZvA1hqTIP3CvHovbIfW_t-SCALE |
| Quote · hGRAM | EQDPdq8xjAhytYqfGSX8KcFWIReCufsB9Wdg0pLlYSO_h76w |
| Quote · ENA (not launchable) | EQAFhZFZYye0llsl785OzOJG9QT6PXyYUdmiC4U95lBuHh1S |
| Quote · XAUH | EQCMk4_OujCnk46jApHnIRbmTtYTkSmfujV9X8Ye0qvsHVKh |
| Quote · CHERRY | EQBKRSNRkeP1-2jcg5T_f__0s5Hj-vrbfNLMQy8dnZs7xd_p |
| Quote · HPO | EQDQEUr0LPi8m6D6F0Wrvuok7tZbAcr0yn2Y7hK291MMzMjM |
| Quote · LAMBO | EQDE1iPrP80L17RzkH3YluXsEcn5i-bPFfue259uMKKFE3h0 |
A curve address is deterministic from (master, creator, quote_master, salt), so it can be computed before the deploy transaction lands. GRAM pairs use the GRAM sentinel as quote_master and the GRAM curve code; the master's get_curve_address(creator, quote_master, salt) picks the right code for you.
state_init = { code: curve_code /* or native curve code for GRAM */, data:
begin_cell()
.store_address(master)
.store_address(creator)
.store_address(quote_master)
.store_uint(salt, 64)
.end_cell() }
curve = address_of(state_init)Verify before you sign
No contract can protect you against a hijacked domain or a tampered front end. The values below are fixed and public — before approving a launch or a trade, check that the destination shown by your wallet is the master address here, and that the curve's code hash matches one of these. If either differs, the page you are on is not TopBlast.
| Master | EQCzhG2WrCCM_sscCd-VydJ2WRBobHBI0kP6mVOWqDoS1JK_ |
| Curve code hash (jetton pairs) | |
| Curve code hash (GRAM pairs) | |
| Official domains | topblastv2.lol · www.topblastv2.lol · topblast.lol |
Current launcher (Round 34)
New launches have used the Round 34 launcher since 17 November 2026. It keeps every feature of Round 33 (optional whale protection, Dividend mode, hot potato pots, leftover-token burn at migration) and adds the fixes from an external security review of the LP deposit path:
- LP deposits need the real swap result. The id that links an LP swap to its deposit is only a label, not a secret. The held half joins the pool deposit only when the swap delivered at least the agreed minimum of tokens, and a refused swap is folded back only when it returns at least what was swapped.
- No unprotected LP swaps. The operator key cannot start an LP swap with a minimum of 0, and cannot replace a pending swap for 1 hour. Read
get_lp_relay_state()on the curve. - Stray pool payments stay in LP. On token pairs, quote the pool sends back without a known tag goes to the curve's LP share.
- Fair refund clock. If a migration is rewound, the 7-day refund window starts again from that moment.
All six contracts are source-verified on verifier.ton.org: the verifier rebuilt our source and got the exact code running on chain. Explorers show these contracts as verified for every launch from this launcher. Launches from earlier launchers keep trading on their own, unchanged code.
| Contract | Code hash (opens verifier.ton.org) |
|---|---|
| Launcher (master) | c472b46e6264b6a9c73a682ba6bb54a39d69d8aa28978ad8649abcc55201bd86 |
| Curve, token pairs | f725692bed1877e40a131024cf52c11057b8418dea62f0864e55da32ab874c20 |
| Curve, GRAM pairs | 99079bd3dac1c4a9b100ab7928be072469f47fc832cd49d0916630069fca2cd5 |
| Token (jetton minter) | 5f62bc5e69e0f74eec12534ec6bc45c857a0e38f2118938da178bef14811c1d7 |
| Token wallet | bc53ef070cfe02e3078140e4782b1cc7754e4cb2786d34cfc05a7757fd4edd30 |
| Hot potato pot | 22f8f29d682186658477477a60b3f5399341940d3581d5665f12ee61071ddc7d |
Curve math
Constant product over virtual reserves. The virtual quote reserve starts at cap ÷ 2 and the virtual token reserve at 1,050,000,000 tokens, so the curve sells 700,000,000 tokens (70% of supply) by the cap. At migration up to 300,000,000 tokens (30%) seed the DeDust pool at the final curve price. On the current launcher the curve burns any leftover tokens as soon as DeDust confirms the pool deposit, so explorers show the real supply (below 1,000,000,000). On earlier launchers the leftover stays locked in the curve for good and the explorer still shows 1,000,000,000.
reserve_quote = cap / 2 + raised
reserve_token = 1_050_000_000 * 10^6 - sold
buy: swap_in = amount_in - amount_in * 1%
amount_out = swap_in * reserve_token / (reserve_quote + swap_in)
sell: gross_out = amount_in * reserve_quote / (reserve_token + amount_in)
amount_out = gross_out - gross_out * 1%The fee is always taken in the quote asset — buyers pay it on the way in, sellers on the way out. Traders never pay fees in the launched token. The migration seeds raised − migration_fee + LP fees collected during bonding of quote.
| Pair | Cap (new launches) |
|---|---|
| USDT | 2,500 USDT |
| XAUt0 | 0.650473 XAUt0 |
| SP500 | 3.37711 SP500 |
| AAPLx | 7.08289 AAPLx |
| TSLAx | 6.59016 TSLAx |
| GOOGLx | 8.78904 GOOGLx |
| NVDAx | 15.9425 NVDAx |
| QQQx | 3.76984 QQQx |
| MSTRx | 24.2109 MSTRx |
| AMZNx | 9.6582 AMZNx |
| HOODx | 34.8871 HOODx |
| COINx | 20.9263 COINx |
| ANTx | 26.1753 ANTx |
| USDe | 2,500 USDe |
| GRAM | 2,000 GRAM |
| UTYA | 79,148.5 UTYA |
| GROYP | 79,084.8 GROYP |
| REDO | 61,384.9 REDO |
| XROCK | 66,739.7 XROCK |
| NOT | 8,091,450 NOT |
| MY | 87,631.1 MY |
| hGRAM | 1,979.24 hGRAM |
| XAUH | 20.173 XAUH |
| CHERRY | 195,340,000 CHERRY |
| HPO | 509,560 HPO |
| LAMBO | 9,923,610 LAMBO |
Trading (buy / sell)
Sells are always a TEP-74 transfer#0f8a7ea5 of the launched token to the curve with a trade forward payload. Buys depend on the pair: on jetton-quoted pairs you transfer the quote jetton to the curve the same way; on GRAM pairs you send GRAM straight to the curve with the payload as the message body.
| Op | Value | How |
|---|---|---|
| buy | 0x42555921 | quote jetton transfer to the curve, or a GRAM message to a GRAM curve |
| sell | 0x53454c4c | token transfer to the curve |
TradePayload = op:uint32 query_id:uint64 min_out:Coins
// inline in the forward payload, or as its ^ref; no other fields are read.
// Output always goes to the wallet that sent the input.
// Jetton pair — buy 100 USDT (or sell: send the token with op 0x53454c4c)
transfer(
amount: 100_000000,
destination: curve,
response_destination: sender,
forward_ton_amount: 0.26 GRAM, // message value 0.38 GRAM
forward_payload: begin_cell()
.store_uint(0x42555921, 32)
.store_uint(query_id, 64)
.store_coins(min_out)
.end_cell()
)
// GRAM pair — buy with 10 GRAM
internal(
to: curve,
value: 10 GRAM + 0.12 GRAM, // amount in + gas
body: begin_cell()
.store_uint(0x42555921, 32)
.store_uint(query_id, 64)
.store_coins(min_out)
.end_cell()
)Gas. The curve refuses any trade notification carrying less than 0.2 GRAM and returns the input. Attach the amounts from gasNano in the config: 0.38 GRAM total / 0.26 GRAM forward for a normal trade, 1.35 / 1.2 for a buy that fills the cap (it triggers migration). GRAM-pair buys attach the input plus 0.12 GRAM. Unused gas stays in the curve as its own reserve for migration and fee collection; it is not refunded.
get_whale_cap() on the curve. Launches from earlier launchers have no such getter and always enforce the limit. Every launch post in the topblast.lol Telegram channel says "Whale protection: ON" or "OFF" so traders know before they buy.A trade the curve cannot fill — min_out not met, curve already graduated, cap already reached, wrong asset, too little gas, or a trade that arrives before the curve has learned its own quote wallet right after launch — is returned to the sender instead of throwing, because a failing notification cannot undo a jetton transfer. A transfer with no or a malformed payload is also returned when it carries at least 0.05 GRAM; below that it is kept. Always attach the payload.
Refund reasons (current launcher). Every returned or partly returned trade carries refund_reason#52464e44 query_id:uint64 reason:uint8 as the jetton forward payload (token pairs) or as the GRAM message body (GRAM pairs), and the curve also emits it as an external-out log. query_id echoes the trader's own query id, so a bot can match the refund to its order: on token pairs it is the query id of the jetton transfer, on GRAM pairs the query id in the buy body. Launches on earlier launchers return trades without a reason.
| Code | Reason | Meaning |
|---|---|---|
| 1 | curve_closed | Curve is full or already migrated — re-route to the DeDust pool |
| 2 | not_live | Trading has not opened yet |
| 3 | creator_window | First 30 s after go-live: only the creator can buy |
| 4 | wallet_limit | This wallet already bought its 2% — full input returned |
| 5 | wallet_limit_partial | Filled up to the 2% wallet limit, the rest returned |
| 6 | cap_partial | Filled up to the cap, the rest returned (the curve then migrates) |
| 7 | slippage | Output below min_out — full input returned |
| 8 | low_gas | Not enough GRAM attached |
| 9 | wrong_asset | Wrong jetton for this operation |
| 10 | malformed | Forward payload could not be read |
| 11 | wrong_workchain | Trader wallet is outside the basechain |
| 12 | invalid_sell | Sell amount out of range |
Fees
Every buy and sell pays a 1% trading fee, always denominated in the quote asset. Buyers pay it on the way in, sellers on the way out. Traders never pay fees in the meme token. The fee rate is fixed per launch at creation and readable with get_fee_config().
| Pairs | Fee | Distribution |
|---|---|---|
| GRAM, USDT, USDe | 1% | Creator picks Creator or Community fees. Creator: 55% treasury (paid all the time) · 25% creator · 10% LP · 10% buyback + burn. Community: 55% treasury · 22% LP · 23% buyback + burn — the creator share is folded into LP and burns. LP, burn and creator shares start after migration. |
| Dividend mode (Round 32+ launchers) | 1% | 55% treasury · 15% dividends to the top 50 holders · 10% creator · 10% LP · 10% buyback + burn. GRAM pairs only. Each 6-hour round pays a flat 5 GRAM to every eligible top-50 holder once 250 GRAM is waiting (max 250 GRAM per round, transfer gas reserved from the dividend balance); the rest waits for the next round. A multisig-approved CTO permanently ends both creator rewards and dividends: their combined 25% becomes 12% LP + 13% burns, giving 55% treasury / 22% LP / 23% burns. Unspent rewards convert too; already-sent transfers cannot be recalled. Available on GRAM launches made on the Round 32 launcher or newer. Holders can send /subscribe WALLET to @topblastctobot to get a private message for every payout and when they drop out of the top 50. |
| GOLD & majors, memecoins | 1% | Community fees only: 55% treasury (paid all the time) · 22% LP · 23% buyback + burn (both after migration). Only memecoin-quoted pairs (GROYP, UTYA, NOT, …) burn the quote memecoin itself; every other pair, gold and majors included, buys back the launched token and burns it. LP stays in the token's pool as usual. |
| Stocks (memestocks) | 1% | 60% top 200 holders (after migration) · 20% LP (after migration) · 20% treasury (all the time) |
After migration: the DeDust pool also charges 1% on every swap, in the quote asset only. DeDust keeps 20% of that fee for its protocol (fixed by DeDust). The other 80% accrues to the launch contract's 100%-locked LP position. The contract collects it back to itself without ever touching the locked liquidity and splits it on-chain in exactly the proportions above: the treasury share goes straight to the multisig, the creator share waits in the contract until the creator claims it on /claim, the LP share is added back into the locked pool, and the burn / holder share is used every three-hour cycle (stock holder rewards every six hours). Example on a creator launch: of the pool fee, 44% treasury, 20% creator, 8% LP, 8% buyback + burn, 20% DeDust.
How the 55% treasury cut is used: it is held in the multisig treasury and distributed manually: 5% to GROYP+NFT holders, 15% to the Parabola tournament, 15% to operating costs and 65% to buybacks of $GROYP.
Creator fees, burns and LP only start after bonding. Creators can't pull fees from a token that never reaches DeDust, so everyone has a reason to hold and push the token to migration. Burns buy the token back from its DeDust pool and burn it, once a token's burn share reaches $100. The LP share is added to the locked DeDust pool through the launch contract every three-hour fee cycle (only the launch contract can deposit); the LP share collected before bonding is added to the pool at graduation.
Memestocks: holder rewards go to the top 200 holders every six hours, starting only after migration to DeDust. 50% of the 20% treasury cut is invested into stock pools on TON and held in UQA1PmH68WqdRGF72s7K1cVoI0-M9r3uiEfZhCd3Qc2FDlzB.
Dividend mode
Dividend mode is a creator launch option from the Round 32 launcher on, GRAM pairs only. The trading fee stays a single 1% and the treasury share stays 55%; what changes is the creator's cut: it drops from 25% to 10% and the freed 15% is paid out to the top 50 holders after graduation.
- Each 6-hour round pays a flat 5 GRAM to every eligible top-50 holder — once, no repeats for the same round.
- A round only runs once 250 GRAM is waiting and at least 50 eligible holders exist; max 250 GRAM per round and max 5 GRAM per wallet per round.
- No catch-up: a skipped round doesn't stack. The dividend balance just keeps accumulating until the next round qualifies.
- Transfer gas for the round is reserved from the dividend balance itself.
- A multisig-approved community takeover permanently ends both creator rewards and dividends: their combined 25% becomes 12% LP + 13% burns (55% treasury / 22% LP / 23% burns). Unspent rewards convert too; already-sent transfers cannot be recalled.
- Holders can send
/subscribe WALLETto @topblastctobot on Telegram for a private message on every payout and when they drop out of the top 50.
The mode is a launcher-round feature: only a master that reads the create_launch dividend bit can deploy it, so launches on earlier launchers can never be turned into dividend launches after the fact.
Hot potato pots
A creator of a GRAM-paired launch can add an optional GRAM prize pot (10 to 10,000 GRAM) and pick a minimum buy from 5 to 100 GRAM. Every buy of at least that amount restarts a 15-minute countdown, on the bonding curve and, after graduation, in the DeDust pool. When the countdown runs out, the last qualifying buyer wins the whole pot. The 1% fee and its split are unchanged; the pot comes only from the creator.
- The creator's own buys never count, and nor do TopBlast's own wallets (buybacks, LP deposits).
- The creator's first deposit also pays the referee a fixed 0.15 GRAM once (on top of the pot), so it always has the gas to start the countdown and send the payout or the return.
- Buys through apps and routers (Omniston, aggregators) count for the wallet that finally receives the tokens.
- Times come from the blockchain. A buy landing exactly 15 minutes after the last reset is too late.
- If nobody makes a qualifying buy within 7 days of launch, anyone can return the pot to the creator after a 1-hour grace period (
PRCL); the referee does it automatically.
Each pot sits in its own PotVault contract, deployed and funded in the same wallet approval as the launch. A dedicated referee wallet watches the chain and is the only key that can start the countdown (PSTA) and name the winner (PAYW). The vault pays out exactly once, never to the creator or the curve, refuses a payout until 15 minutes after the last reset it is given, and the creator cannot withdraw a running game. The referee key has no other role anywhere: it cannot touch curves, fees, LP, the treasury or the multisig.
| Get-method | Returns |
|---|---|
| get_pot_state() | (referee, creator, curve, minBuy, createdAt, started, startedAt, lastReset, paid, winner) — paid: 0 running, 1 won, 2 returned; winner equals the curve until paid |
Live status: GET /api/public/pots (all pots) and GET /api/public/pots?curve=EQ… (one pot with the last 50 buys that restarted the timer). GET /api/public/tokens/{address} also carries a pot summary (status, pot, minimum, endsAt, leader, winner).
Telegram: every running pot gets one live post in the topblast.lol launch channel, edited as the game runs (countdown, pot size, last buyer, buy buttons), with a "30 seconds left" warning and a winner post linking the payout transaction. Approved community takeovers are announced in the same channel.
Trust & risks
- Operator key. An automated hot key (the contracts call it "opsMultisig") triggers fee collection, holder-pool claims and LP deposits. Every payout it can trigger is hard-wired to the treasury multisig, the creator or the fixed payout wallet — it can never send funds elsewhere. On the current launcher each curve pays that gas from its own leftover trade gas, at most once per 2.5 hours per job and never below a 0.5 GRAM floor, so the key cannot drain a curve. Rescue deposits (FSED), resending a bounced seed leg (RSND), re-sending a bounced leftover burn (BRNL) and the 7-day refund (ESCP) are open to anyone. On the current launcher a migration only counts as final once DeDust confirms the deposit, so a late refund from DeDust still reopens the rescue paths. From Round 34 the key also cannot start an LP swap without a minimum or replace a pending one for 1 hour, and a deposit only goes ahead with the swap's real result.
- 7-day refunds pay the average price. If a full raise cannot migrate for 7 days, holders can redeem tokens for
raised × tokens / sold. That is the average curve price, so early buyers get back more than they paid and late buyers less. - The 2% per-wallet limit is optional and per address. Round 33+ launches may have no limit at all, so one wallet can buy a large part of the curve. Where it is on, several wallets can each buy 2%, and wallets beyond the first 4,096 buyers are not tracked. The creator is exempt on their own launch.
- Quote-asset issuers. USDT, xStocks and XAUt0 issuers can freeze wallets. A frozen launch-contract wallet would strand that launch's raise.
- Community takeover. On Creator-fee launches (GRAM and stablecoin pairs) the treasury multisig can approve a takeover once the applicant has burned at least 1% of supply and attached the burn transactions (up to 48 h review). Launches on the current launcher support it on every Creator-fee pair; on earlier launchers only GRAM pairs do. Afterwards the creator share goes to burns and LP for good, never to any wallet, and
get_fee_config()reportscreator_bps = 0.
Get-methods
Every curve (jetton and GRAM pairs) exposes:
| Method | Returns |
|---|---|
| get_curve_data() | (raised, cap, sold, graduated, quote_master, meme_master, creator) |
| get_meme_out(quote_in) | tokens out for a quote input, 1% fee included |
| get_quote_out(meme_in) | quote out for a token input, 1% fee included |
| get_graduation_data() | (graduated, pool, lp_locked, lp_unlock_at, treasury) — pool is the DeDust CPMM v2 pool once graduated |
| get_fee_config() | (creator_bps, treasury_bps, lp_bps, fee_bps) — the launch's fee mode; creator_bps = 0 means Community, Holder rewards or taken over |
| get_fee_bps() | trading fee in bps (100) |
| get_fee_to() | who the creator share is owed to (the creator, or the payout wallet after a takeover) |
| get_creator_pool() / get_holder_pool() / get_lp_pool() | fee shares accrued and not yet paid out |
| get_seed_state() | (seed_quote, seed_meme, bounced_legs) — last migration attempt; bounced_legs > 0 means anyone can finish it with RSND |
| get_round31_state() | (seeded, leftover_burned, lp_relay_in_flight) — Round 31 and newer launchers. seeded = DeDust confirmed the pool deposit, so the migration is final; leftover_burned = the leftover tokens were burned (if a burn ever bounced, anyone can re-send it with BRNL#42524e4c) |
| get_self_gas() | (spare_gas, next_harvest_at, next_relay_at) — the curve's own gas reserve above 0.5 GRAM (current launcher) |
| get_lp_relay_held() | quote held back for the next LP deposit (current launcher) |
| get_lp_relay_state() | (in_flight, started_at, min_out, quote_swapped) — the pending LP swap; it cannot be replaced for 1 hour (Round 34+) |
| get_whale_cap() | true when the 2% per-wallet limit is on (Round 33+; earlier curves have no getter and always enforce it) |
| get_holder_payout() / get_ops_multisig() / get_vaults() | pinned payout wallet, operator key, legacy vault fields |
The master and every token minter expose:
| Method | Returns |
|---|---|
| master.get_curve_address(creator, quote_master, salt) | the curve address a launch will deploy to |
| master.get_quote_config(quote_master) | (vault, cap, migration_fee, decimals, creator_bps, treasury_bps, lp_bps) |
| master.get_quote_enabled(quote_master) | non-zero when new launches on this pair are accepted |
| master.get_quote_community_only(quote_master) | non-zero when the pair has no Creator fee option |
| master.get_master_data() | (admin, treasury, curve_code) |
| minter.get_jetton_data() | TEP-74: (supply, mintable = 0, admin = zero, content, wallet_code) |
| minter.get_wallet_address(owner) | TEP-74 wallet address |
Indexing
Launches are created with create_launch#4c414e43 sent to the master, and the master emits an external-out log for every launch. Subscribe to outgoing external messages from every master in masters of the config — earlier launchers keep trading and migrating:
launch_created#4c4e4344 query_id:uint64 curve:MsgAddress creator:MsgAddress quote_master:MsgAddress // GRAM pairs: the GRAM sentinel salt:uint64 metadata:^Cell // TEP-64 onchain content (name, symbol, image, socials) community:uint1 // 1 = Community fees dividend:uint1 // Round 32+: 1 = Dividend mode fee_bps:uint16 // 100 whale:uint1 // Round 33+: 1 = 2% per-wallet limit on (absent = on)
A creator can re-send create_launch for a live curve: the curve refuses and refunds them, but the master still emits a second log. Always keep the first log per curve (lowest logical time) and read the fee mode from get_fee_config(), never from a later log.
Poll get_curve_data() for live progress; the raise percentage is raised / cap. Graduation is signalled by graduated flipping to true; get_graduation_data() then returns the DeDust pool address. The token's jetton master is meme_master in get_curve_data() — trading bots should open tokens by that address, not the curve.
HTTP API
For platforms that want to list and track TopBlast launches without decoding contracts themselves, we expose a public read-only JSON API. No authentication, no API key — just cache responsibly (every response carries a Cache-Control window).
| Endpoint | Returns |
|---|---|
| GET /api/public/config | Live master, every earlier master, quote list with caps, decimals, category, launchability and fee options, curve constants and the gas to attach. Cached 300 s |
| GET /api/public/tokens | Static directory of launches across all known masters: identity, socials, quote pair, category, fee mode and cap. Newest 500, or paginated with ?limit=1–100 and ?cursor=. Cached 60 s (15 s when paginated) |
| GET /api/public/tokens/{address} | One launch in detail — accepts the curve or the token (jetton master) address in any EQ/UQ/raw form. Adds the jetton master, live raise, sold, graduation, pool, locked LP, pool reserves, price and the hot potato pot summary (or null). Cached 30 s |
| GET /api/public/burns | Graduated launches' confirmed burns, plus nextBurn: the quote booked for the next buyback + burn (bookedRaw), the spend minimum (minRaw, $100), what's left (leftRaw) and ready. ?curve=EQ… also adds nextLpDeposit in the same shape. Raw quote units. Cached 60 s |
| GET /api/public/pots | Hot potato pots: status, pot and minimum buy in GRAM, endsAt (unix seconds), leader and winner. ?curve=EQ… adds the last 50 buys that restarted the timer. Cached 15 s |
| GET /api/public/helper/routes | Buy helper: supported pairs with their DEX and pool, the helper code hash, the launcher it builds for, the GRAM bounds and the build limits per minute. Cached 300 s |
| GET /api/public/helper/buy | One ready-to-sign GRAM buy on a launch paired with a jetton — see Buy helper below |
curl https://topblastv2.lol/api/public/tokens
{
"master": "EQCzhG2WrCCM…",
"next": null, // cursor for the next page when paginating
"tokens": [
{
"curve": "EQ…", // bonding curve contract
"name": "Example",
"symbol": "EXMPL",
"image": "https://…",
"description": "…",
"socials": { "website": "…", "telegram": "…", "twitter": "…" },
"creator": "UQ…",
"feeMode": "creator", // creator | community | holders | dividend
"feeBps": 100,
"createdAt": 1793000000, // unix seconds
"quote": { "id": "USDT", "symbol": "USDT",
"master": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"decimals": 6, "logo": "https://…" },
"category": "stable",
"cap": { "raw": "2500000000", "amount": "2500" }
}
]
}
// filter with ?category=stable,stocks — live state is NOT in this feedcurl https://topblastv2.lol/api/public/tokens/{address}
{
"master": "EQ…",
"token": {
"curve": "EQ…", "jetton": "EQ…", // jetton = token master
"name": "Example", "symbol": "EXMPL", "image": "https://…",
"description": "…", "creator": "UQ…",
"quote": { "id": "USDT", "symbol": "USDT", "master": "EQ…", "decimals": 6, "logo": "…" },
"category": "stable",
"raised": { "raw": "1250000000", "amount": "1250" },
"cap": { "raw": "2500000000", "amount": "2500" },
"soldRaw": "…",
"graduated": true
},
"graduation": {
"graduated": true,
"pool": "EQ…", // DeDust CPMM v2 pool, LP locked
"lpLockedRaw": "…",
"lpOwner": "EQ…",
"quoteInPool": "…", "memeInPool": "…",
"reserves": { "memeReserveRaw": "…", "quoteReserveRaw": "…" },
"price": { "quotePerToken": "0.0000083", "quoteSymbol": "USDT" }
}
}raw (integer, on-chain units) and amount (human string, converted with the quote's decimals). Token amounts use 6 decimals. Responses are 200 on success, 400 for a malformed address, 404 for an unknown token, 429 when you poll too fast and 503 if upstream indexers are lagging. All endpoints are GET-only, CORS-open and answer OPTIONS preflight.Everything these endpoints return is also readable directly on-chain — see Indexing above if you prefer to run your own indexer against the masters' launch_created#4c4e4344 logs and curve get-methods.
Bots & terminals
Everything a trading bot or terminal needs to route an order, in one place. Start from GET /api/public/config. Never hard-code its values: a new launcher changes caps, the quote list and the master.
curl https://topblastv2.lol/api/public/config
{
"network": "mainnet",
"master": "EQCzhG2WrCCM…", // new launches
"masters": ["EQ…", "EQ…"], // every launcher, newest first
"nativeQuote": "EQAAAAAAAAAA…", // GRAM pairs
"dedustFactory": "EQ…",
"meme": { "decimals": 6, "supply": 1000000000 },
"curve": {
"capUsd": 2500,
"virtualQuoteNum": 1, "virtualQuoteDen": 2, // virtual quote = cap * 1/2
"curveAllocationRaw": "1050000000000000", // virtual token reserve
"maxBuyPerWalletRaw": "20000000000000", // 2% lifetime cap, on launches with whale protection
"tradingFeeBps": 100
},
"gasNano": {
"curveTransfer": "380000000", "curveForward": "260000000",
"graduationTransfer": "1350000000", "graduationForward": "1200000000",
"dedustTransfer": "350000000", "dedustForward": "250000000",
"nativeBuyExtra": "120000000", "minTradeNotification": "200000000"
},
"quotes": [
{ "id": "USDT", "symbol": "USDT", "master": "EQ…", "decimals": 6, "logo": "https://…",
"category": "stable", "capRaw": "2500000000", "capUsd": 2500,
"migrationDex": "dedust", "holderPool": false, "feeBpsOptions": [100],
"launchable": true, "communityOnly": false }
]
}Discovery & categories
GET /api/public/tokens accepts an optional ?category= filter (comma-separated), and each token carries its own category, so a terminal can build tabs without a lookup table. Quotes with launchable: false take no new launches, but existing launches on them keep trading.
| Category | Quote assets |
|---|---|
| default | GRAM |
| stable | USDT, USDe |
| stocks | SP500 and the xStocks, including Anthropic (ANTx) |
| majors | XAUt0 and XAUH gold, hGRAM, ENA (BTC and ETH on hold) |
| memes | GROYP, UTYA, NOT, REDO, XROCK, MY, CHERRY, HPO, LAMBO |
GET /api/public/tokens?category=stable,stocks
Venue routing
One field decides where an order goes. While graduated is false, trade against the bonding curve at token.curve. Once it flips to true, the curve returns any trade sent to it and all liquidity lives in the DeDust CPMM v2 pool at graduation.pool (also get_graduation_data()). CPMM v2 pools take swaps directly — there is no vault:
// jetton in (token, or a jetton quote): jetton transfer to the POOL
forward_payload = PayJetton#cbc33949
payment: ^SwapPayload#c442500f min_out:Coins deadline:uint40
next:(Maybe ^SwapStep) partner:(Maybe) referrer:(Maybe)
payout: ^ExtendedPayoutConfig // recipient / excesses address
// GRAM in (GRAM pairs): message to the POOL, value = amount + gas
body = PayNative#a5a7cbf8 query_id:uint64 amount:Coins ^SwapPayload ^PayoutConfigPool assets: X = token, Y = quote on jetton pairs; X = GRAM, Y = token on GRAM pairs. Read reserves from the pool's get_pool_data() (ints 5 and 6 are reserveX, reserveY — CPMM v2 has no get_reserves). Locked liquidity is the curve's position (get_position_address(curve)), 100% locked; no LP jettons exist. The pool charges 1% per swap in the quote asset only; DeDust keeps 20% of it and the rest accrues to the launch's locked position. The detail endpoint returns pool reserves and the live quotePerToken price for post-graduation quoting.
Pricing an order on the curve
Quote locally from the constant-product formula in Curve math, or read the curve directly — get_meme_out(quote_in) and get_quote_out(meme_in) already include the 1% fee and are the authoritative quote. Derive min_out from that value and your slippage tolerance and put it in the trade payload; the curve refunds instead of filling when it cannot be met.
reserve_quote = cap / 2 + raised reserve_token = 1_050_000_000 * 10^6 - sold quote_in_net = quote_in * 99 / 100 token_out = quote_in_net * reserve_token / (reserve_quote + quote_in_net) min_out = token_out * (10000 - slippage_bps) / 10000
Outcomes a bot must handle
| Situation | What the bot sees |
|---|---|
| min_out not met | Full input returned in the same asset — no fill |
| Buy crosses the cap | Partial fill up to the cap, remainder returned; the curve then migrates |
| Buyer at the 2% lifetime cap (launches with whale protection) | Partial fill up to the remaining allowance, rest returned. Selling does NOT restore allowance |
| First 30 s after go-live | Buys from anyone but the creator are returned in full |
| Curve graduated | Input returned; re-route to graduation.pool on DeDust |
| Wrong asset sent | Returned to the sender through the wallet that sent it |
| Under 0.2 GRAM on the notification | Input returned; the gas attached is spent |
| Empty or malformed payload | Returned if it carries ≥ 0.05 GRAM, otherwise kept — always attach the payload |
Trades settle asynchronously: a curve processes messages one at a time, so a burst of orders fills sequentially at moving prices, typically within a few seconds each. Confirm a fill by polling the buyer's jetton wallet balance or the curve's get_curve_data() — never by assuming the transfer succeeded.
Buy helper (GRAM buys on jetton pairs)
A launch paired with a jetton (GROYP, REDO, UTYA, …) normally needs two steps: swap GRAM into the paired token on a DEX, then buy on the curve. The buy helper does both from one signature: the buyer sends GRAM to their own helper contract, the helper swaps it into the paired token, buys on the launch and sends the launch tokens to the buyer. It is there so terminals and bots can offer custom-pair buys without building DEX messages themselves.
| Pair | DEX | Swap route |
|---|---|---|
| GROYP | DeDust | CPMM v2 pool |
| REDO | STON.fi | v1 router (pTON wallet) |
| UTYA | DeDust | classic native vault |
| USDT | STON.fi | v1 router (pTON wallet) |
| CHERRY | STON.fi | v1 router (pTON wallet) |
| NOT | STON.fi | v1 router (pTON wallet) |
| MY | STON.fi | v2 router (pTON v2.1 wallet) |
| LAMBO | STON.fi | v2 router (pTON v2.1 wallet) |
Only Round 34 launches on these pairs are built. A pair is added only after it has been replayed on a copy of its own pool and tested with a real buy.
Two endpoints
GET /api/public/helper/routes GET /api/public/helper/buy?wallet=UQ…&token=EQ…&amount=1.5[&slippage=10][&swapSlippage=5]
wallet is the buyer's wallet, token the launch's token (jetton) or curve address, amount the GRAM to swap (0.5–2,000), slippage the launch tolerance in % (default 10, 0.1–50) and swapSlippage the DEX tolerance in % (default 5, 0.1–20). The answer is one TON Connect sendTransaction request — a single message to the buyer's own helper, with stateInit on the first buy — plus the quote it was built from. Sign it as-is.
{
"helper": { "address": "EQ…", "owner": "UQ…", "deployed": false, "codeHash": "e455692ef7d745fc87f1ed56abcd00087dd3d2abdec3cba5605f9a1f8fd0c446" },
"transaction": { "validUntil": 1793000090, "messages": [ { "address": "EQ…", "amount": "1830000000",
"payload": "te6…", "stateInit": "te6…" } ] },
"route": { "pair": "GROYP", "dex": "DeDust", "kind": "dedust_v2", "pool": "EQ…" },
"quote": { "gramIn": "1500000000", "gramRequested": "1500000000", "helperFee": "1500000",
"pairedExpected": "…", "pairedMin": "…", "tokensExpected": "…", "tokensMin": "…",
"launchSlippageBps": 1000, "swapSlippageBps": 500, "refundRate": "…", "priceAgeSecs": 1 },
"attached": "1830000000", "queryId": "…", "warnings": [],
"token": { "curve": "EQ…", "jetton": "EQ…", "symbol": "EXMPL", "name": "Example" }
}| Field | Meaning |
|---|---|
| transaction | the message to sign. validUntil is 90 s; the DEX swap inside it expires in 300 s, always below the helper's 10-minute stale window |
| attached | GRAM the wallet sends. Everything unused comes back |
| quote.gramIn / gramRequested | GRAM actually swapped / what was asked. They differ when the rest would go past the 2% limit or the cap (warning amount_reduced) — that GRAM never leaves the wallet |
| quote.helperFee | 0.1% of the swap leg's GRAM, attached with the buy and paid to the treasury only if the launch delivers tokens |
| quote.pairedMin / tokensMin | the swap's minimum payout and the launch's minimum token output — the two numbers a bot should show the buyer |
| quote.refundRate | the least GRAM per 1e9 paired-token units a refused buy swaps back at |
| quote.priceAgeSecs | how old the shared pool and curve prices behind this quote are |
| warnings | whale_protection_on · may_fill_curve · amount_reduced · ston_remainder · wallet_limit_unknown · helper_state_unknown |
What the buyer pays
The launch's normal 1% trading fee, the DEX's own fee and network gas, plus a 0.1% helper fee on the GRAM that was swapped — attached to the buy and paid to the TopBlast treasury multisig only when the launch delivers tokens. A buy the launch refuses, a cancelled buy and a bounced buy pay nothing, and the fee comes back with the rest. It is fixed in the contract code, readable with get_fee_state().
Refused buys come back as GRAM
Every build includes a return route. If the launch refuses the buy (creator window, 2% limit, slippage, closed launch), the helper swaps the paired token straight back to GRAM on the same DEX and the GRAM goes to the buyer. Only a buy the curve part-fills (up to the cap or the 2% limit) comes back as the paired token instead, because that part arrives after the tokens.
Answers a bot must handle
| Answer | What it means |
|---|---|
| 200 with a transaction | ready to sign — pass the message on unchanged |
| 422 unsupported_pair / launcher_not_supported | not a listed pair, or not a Round 34 launch |
| 422 launch_unverified | the address is not a Round 34 launch from an allowed launcher, or the token doesn't belong to it |
| 409 graduated / cap_reached | the launch is full — trade it on its DEX pool instead |
| 409 creator_window | first 45 s after go-live; retryAfter says when |
| 409 helper_busy | a buy is still running on this helper (one at a time) |
| 409 wallet_limit_reached | whale protection is on and this helper has already bought its 2% |
| 400 amount_too_small / amount_too_large / bad_slippage | fix the request |
| 503 prices_stale | shared prices are older than 10 s — retry after 5 s |
| 503 route_unavailable / quote_failed | the pool layout or wallet code changed, or no quote could be made |
| 429 | too many builds: 30 per minute per caller, 600 per minute for an approved partner key |
Verify before signing
The helper does exactly what its owner signs, and a wallet only shows “send X GRAM to your helper” — so whoever builds the message decides where the money goes. Run the safety checker on the exact message right before the wallet opens:
verifyHelperBuy({ owner, message, curve, pair, wallets })
-> { ok: true, summary } | { ok: false, problems }It re-decodes the buy and refuses anything that pays outside the buyer, their helper, a listed route or the launch the caller named, and it requires the helper's own jetton wallets. The endpoint runs the same check on every message it returns; a bot must pass the message on unchanged and never take the launch address from the message itself.
Recovery, and what the helper cannot do
A helper is a normal buyer and nothing more: it can only buy, it gets no creator exemption inside the first 30 s, and on whale-protected launches it is held to the same 2% limit as any wallet. It has no way to sell, withdraw from a curve, claim fees or touch migration. Only its owner can move anything, and the code is immutable — no admin, no upgrade. Leftovers are never lost: HCNL cancels a stuck buy and can close the helper, HWDJ withdraws tokens sitting in its wallets, and HSWB retries a swap back at a new rate. The getters get_helper_state(), get_return_state() and get_fee_state() show what is waiting; the helper keeps 0.08 GRAM for its own storage and returns the rest with the next buy or a close.
Error codes
Trades never throw — they are returned as described above. These exit codes appear on other operations (claims, migration pokes, admin actions):
| Code | Meaning |
|---|---|
| 200 | sender is not the master (initialisation) |
| 204 | curve already graduated / operation closed |
| 205 | not ready yet (cap not reached, wallet not resolved, too early) |
| 206 | not allowed (wrong sender for a protected action) |
| 207 | nothing to claim or retry |
| 208 | already initialised, pinned or taken over |
| 209 | not enough gas attached / reserve too low |
| 65535 | unknown op |