An AI-powered blockchain agent that can interact with the Abstract Testnet blockchain. Built with OpenAI's Assistant API and viem.
- AI Assistant powered by OpenAI's Assistant API with custom personality
- Direct blockchain interactions through Viem
- Support for:
- ERC20 token deployments and interactions
- Contract reading and writing
- Balance checking
- Transaction management
- Uniswap V3 pool creation
- Node.js (v18 or higher)
- TypeScript
- An OpenAI API key
- A wallet private key for the agent
- Clone the repository:
git clone https://github.com/jarrodwatts/onchain-agent.git
cd onchain-agent
- Install dependencies:
npm install
- Create the
.env
file and add your OpenAI API key and wallet private key:
OPENAI_API_KEY=your_openai_api_key
PRIVATE_KEY=your_wallet_private_key
- Run the agent:
npm start