A simple React application that demonstrates how to bridge BTC from Bitcoin to the VIA network using OP_RETURN deposit transactions with the sats-connect API and Xverse wallet.
This project was bootstrapped with Create React App.
This application allows users to:
- Connect to Xverse wallet
- Send a small amount of Bitcoin to the VIA Bridge address
- Include an EVM address as OP_RETURN data for receiving funds on L2 (VIA network)
- Receive the change amount back to the wallet
- Node.js (v16 or higher)
- Xverse wallet extension installed in your browser
- Some tBTC in your Xverse wallet (check Testnet Faucet)
- Clone the repository
- Install dependencies:
npm install
- Run the application
npm start
- Build for Production
npm run build
This builds the app for production to the build folder, optimized for best performance.