# PNPM (recommended)
pnpm add fibrous-router-sdk
# NPM
npm install fibrous-router-sdk
# Yarn
yarn add fibrous-router-sdkIf you're upgrading to v2 API, please review our Migration Guide: v1 → v2 for detailed instructions. Key changes include:
- Use
apiVersion: "v2"in Router constructor - Call
refreshSupportedChains()before using chain-related methods - Update all method calls to use parameter objects
- Handle new error types (APIError, NetworkError, etc.)
- Automatic input validation
If you're upgrading from v0.5.x, please review our Migration Guide for detailed instructions on updating your code. Key changes include:
- Replace
BigNumberwith nativebigint - Updated token interface properties
- Improved performance and smaller bundle size
Check out the Starknet examples and Starknet README for more detailed examples.
Check out the Evm examples and Evm README for more detailed examples.
If you want to test pre-release versions before production, check out our Pre-Release Testing Guide for detailed instructions.
We welcome contributions from the community. Please review our contributing guidelines to get started.