This project sets up a Next.js React TypeScript application and integrates it with the Wormhole Connect SDK.
Ensure you have the following installed on your system:
- Node.js & TypeScript
- npm or yarn
First, clone the repository to your local machine:
git clone https://github.com/wormhole-foundation/demo-ntt-connect.git
cd demo-ntt-connectCopy the example environment file and add your API keys:
cp .env.example .env.localThen edit .env.local with your actual API keys:
NEXT_PUBLIC_COIN_GECKO_API_KEY- Get from CoinGeckoNEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID- Get from WalletConnect Cloud
Install all required dependencies using npm or yarn:
# Using npm
npm install
# Or using yarn
yarnAdjust the WormholeConnectConfig in app/page.tsx based on the deployment.json file from your NTT deployment. This configuration is essential to ensure proper integration with your deployment environment.
Start the development server:
yarn devor, if using npm:
npm run dev- Use a private RPC for mainnet, to prevent timeouts