A modern web application for bridging tokens between Polkadot parachains and PolkaVM Asset Hub. Built with Next.js, React, and Polkadot API.
- Node.js 22+
- pnpm (recommended) or npm
- Polkadot wallet extension (Polkadot.js, Talisman, or SubWallet)
- Clone the repository:
git clone <repository-url>
cd token-bridge- Install dependencies:
pnpm install- Set up environment variables:
cp .env.example .env.local- Install papi descriptor
npx papi generate- Start the development server:
pnpm dev- Open http://localhost:3000 in your browser.
The build process automatically generates Polkadot API descriptors and builds the application:
pnpm buildCreate a .env.local file with the following variables:
# WalletConnect Project ID (get from https://cloud.walletconnect.com/)
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_project_id
# Optional: Ignore localStorage in development
NEXT_PUBLIC_IGNORE_STORAGE=false