Installation and Setup

NOTE: This is currently in an Alpha state and may be subject to frequent updates. These docs are a WIP and will continue to be updated.

Installation

npm

npm install @molecularlabs/nucleus-frontend

yarn

yarn add @molecularlabs/nucleus-frontend

pnpm

pnpm add @molecularlabs/nucleus-frontend

Requirements

  • Node.js >= 18

RecommendedWhile Wagmi and Viem are not required in your project, we do leverage Viem under the hood of the SDK. We encourage using these tools, but you can use other options like Ethers. Just destructure the data returned from the prepare functions to align with the requirements of Ethers.

Features

  • Deposit assets into vaults across multiple chains

  • Bridge assets between supported networks

  • Withdraw assets from vaults

  • Calculate rates and fees

  • TypeScript support with full type definitions

Last updated