Skip to content

donpushme/blockchain-ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Here’s a simplified and shorter version of your README.md that keeps it clear and developer-friendly:


🧠 Blockchain AI Agent

Blockchain AI Agent is a lightweight framework that connects AI models with Solana and EVM-based blockchains. Automate tasks like token management, DeFi interactions, NFT operations, and more β€” all powered by AI.


βš™οΈ Features

πŸ”— Blockchain

  • Solana: Mint tokens, airdrop, swap with Jupiter, use Drift, create NFTs, etc.
  • EVM: Deploy & interact with contracts, swap via Uniswap, mint ERC721s, etc.

πŸ€– AI

  • Execute blockchain tasks from natural language using OpenAI + LangChain
  • Generate NFT artwork via DALLΒ·E
  • Create smart agents with custom workflows

πŸ“¦ Install

npm install blockchain-ai-agent

πŸš€ Quick Start

import { BlockchainAIAgent } from "blockchain-ai-agent";

const agent = new BlockchainAIAgent({
  solana: {
    privateKey: "YOUR_SOLANA_PRIVATE_KEY",
    rpcUrl: "https://api.mainnet-beta.solana.com",
  },
  evm: {
    privateKey: "YOUR_EVM_PRIVATE_KEY",
    rpcUrl: "https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID",
  },
  aiApiKey: "YOUR_OPENAI_KEY", // optional
});

πŸ’‘ Examples

// Mint a Solana token
await agent.solana.mintToken({ name: "AIT", symbol: "AIT", decimals: 9, supply: 1000 });

// Swap USDT for ETH on EVM
await agent.evm.swapTokens({ dex: "uniswap", inputToken: "USDT", outputToken: "ETH", amount: 100 });

// Run AI command
await agent.ai.executeCommand("Create a collection of NFTs on Solana");

🌐 Supports

  • Chains: Solana, Ethereum, BSC, Polygon, Avalanche, Optimism, Arbitrum, Fantom
  • AI: OpenAI (GPT-4), DALLΒ·E, LangChain

πŸ™Œ Contribute

We welcome PRs! See CONTRIBUTING.md.


Made with ❀️ by @midaBricoll


Let me know if you want a version tailored for a landing page or NPM package.

About

AI agent for Blockchain, especially solana and evm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published