just topblast it.
← back to launch

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.

Launches happen on this site. Discovery, charts and secondary trading are indexed on topblast.lol. Integrators: start from GET /api/public/config (see Bots & terminals) and never hard-code caps, quotes or gas.

Architecture

BondingCurveMasterImmutable 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.
BondingCurvePer-launch AMM for jetton-quoted pairs. Custodies the token supply and the quote raise, prices trades, splits fees on-chain, executes graduation.
BondingCurveNativeSame AMM for GRAM pairs: buys are plain GRAM messages, sells are token transfers.
JettonMinter / JettonWalletStandard TEP-74 pair. One-shot mint, admin revoked to the zero address in the same transaction.
DeDust CPMM v2Pool 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 sentinelEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c
Quote · USDTEQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
Quote · XAUt0EQA1R_LuQCLHlMgOo1S4G7Y7W1cd0FrAkbA10Zq7rddKxi9k
Quote · SP500EQB1fyBAA9qQDP6LEGaF3cbU-Xbr-p6ESBZGnqlHkHIHAJZv
Quote · AAPLxEQDsjAwfKo-6FVZv2EYt-1CaZTY_ZL-pfkSId6jeQchNwmdo
Quote · TSLAxEQB4IwqWZPUczntdry8vSN2tsJKt-9F7iIb7gEFREYYOB563
Quote · GOOGLxEQALwJzXnxFjckNsurCi9O2kVg_0b1KdtjOSfvOedlY37iZc
Quote · NVDAxEQCva-Of7acQdU_piADdlcbzsFtA-xJwZoctz8ZOXBdBoaB8
Quote · QQQxEQCe6utwqROmrO_cOUUvVNYkvyecUjfugtugvhUwlVYSEm7x
Quote · MSTRxEQBbsLYH5sD74gYO4DOoj0QsHaNL81NLD13AdhkmD0Up-46H
Quote · AMZNxEQCtD2-7qxHhQoNhxri2JSzH-dlmWqKYCDtlEZqRi3-56gd9
Quote · HOODxEQAHz1jK27NO5IdHrht8146-EFz9p4kSZZx2H1xXuNQOYp_r
Quote · COINxEQCvk4Oq2l5Yts_S7Q4j08fB9Ftzx3IY-7UI1AqssyKGDt_I
Quote · ANTxEQBfYiMWCUDvFdzfVt-0QcsUMOUTQlS6HdNKh429jsq4AkvH
Quote · USDeEQAIb6KmdfdDR7CN1GBqVJuP25iCnLKCvBlJ07Evuu2dzP5f
Quote · BTC (not launchable)EQDhyPzbIjJT_WnY3gGprjSYUK9fiGMjWMezxO8MZiUdfb_B
Quote · ETH (not launchable)EQBTkLAhEteZCRgRe_xMs5ZE0bMrduYxKbyzGCpXXW8dRWOT
Quote · UTYAEQBaCgUwOoc6gHCNln_oJzb0mVs79YG7wYoavh-o1ItaneLA
Quote · GROYPEQAtwo6qMNwtr0iTA9eKVZ32cuACFJ0VKd78GrBWOe83-X1P
Quote · REDOEQBZ_cafPyDr5KUTs0aNxh0ZTDhkpEZONmLJA2SNGlLm4Cko
Quote · XROCKEQAVfEY2iKSpEkUhgFLFWAgHeSz2NH2XV-MvDuiKF5plSbsU
Quote · NOTEQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT
Quote · MYEQCFVNlRb-NHHDQfv3Q9xvDXBLJlay855_xREsq5ZDX6KN-w
Quote · STON (not launchable)EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO
Quote · DUST (not launchable)EQBlqsm144Dq6SjbPI4jjZvA1hqTIP3CvHovbIfW_t-SCALE
Quote · hGRAMEQDPdq8xjAhytYqfGSX8KcFWIReCufsB9Wdg0pLlYSO_h76w
Quote · ENA (not launchable)EQAFhZFZYye0llsl785OzOJG9QT6PXyYUdmiC4U95lBuHh1S
Quote · XAUHEQCMk4_OujCnk46jApHnIRbmTtYTkSmfujV9X8Ye0qvsHVKh
Quote · CHERRYEQBKRSNRkeP1-2jcg5T_f__0s5Hj-vrbfNLMQy8dnZs7xd_p
Quote · HPOEQDQEUr0LPi8m6D6F0Wrvuok7tZbAcr0yn2Y7hK291MMzMjM
Quote · LAMBOEQDE1iPrP80L17RzkH3YluXsEcn5i-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.

MasterEQCzhG2WrCCM_sscCd-VydJ2WRBobHBI0kP6mVOWqDoS1JK_
Curve code hash (jetton pairs)
Curve code hash (GRAM pairs)
Official domainstopblastv2.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.

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.

PairCap (new launches)
USDT2,500 USDT
XAUt00.650473 XAUt0
SP5003.37711 SP500
AAPLx7.08289 AAPLx
TSLAx6.59016 TSLAx
GOOGLx8.78904 GOOGLx
NVDAx15.9425 NVDAx
QQQx3.76984 QQQx
MSTRx24.2109 MSTRx
AMZNx9.6582 AMZNx
HOODx34.8871 HOODx
COINx20.9263 COINx
ANTx26.1753 ANTx
USDe2,500 USDe
GRAM2,000 GRAM
UTYA79,148.5 UTYA
GROYP79,084.8 GROYP
REDO61,384.9 REDO
XROCK66,739.7 XROCK
NOT8,091,450 NOT
MY87,631.1 MY
hGRAM1,979.24 hGRAM
XAUH20.173 XAUH
CHERRY195,340,000 CHERRY
HPO509,560 HPO
LAMBO9,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.

OpValueHow
buy0x42555921quote jetton transfer to the curve, or a GRAM message to a GRAM curve
sell0x53454c4ctoken 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.

Whale protection (optional): when a launch has it, each wallet can buy at most 20,000,000 tokens (2% of supply) on the curve over its lifetime, recorded on-chain per buyer; the excess input is refunded in the same transaction and selling does not restore the allowance. The launch creator is exempt on their own launch. There is no limit after migration. From the Round 33 launcher the creator chooses it at launch (off unless switched on) and it can never change afterwards; read 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.
Creator-first window: for the first 30 seconds after the curve goes live (when the full supply is minted to it), only the launch creator can buy, so the creator's initial buy is always the first trade. Any other buy in that window is refunded in full in the same asset.

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.

CodeReasonMeaning
1curve_closedCurve is full or already migrated — re-route to the DeDust pool
2not_liveTrading has not opened yet
3creator_windowFirst 30 s after go-live: only the creator can buy
4wallet_limitThis wallet already bought its 2% — full input returned
5wallet_limit_partialFilled up to the 2% wallet limit, the rest returned
6cap_partialFilled up to the cap, the rest returned (the curve then migrates)
7slippageOutput below min_out — full input returned
8low_gasNot enough GRAM attached
9wrong_assetWrong jetton for this operation
10malformedForward payload could not be read
11wrong_workchainTrader wallet is outside the basechain
12invalid_sellSell 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().

PairsFeeDistribution
GRAM, USDT, USDe1%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, memecoins1%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 WALLET to @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-methodReturns
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() reports creator_bps = 0.

Get-methods

Every curve (jetton and GRAM pairs) exposes:

MethodReturns
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:

MethodReturns
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).

EndpointReturns
GET /api/public/configLive 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/tokensStatic 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/burnsGraduated 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/potsHot 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/routesBuy 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/buyOne 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 feed
curl 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" }
  }
}
Amounts come in two forms: 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.

CategoryQuote assets
defaultGRAM
stableUSDT, USDe
stocksSP500 and the xStocks, including Anthropic (ANTx)
majorsXAUt0 and XAUH gold, hGRAM, ENA (BTC and ETH on hold)
memesGROYP, 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 ^PayoutConfig

Pool 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

SituationWhat the bot sees
min_out not metFull input returned in the same asset — no fill
Buy crosses the capPartial 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-liveBuys from anyone but the creator are returned in full
Curve graduatedInput returned; re-route to graduation.pool on DeDust
Wrong asset sentReturned to the sender through the wallet that sent it
Under 0.2 GRAM on the notificationInput returned; the gas attached is spent
Empty or malformed payloadReturned 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.

PairDEXSwap route
GROYPDeDustCPMM v2 pool
REDOSTON.fiv1 router (pTON wallet)
UTYADeDustclassic native vault
USDTSTON.fiv1 router (pTON wallet)
CHERRYSTON.fiv1 router (pTON wallet)
NOTSTON.fiv1 router (pTON wallet)
MYSTON.fiv2 router (pTON v2.1 wallet)
LAMBOSTON.fiv2 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" }
}
FieldMeaning
transactionthe 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
attachedGRAM the wallet sends. Everything unused comes back
quote.gramIn / gramRequestedGRAM 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.helperFee0.1% of the swap leg's GRAM, attached with the buy and paid to the treasury only if the launch delivers tokens
quote.pairedMin / tokensMinthe swap's minimum payout and the launch's minimum token output — the two numbers a bot should show the buyer
quote.refundRatethe least GRAM per 1e9 paired-token units a refused buy swaps back at
quote.priceAgeSecshow old the shared pool and curve prices behind this quote are
warningswhale_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

AnswerWhat it means
200 with a transactionready to sign — pass the message on unchanged
422 unsupported_pair / launcher_not_supportednot a listed pair, or not a Round 34 launch
422 launch_unverifiedthe address is not a Round 34 launch from an allowed launcher, or the token doesn't belong to it
409 graduated / cap_reachedthe launch is full — trade it on its DEX pool instead
409 creator_windowfirst 45 s after go-live; retryAfter says when
409 helper_busya buy is still running on this helper (one at a time)
409 wallet_limit_reachedwhale protection is on and this helper has already bought its 2%
400 amount_too_small / amount_too_large / bad_slippagefix the request
503 prices_staleshared prices are older than 10 s — retry after 5 s
503 route_unavailable / quote_failedthe pool layout or wallet code changed, or no quote could be made
429too 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):

CodeMeaning
200sender is not the master (initialisation)
204curve already graduated / operation closed
205not ready yet (cap not reached, wallet not resolved, too early)
206not allowed (wrong sender for a protected action)
207nothing to claim or retry
208already initialised, pinned or taken over
209not enough gas attached / reserve too low
65535unknown op