v3.1.0
Clanker v3.1.0 SDK User Guide
Quick Start
npm install clanker-sdkBasic 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
Reward Distribution
Initial Dev Buy
Complete Example
Last updated