Pair discovery
GET the launchable pair directory and retain xStock entries. Resolve identity to the exact mint.
txttostonkSYNCING VIEWRESOLVING PUBLIC STATE
txttostonkDeveloper reference
Public syntax, high-level API behavior, safe environment names, worker operation, and mock-mode troubleshooting.
Field order is fixed. Attach exactly one JPEG, PNG, or WebP photo. Ticker accepts 1-10 bytes from A-Z and 0-9. An optional quoted name may follow.
@txttostonk launch stock=NVDAX ticker=MYTKNstock: current StonkFun symbol
ticker: 1-10 bytes
photo: exactly one attachment
name: optional, 1-32 bytes
txttostonk uses the public StonkFun interface. This summary intentionally omits credentials and internal provider payload details.
GET the launchable pair directory and retain xStock entries. Resolve identity to the exact mint.
Fetch the exact X photo and create time-limited transaction context for the dedicated launcher.
Verify the fee payer, transfer-only instructions, exact quote, and spending cap; persist the signature before broadcasting once.
Query by the exact recorded signature. Never prepare, pay, or broadcast again during processing.
Use mock mode locally. The default SQLite file is suitable for development, not a durable multi-instance production worker.
pnpm install
cp .env.example .env.local
pnpm test
pnpm devThe polling worker needs durable process execution, durable state, one-reply idempotency, and an operational owner.
pnpm x:worker
# Keep one durable worker process.
# Do not run the worker inside a short-lived web function.Values belong in local or deployment secret storage. Use a dedicated limited-balance launcher, never the main treasury or recovery wallet. Never commit secrets or expose them to the browser.
NEXT_PUBLIC_APP_URLNEXT_PUBLIC_SOLANA_RPC_URLNEXT_PUBLIC_SOLANA_CLUSTERNEXT_PUBLIC_X_BOT_HANDLEMOCK_LAUNCHAUTO_LAUNCH_ENABLEDAUTO_LAUNCH_MAX_LAMPORTSAUTO_LAUNCH_ALLOWED_USER_IDSAUTO_LAUNCH_MAX_COUNTTXTTOSTONK_LAUNCHER_SECRETTXTTOSTONK_TREASURY_WALLETDATABASE_URLX_BOT_HANDLEX_BOT_USER_IDX_BEARER_TOKENX_API_KEYX_API_SECRETX_ACCESS_TOKENX_ACCESS_TOKEN_SECRETConsent. State what mentions are read and why before automation is enabled.
One reply. Use the source post ID as an idempotency key so one interaction gets at most one response.
Opt out. Publish a clear way to stop automated replies and worker processing.
Deletion. Define how a user can request removal of stored social identifiers and drafts where legally and operationally possible.
Pair unavailable:
refresh discovery and verify the exact mint is still launchable.
Wrong signer:
verify the dedicated launcher public key matches the configured Treasury address.
Processing:
reconcile the stored payment signature. Do not retry preparation.
Ephemeral database:
run the X worker only after durable shared storage is installed.