v3.1.0

Clanker v3.1.0 SDK User Guide

Quick Start

npm install clanker-sdk

Basic Usage

import { Clanker } from 'clanker-sdk';
import { createWalletClient, createPublicClient, http } from 'viem';

// Initialize SDK
const clanker = new Clanker({
  wallet: walletClient,
  publicClient,
  factoryAddress: FACTORY_ADDRESS
});

// Deploy a token
const tokenAddress = await clanker.deployToken({
  name: "MyToken",
  symbol: "TOKEN",
  image: "ipfs://...",
  metadata: {
    description: "My awesome token",
    socialMediaUrls: ["https://twitter.com/mytoken"],
    auditUrls: []
  },
  pool: {
    quoteToken: "0x4200000000000000000000000000000000000006", // WETH
    initialMarketCap: "1" // 1 WETH
  }
});

Advanced Configuration

Vesting Vault

Add a vesting schedule for token distribution:

Reward Distribution

Configure creator and interface rewards (Clanker retains 20%):

Initial Dev Buy

Configure an initial buy to provide liquidity:

Complete Example

Last updated