TypeScript SDK for memnr. Programmatically create mems from videos, read mem data, and interact with on-chain royalty share programs.
npm install @memnr/sdk @solana/web3.jsimport { MemnrSDK } from '@memnr/sdk';
import { Connection, Keypair, VersionedTransaction } from '@solana/web3.js';
const sdk = new MemnrSDK('memnr_sk_...', new Connection('https://api.mainnet-beta.solana.com'));
const wallet = Keypair.fromSecretKey(/* ... */);
// List tokens
const { items } = await sdk.tokens.list({ sortBy: 'newest', pageSize: 10 });
// Preview a TikTok video
const preview = await sdk.tokenLaunch.previewVideo('https://tiktok.com/@user/video/123');
// Build launch transaction (server builds + partially signs)
const { launchId, transaction, poolAddress, dbcConfigKey, metadataUri } =
await sdk.tokenLaunch.buildLaunchTransaction({
videoUrl: 'https://tiktok.com/@user/video/123',
payerAddress: wallet.publicKey.toBase58(),
customTicker: 'MYTK',
});
// Sign and send
const tx = VersionedTransaction.deserialize(Buffer.from(transaction, 'base64'));
tx.sign([wallet]);
const sig = await sdk.solana.sendAndConfirm(tx);
// Confirm with API
await sdk.tokenLaunch.confirmLaunch({
launchId,
signature: sig,
poolAddress,
dbcConfigKey,
metadataUri,
});Get an API key at memnr.app after logging in. Keys are scoped to a wallet address and support rate limiting (default 60 req/min).
list(params?)— Paginated token listgetByAddress(address)— Token detailgetStats()— Platform-wide stats
previewVideo(url)— Preview a TikTok videobuildLaunchTransaction(params)— Build an atomic launch txconfirmLaunch(params)— Confirm after signing + sendinggetStatus(launchId)— Check launch status
getClaimable()— Claimable fee positions for the API key's walletbuildClaim(tokenAddresses?)— Build claim transaction(s)getHistory()— Fee claim history
fetchFeeShareConfig(baseMint)— Read on-chain FeeShareConfigfetchMultipleFeeShareConfigs(baseMints)— Batch readgetPDAs(baseMint)— Derive PDA addresses
sendAndConfirm(tx, options?)— Send + confirm a transactiongetBalance(address)— SOL balance
The fee share program is deployed at MEM1FmjMd394WXGFx8yU5C5F5Q2oqLW3Ckyb2ADW9TT. See memnr-idl for the Anchor IDL.
Copyright © 2026 memnr. All rights reserved. No license is granted for use, modification, or redistribution.