Nexus SDK Overview
A powerful TypeScript SDK for cross-chain operations, token bridging, and unified balance management across multiple EVM chains.
Nexus Core
The core functionality of the Nexus SDK is provided by the @avail-project/nexus-core package.
- @avail-project/nexus-core: Headless SDK for cross-chain operations
- No React dependencies required
- Direct Chain Abstraction integration
Install:
npm
Terminal
npm install @avail-project/nexus-coreNext Steps
- Nexus Core SDK still requires an injected wallet provider (e.g. MetaMask, WalletConnect, etc.)
- It is designed for client-side browser environments and cannot be used in any server-side environments.
YOU WILL NEED A REACT-BASED FRONTEND
- Any React-based dev environment works, including React frameworks like Next.js, Remix, Gatsby, or build tools like Vite, Create React App, and Webpack.
- You also need the following peer dependencies:
react,react-dom,viem.
Nexus Elements
A shadcn-based component library that allows devs to integrate working components that use the Nexus SDK effectively and conveniently. Nexus Elements currently provides the following components:
- Unified Balance Widget (unified-balance)
- Deposit Widget (deposit)
- Fast Bridge Widget (fast-bridge)
- Swaps Widget (swaps)
Install:
-
Install
shadcn/uiinto your project. Refer to shadcn/ui installation guide for more details. -
Install the components you need using the shadcn CLI. For example, this is how you would install the unified balance widget:
npm
Terminal
npx shadcn@latest add https://elements.nexus.availproject.org/r/unified-balance.jsonNext Steps
Last updated on