Important: This library is a plugin for existing dApps and wallets, not a standalone wallet application. It is designed to be injected into your existing React/wagmi stack to seamlessly enhance standard wallets with COTI network privacy capabilities.
Provides React hooks, multi-wallet support (via wagmi v2 and RainbowKit), and token detection for any EIP-1193 wallet.
npm install @coti-io/coti-wallet-pluginnpm install react react-dom ethers viem @coti-io/coti-sdk-typescript @metamask/providers @rainbow-me/rainbowkit wagmi @tanstack/react-querynpm run build # Produces dist/index.js (CJS) + dist/index.mjs (ESM) + dist/index.d.ts
npm run lint # TypeScript type check (tsc --noEmit)
npm run test # Run test suite (vitest)
npm run clean # Remove dist/