TextWallet is a modular network of interoperable DeFi agents designed to bring the full functionality of EVM-compatible crypto wallets (and more) to a text-based interface. Interact with DeFi protocols, manage assets, conduct research, and get portfolio insights, all through text commands.
- Text-Based Wallet Operations: Perform standard EVM wallet actions (send, receive) via text.
- DeFi Interaction:
- Stake tokens.
- Add liquidity to protocols.
- Portfolio Management: Get an overview and insights into your wallet's portfolio.
- Token Research: Conduct research on specific tokens.
- Modular & Interoperable: Built as a network of agents for extensibility.
Follow these instructions to set up and run the project locally.
- Node.js (Check
.nvmrcorpackage.jsonengines field if specified, otherwise use a recent LTS version) - npm or yarn or pnpm
-
Clone the repository:
git clone https://github.com/cyberverse2/textwallet cd textwallet -
Install dependencies:
npm install # or yarn install # or pnpm install
Set your Reown Project ID in the environment:
NEXT_PUBLIC_PROJECT_ID=your_reown_project_id
You can obtain the Project ID from the Reown Dashboard (https://dashboard.reown.com). Without this value, the Web3Modal will not initialize.
Note: If you encounter peer dependency conflicts, particularly related to date-fns and react-day-picker, you might need to use the --legacy-peer-deps flag:
npm install --legacy-peer-deps
# or
yarn install --legacy-peer-deps
# or
pnpm install --legacy-peer-depsA simple health check route is available at /api/health.
curl -s http://localhost:3000/api/healthReturns a JSON payload with { status: 'ok', uptime: <seconds> }.
Start the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
- There was a known dependency conflict between
date-fnsv4.1.0 andreact-day-pickerv8.10.1 (which requiresdate-fnsv2 or v3). Installing dependencies using the--legacy-peer-depsflag is the current workaround.
Contributions are welcome! Please follow the standard fork and pull request workflow.