
Edwin 🦉 - DeFAI Layer
Edwin is a TypeScript library that serves as the bridge between AI agents and DeFi protocols. It provides a unified, secure interface for AI agents to interact with various DeFi protocols while abstracting away the complexity of blockchain operations and protocol-specific implementations. This enables the creation of sophisticated DeFAI agents.
Installation
pnpm install edwin-sdk
Features
- Lending/Borrowing operations
- Liquidity provision
- Cross-chain support
- Type-safe protocol interactions
- AI-friendly templates
Quick Start
// Import the required wallet and services
import { EdwinEVMWallet, AaveService } from 'edwin-sdk';
// Configure Edwin wallets and services
const wallet = new EdwinEVMWallet(evmPrivateKey as `0x${string}`);
const aave = new AaveService(wallet);
// Supply tokens to a lending protocol
const result = await aave.supply({
chain: 'base',
amount: 0.05,
asset: 'usdc',
});
Documentation
For detailed documentation, visit docs.edwin.finance
For developers interested in creating plugins, check out our Plugin Integration Guide.
Contributing
Contributions are welcome! Please visit our Contributing Guide for details.
License
GPL
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
Reviews

user_PWzMRAcS
I recently started using Edwin from edwin-finance for my MCP applications, and it has significantly improved my workflow. The examples provided on their GitHub repository are clear and practical, making it easy to get started. Kudos to the creators for such a robust and user-friendly tool! Highly recommended for anyone in the finance sector.