Buy and sell one token against its stock, with the live pool quote, slippage and the review step the token page has.
The chart sits above the panel; trades and holders share one list below it, ten rows a page.
Only visitors whose connection comes from a restricted country (the United States) are asked, right above the button; the launchpad refuses their trades until they confirm.
Buttons, links, the selected tab and the focus ring take this colour in light and dark; the shades are derived from it.
The price, the fee, the minimum received, the review step and the eligibility question always stay.
<iframe
src="https://launchpad.basestocks.finance/embed/trade/0xb20000000000000000000023b657130129ad33e5"
title="Trade on BStocks Launchpad"
width="100%" height="820"
style="border:0;max-width:480px;border-radius:8px"
allow="clipboard-write"
loading="lazy"
></iframe><script>
window.addEventListener('message', function (e) {
if (e.origin !== 'https://launchpad.basestocks.finance' || !e.data || e.data.source !== 'bstocks-launchpad' || e.data.type !== 'resize') return;
document.querySelectorAll('iframe').forEach(function (f) {
if (f.contentWindow === e.source) f.style.height = e.data.height + 'px';
});
});
</script>Without the script the frame keeps the height in the code (820px) and scrolls inside when the widget grows. Leave the iframe unsandboxed: wallets open popups and browser wallets inject into the frame.
The widget posts messages to your page with source: 'bstocks-launchpad'. Check event.origin is https://launchpad.basestocks.finance.
Any page can post a message that looks like these. Treat swap and launch as a hint to refresh your UI; before you reward anyone for one, look the transaction up on Base. No address, balance or signature leaves the widget.
Everything a widget does is one API call away: quotes, token data, and ready-to-sign transactions for a trade or a launch. The reference has every route with its parameters, a curl line and a live Try it; the spec and the plain-text versions are there for tools and AI agents.