SDK and CLI for Memesis — the token launch Aapp on the Nara chain.
- Config — create bonding curve parameters
- Pool — launch tokens with bonding curve
- Swap — buy/sell tokens (auto-routes between bonding curve and DAMM V2)
- Migrate — graduate tokens from bonding curve to DAMM V2
For chain-level operations (wallet, quest), see
nara-sdk.
npm install memesis-sdknpx memesis <command> [options]memesis config create [--fee-claimer <addr>] [--leftover-receiver <addr>] \
[--total-supply 1000000000] [--initial-mcap 30] [--migration-mcap 540] [-e]memesis pool create -n <name> -s <symbol> -u <uri> --dbc-config <addr> [--creator <addr>] [-e]
memesis pool create-with-buy -n <name> -s <symbol> -u <uri> --dbc-config <addr> --amount <nara> [-e]
memesis pool info <token-address>
memesis pool progress <token-address>memesis swap buy <token-address> <amount> [--slippage 100] [--mode partial-fill] [-e]
memesis swap sell <token-address> <amount> [--decimals 6] [--slippage 100] [-e]
memesis swap quote <token-address> <amount> <buy|sell>memesis migrate check <token-address>
memesis migrate launch <token-address> [-e]
memesis migrate create-locker <token-address> [-e]| Option | Description |
|---|---|
-r, --rpc-url <url> |
RPC endpoint (default: https://mainnet-api.nara.build/) |
-w, --wallet <path> |
Wallet keypair JSON (default: ~/.config/nara/id.json) |
-j, --json |
JSON output |
import { MemesisClient, buyToken, SwapMode } from "memesis-sdk";
const client = new MemesisClient({
rpcUrl: "https://mainnet-api.nara.build/",
});
// Buy tokens
const result = await buyToken(client, {
tokenAddress: "...",
amountInSOL: 1.0,
owner: wallet.publicKey,
swapMode: SwapMode.PartialFill,
});Memesis is an Aapp (Agent App) on the Nara chain. This SDK is independent from the chain-level nara-sdk, demonstrating the Aapp pattern — each Aapp has its own SDK while settling on the Nara chain.
nara-sdk ← Chain-level (wallet, quest)
memesis-sdk ← Memesis Aapp (token launch, swap, migrate)
MIT