Prerequisites
- Node.js 18+
- TypeScript 5+
- Viem 2+
Install packages
@fhenixprotocol/cofhe-contracts@0.1.3 requires @cofhe/sdk version >= 0.5.1.For Hardhat projects
If you are using Hardhat for development and testing, also install the plugin:
See the Hardhat Plugin Getting Started guide for configuration details.
For Foundry projects
If you are using Foundry for development and testing, install the Foundry plugin and its peer packages as dev dependencies:The Foundry plugin uses Solidity-only abstractions — no
@cofhe/sdk (JS) needed for tests.foundry.toml and remappings.txt setup.
Runtime entrypoints
Import from the entrypoint that matches your runtime:Next steps
- Quick Start — write your first FHE contract and test
- Client Setup — configure and connect the SDK client