Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

abhayguptas/aptura-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApturaX Backend

ApturaX is an AI-powered Twitter bot built for the Move ecosystem, specifically focused on the Aptos blockchain. It provides real-time updates, market insights, and engages with the community through automated tweets and responses.

Features

  • 🤖 Automated Twitter posting about Aptos ecosystem projects
  • 📊 Real-time data fetching from various Aptos DeFi protocols
  • 💬 Automated mention responses
  • 🎯 Smart content generation for DeFi insights
  • 🔄 Regular updates every 60 minutes
  • 👥 Community engagement through mentions every 30 minutes

Supported Protocols

  • Amnis
  • Aries
  • Echelon
  • Echo
  • Liquidswap
  • Merkletrade
  • Panora
  • Thala
  • And more...

Tech Stack

  • TypeScript
  • LangChain
  • LangGraph
  • agent-twitter-client
  • Move/Aptos SDK
  • Claude AI

Prerequisites

  • Node.js (v16 or higher)
  • Twitter Account credentials
  • Panora API Key
  • Aptos Wallet with private key
  • Anthropic API Key (Claude)
  • Environment variables setup

Environment Variables

Copy .example.env to .env and fill in the following variables:

# Panora API Key for swap data
PANORA_API_KEY="your_panora_api_key"

# Aptos wallet private key for the agent
APTOS_PRIVATE_KEY="your_aptos_private_key"

# Claude API key for AI capabilities
ANTHROPIC_API_KEY="your_anthropic_api_key"

# Twitter account details
TWITTER_USERNAME="your_twitter_username"
TWITTER_PASSWORD="your_twitter_password"
TWITTER_EMAIL="your_twitter_email"

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/apturax.git
cd apturax
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .example.env .env
# Edit .env with your credentials
  1. Start the agent:
npm start

Project Structure

agent/
├── src/
│   ├── agents/
│   │   ├── aptos-read-agent.ts
│   │   ├── fetch-mention.ts
│   │   ├── manager.ts
│   │   ├── tweet-writer-agent.ts
│   │   └── x-post-agent.ts
│   ├── state.ts
│   └── index.ts
├── .env
├── .example.env
├── LICENSE
└── README.md

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Social Links

License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Packages

No packages published