sdk.js?v=167 · buyKron
Build with any KCC20 token
This page lists every KCC20 token launched on kron.technology. Paste a snippet into Replit, Base44, Cursor, v0, or any agent. The user’s KCC20 wallet quotes and builds the swap — your app never holds keys.
Buy on your platform:
await window.kcc20.buyKron({ tick: 'KKDAG', amount: '10' })
— amount is KAS to spend, not tokens.
sendToken only moves a bag they already hold.
Buy on this page
Tap Connect (allow popups). Then Buy — the wallet builds the KRON swap.
Loading KRON tokenlist…
Any wallet, any vibe platform
Load https://kcc-20-wallet.vercel.app/sdk.js?v=167. You get window.kcc20. KIP-12 announces kaspa:provider rdns: app.kcc20.wallet so a picker can list SCORPION next to KasWare / Kastle. Do not overwrite a real window.kasware.
To improve your own wallet: implement the same surface — Connect on click, silent reads after the popup closes, buyKron as a wallet-built TRADE, signPskt P2PK-only with global tx.inputs[] indexes, pushTx returns { txId, node }.
const kcc = window.kcc20;
await kcc.connect(); // popup, then it CLOSES
const bag = await kcc.getTokenBalance('KKDAG');
const bought = await kcc.buyKron({ tick: 'KKDAG', amount: '10' });
// bought.txId bought.quote bought.explorer