Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-seo-audit-1777280932.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
CoW Protocol SDK Installation Guide
Quick Overview
The CoW Protocol SDK enables blockchain interaction through three adapter options. Installation involves the main package plus your chosen adapter framework.Core Installation
Install the primary package:Adapter Selection
You must choose one of three adapters based on your Web3 library: Viem - Modern, lightweight TypeScript library requiring viem 1.x+ Ethers v6 - The current ethers.js version (recommended for ethers users) Ethers v5 - Legacy version; consider upgrading to v6 or using Viem Each adapter installation differs slightly. For Viem, you’d run:Essential Dependencies
The SDK requirescross-fetch (^3.x). Optional packages include ipfs-only-hash, multiformats, and @openzeppelin/merkle-tree for specialized features like app-data metadata and merkle operations.
Environment Requirements
Node.js 16+ is mandatory. TypeScript support includes built-in type definitions with standardtsconfig.json settings (moduleResolution: “node”, esModuleInterop: true).