Installation

Installation

Install the SDK

SDK Installation

Install the cc0strategy SDK to integrate with your application.

npm

bash
npm install cc0strategy-sdk

yarn

bash
yarn add cc0strategy-sdk

pnpm

bash
pnpm add cc0strategy-sdk

Requirements

  • Node.js 18+
  • ethers v6 or viem

Quick Setup

typescript
import { CC0Strategy } from 'cc0strategy-sdk';
import { createWalletClient, custom } from 'viem';
import { base } from 'viem/chains';

const walletClient = createWalletClient({
    chain: base,
    transport: custom(window.ethereum),
});

const sdk = new CC0Strategy({
    chain: 'base',
    walletClient,
});
Note: Every deployment automatically includes a 1% airdrop to the deployer.