Skip to main content
Paste this into an HTML page and replace YOUR_VAULT_ADDRESS. It displays precommitted funds, deposits and dates, and refreshes every 15 seconds. No API key or SDK needed.
Amounts are in the contribution token (quote_mint). Label them with that token’s symbol in your UI.

Fields you need

Keep precommits and deposits separate. An active phase can remain after the end time; check the deadline before enabling deposits. To let users contribute, follow the presale SDK guide.
Connect to wss://indexer.star.fun/ws. It broadcasts all vaults automatically; there is no subscribe message. Match the network, program and vault from your initial snapshot:
Notifications are refresh signals, not balances or transaction receipts. Keep polling, refresh after confirmed transactions, and reconnect with backoff. Debounce notifications and discard late responses when switching vaults.Snapshots reflect finalized state and can lag a confirmed transaction. Accept equal revisions: freshness can improve without a balance change. Show stale or unknown visibly and preserve the last values on errors. A 503 means the snapshot is unavailable, not zero; retry after the supplied Retry-After delay. Back off on 429 rate limits.