For the complete documentation index, see llms.txt. This page is also available as Markdown.

Token Information

Query token details, bonding curve progress and launch status.

Get token information

Use getTokenState to query a token’s launch configuration, bonding curve data and graduation status.

const blockNumber = await publicClient.getBlockNumber();
const state = await client.getTokenState(token, { blockNumber });

The result includes:

  • state.record: launch configuration, including the curve address, quote token and creator.

  • state.curveState: current reserves, available tokens and graduation readiness.

  • state.graduation.status: launch status — notGraduated, swept, poolCreated or emergencyExited.

getCurveProgress measures tokens sold as a share of initialSupply - reservedTokens. It reaches 100% when the sellable reserve is exhausted. Check graduation status to confirm that the AMM pool is ready.

Validate a token

For user-supplied addresses, call isLaunchToken before reading token data. Registry getters return zero-filled values for unknown addresses.

if (!(await client.isLaunchToken(token))) throw new Error("not a launch token");

Keep data up to date

  • Use the same blockNumber for related reads so they reflect the same point in time.

  • Refresh curve data before quoting and graduation status after a transaction confirms.

  • Launch economics are fixed at creation. Creator fee recipients and buyback settings can change; refresh them after update events.

Direct contract calls

SDK equivalents: getCurveAddress, getLaunchRecord and the configuration/state readers. These view calls need no allowance or wallet signature.

  • curveFor(address token) → address curve: resolve the token's trading contract. A zero address means it is not registered here.

  • getLaunchedToken(address token) → LaunchedTokenRecord: token, curve, creator, fee recipient, quote asset and immutable launch economics.

  • validateAndResolve(address quoteToken, uint256 launchConfigId) → (LaunchConfig, QuoteTokenEconomics): validate the selected quote asset and template.

  • canLaunch(address creator) → bool: check the current launch gate. Also read feePolicy(), snipeTaxConfig(), launchFeeToken(), launchFee(), maxCreatorTaxBps() and maxCreatorInitialBuyBps() before creation.

Read configuration at one block. Existing curves retain their snapshots: use feePolicySnapshot(), snipeTaxConfigSnapshot() and the launch record when quoting an existing token.

Last updated

Was this helpful?