• High-level convenience method that orchestrates the full launch flow:

    1. Creates the launch via the Metaplex API (get unsigned transactions)
    2. Signs and sends all transactions to the Solana RPC via Umi
    3. Registers the launch

    Example

    Bonding curve launch with a direct creator fee wallet

    const result = await createAndRegisterLaunch(umi, {}, {
    wallet: umi.identity.publicKey,
    launchType: 'bondingCurve',
    token: { name: 'My Token', symbol: 'MTK', image: 'https://gateway.irys.xyz/...' },
    launch: { creatorFeeWallet: 'CreatorWalletAddress...' },
    });
    console.log(`Launch live at: ${result.launch.link}`);

    Example

    Bonding curve launch with agent-derived creator fees

    const result = await createAndRegisterLaunch(umi, {}, {
    wallet: umi.identity.publicKey,
    launchType: 'bondingCurve',
    token: { name: 'Agent Token', symbol: 'AGT', image: 'https://gateway.irys.xyz/...' },
    launch: { creatorFeeAgentMint: agentAssetAddress },
    });

    Example

    Launchpool launch

    const result = await createAndRegisterLaunch(umi, {}, {
    wallet: umi.identity.publicKey,
    launchType: 'launchpool',
    token: { name: 'My Token', symbol: 'MTK', image: 'https://gateway.irys.xyz/...' },
    launch: {
    launchpool: {
    tokenAllocation: 500_000_000,
    depositStartTime: new Date('2026-03-01T00:00:00Z'),
    raiseGoal: 250,
    raydiumLiquidityBps: 5000,
    fundsRecipient: 'RecipientWallet...',
    },
    },
    });

    Parameters

    Returns Promise<CreateAndRegisterLaunchResult>

Generated using TypeDoc