create-lz-app
Create a production ready Next.js dApp with wallet connection and user balances out of the box. Include minimal configuration for fungible or non-fungible tokens to bootstrap a working bridge within minutes.
Usage
To get started with the interactive flow, run the cli tool via npx
, then follow the steps to configure your bridge.
npx create-lz-app@latest ./my-lz-bridge-app
npx create-lz-app --help
Name your project
? What is your project name? › my-lz-bridge-app
Select the type of token you'd like to configure. This version supports OFTs, Wrapped Tokens, and ONFTs from either the 721 or 1155 standard. For any token type you'll need just one contract address and chain pair. The cli tool will get the rest of your token configuration automatically.
? What kind of token would you like to add? › - Use arrow-keys. Return to submit.
❯ Add an OFT token
Add an ONFT token
Add a Wrapped token bridge
I want to start with the default configuration
Building your bridge
When finished open your repo in the directory you provided. See the Example Bridge documentation for implementation details and how to further customize your bridge.
cd ./my-lz-bridge-app