studio
Build a weir
A launch config bundles the rules a launch runs: a creator fee, burns, and either the built-in rules kit or a hook you wrote. Make it once, and anyone can launch from it. Set it up on the left and copy the code on the right. Need the hook interface? It's in the sdk docs.
compose
what are you making?
creator fee
burn · buys
burn · sells
create-config.ts
import { buildCreateConfig, NO_LAUNCH_RULES } from '@weirs/sdk';
import { TOKEN_HOOK_FLAGS as F } from '@weirs/shared';
import { PublicKey } from '@solana/web3.js';
// your hook, deployed and made immutable first:
// solana program set-upgrade-authority <HOOK> --final
const myHook = new PublicKey('<HOOK_PROGRAM_ID>');
const made = buildCreateConfig(me, {
rules: { ...NO_LAUNCH_RULES, burnSellBps: 25 },
creatorFeeBps: 100,
customHook: myHook,
customHookFlags: F.BEFORE_TRANSFER | F.TRANSFER_RETURNS_DELTA, // = 65
label: 'my-weir',
});
// sign with `me` and `made.keypair`, send `made.instruction`,
// then paste made.address into weirs.fun/launch → bring-your-ownbefore you ship a hook
- Make it immutable. A config naming an upgradeable hook is refused on chain.
- Prepare its account registry for the mint the launch page shows you.
- It runs on every transfer, so keep it cheap in compute units.
- Tokens with your hook carry a custom · unverified label. Publish the source.