@emblemvault/primitives-launch
v0.10.8
Published
TypeScript SDK for the Emblem launch primitive — Meteora DBC + DAMM v2 token launches with the 2-NFT (Emblem + creator) fee model and IPFS metadata helpers.
Maintainers
Readme
@emblemvault/primitives-launch
TypeScript SDK for the Emblem launch primitive — Meteora DBC + DAMM v2 token launches with the 2-NFT (Emblem + creator) fee model.
Includes IPFS metadata helpers for the standard name / description / image flow.
Install
npm i @emblemvault/primitives-launch @solana/web3.jsQuick start
import { Connection } from '@solana/web3.js';
import { EmblemLaunchClient, EmblemIpfsClient } from '@emblemvault/primitives-launch';
const ipfs = new EmblemIpfsClient(); // defaults to https://emblemvault.ai
const { metadataUri } = await ipfs.uploadTokenMetadata({
name: 'Vibe',
description: 'A vibe token',
symbol: 'VIBE',
image: pngBlob, // or imageFileUrl, or pre-uploaded imageUri
});
const client = new EmblemLaunchClient({
connection: new Connection(process.env.SOLANA_RPC_URL!),
});
const ix = client.buildInitPoolViaPdaIx({
// ... creator / mints / dbcConfig
name: 'Vibe',
symbol: 'VIBE',
uri: metadataUri,
});The Connection is caller-supplied — point at mainnet, devnet, surfpool, or any forked-mainnet endpoint.
License
Apache-2.0 © Emblem Vault
