# MetaMask Delegation Toolkit Agent

## 🌟 Overview

The MetaMask Gaia DTK Starter is a powerful Next.js template that seamlessly integrates Gaia's advanced capabilities with MetaMask's Develegation Toolkit (DTK). This project allows developers to build sophisticated blockchain applications with AI-enhanced functionalities while leveraging MetaMask's secure wallet infrastructure.

![Gaia Delegation Toolkit Gif](../gaia-supavec/gaia-dtk-2.gif)

The starter includes a full ERC20 token creation system through an integrated factory contract, allowing users to deploy custom tokens directly through the application. Combined with AI-powered interactions, this creates a powerful platform for building next-generation decentralized applications.

## ✨ Features

- **AI-Powered Interactions**: Utilize GaiaNet AI to create intelligent and responsive dApp experiences
- **ERC20 Token Creation**: Create custom ERC20 tokens through the integrated factory contract
- **Secure Blockchain Integration**: Connect with the Ethereum ecosystem through MetaMask's trusted wallet infrastructure
- **Delegation Management**: Metamask's Delegation Toolkit for managing user-to-AI agent delegations
- **Bundler Service Integration**: Pre-configured connection to bundler services for transaction handling
- **Modern UI Components**: Ready-made UI components including chat interfaces, cards, and inputs
- **Next.js App Router**: Built on Next.js 13+ with the new App Router architecture
- **TypeScript Support**: Full TypeScript integration for type safety and better developer experience

## 🚀 Getting Started

### Prerequisites

- Node.js (v16 or later)
- pnpm package manager
- MetaMask extension installed in your browser

### Installation

1. Clone the repository:

```bash
git clone https://github.com/meowyx/metamask-gaia-starter.git
```

2. Navigate to the project directory:

```bash
cd metamask-gaia-starter
```

3. Install dependencies using pnpm:

```bash
pnpm install
```

4. Create a `.env` file in the root directory with the following configuration:

```