what is Edwin?
Edwin is a TypeScript library that acts as a bridge between AI agents and DeFi protocols, providing a secure and unified interface for interaction while simplifying blockchain operations.
how to use Edwin?
To use Edwin, install the SDK with pnpm install edwin-sdk
, configure your wallet and services, and then interact with DeFi protocols using the provided methods.
key features of Edwin?
- Supports lending and borrowing operations
- Liquidity provision capabilities
- Cross-chain support for various protocols
- Type-safe interactions with DeFi protocols
- AI-friendly templates for easy integration
use cases of Edwin?
- Creating AI agents that can lend and borrow assets in DeFi.
- Providing liquidity to decentralized exchanges.
- Developing cross-chain DeFi applications.
FAQ from Edwin?
- What programming language is Edwin built with?
Edwin is built with TypeScript, making it type-safe and easy to integrate with other TypeScript projects.
- Is there documentation available?
Yes! Detailed documentation can be found at docs.edwin.finance.
- Can I contribute to the project?
Absolutely! Contributions are welcome, and you can find the guidelines in the Contributing Guide.
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