Installation
Install with pnpm
Section titled “Install with pnpm”# Install the SDKpnpm add cooperative
# Install peer dependenciespnpm add @wagmi/core viemInstall with npm
Section titled “Install with npm”# Install the SDKnpm install cooperative
# Install peer dependenciesnpm install @wagmi/core viemVerify Installation
Section titled “Verify Installation”Create a test file to verify everything works:
import { SUPPORTED_CHAIN_IDS } from "cooperative";
console.log("Supported chains:", SUPPORTED_CHAIN_IDS);// Should output: [1, 137, 8453] (Ethereum, Polygon, Base)Run it with:
npx tsx test-cooperative.ts