This project is a Next.js-based Telegram Mini App that integrates with iampocket-relay-server for Telegram authentication and payments on the Lit Protocol. It uses pkp-xrpl to create seedless wallets, providing a seamless crypto experience within Telegram.
- Telegram authentication
- Seedless wallet creation using pkp-xrpl
- Wallet functionality:
- Faucet
- Mint NFT
- Send tokens
- View tokens
- View NFTs
- Swap tokens
- Transaction history
- Login and signup pages
- Integration with iampocket-relay-server for backend operations
Check out our demo video: YouTube Short
Live Demo: https://t.me/iampocket_bot/app
- Node.js (v14 or later recommended)
- pnpm package manager
- Telegram Bot Token
- Access to iampocket-relay-server
Install dependencies:
pnpm install-
Start the iampocket-relay-server
-
Run the Next.js app:
pnpm run dev
For HTTPS development (required for Telegram integration):
pnpm run dev:https
You can develop and test the app outside of Telegram:
-
Run the app:
pnpm run dev
-
Open
http://localhost:3000in your browser.
Note: Some Telegram-specific features may not work properly in this mode. Important: Telegram authentication does not work in the development environment because the useInitData doesn't have bot data for authentication.
For the full Telegram experience:
-
Deploy your app to a public URL
-
Submit the link you deployed to @BotFather as your Mini App link.
-
Test your app in the Telegram mini app
Follow this comprehensive guide to create your Telegram Bot and set up the Mini App.
This app uses:
- Next.js for the frontend
- iampocket-relay-server for backend operations and Telegram authentication and payments for the Lit Protocol
- pkp-xrpl for creating seedless wallets
- Lit Protocol for decentralized key management