A plugin for interacting with the B2-Network within the ElizaOS ecosystem.
The B2 Network Plugin offers a set of features that can be integrated into the Eliza platform to enhance its capabilities. This plugin enables seamless token transfers on the B2-Network. It provides functionality to transfer both native B2-BTC and ERC20 tokens using secure wallet operations.
pnpm install @elizaos/plugin-b2The plugin requires the following environment variable:
B2_PRIVATE_KEY=<Your B2 private key>- Send native B2-BTC and ERC20 tokens
- Support for multiple token standards
- Built-in address validation
const TOKENS = {
"B2-BTC": "0x0000000000000000000000000000000000000000",
uBTC: "0x796e4D53067FF374B89b2Ac101ce0c1f72ccaAc2",
USDC: "0xE544e8a38aDD9B1ABF21922090445Ba93f74B9E5",
USDT: "0x681202351a488040Fa4FdCc24188AfB582c9DD62",
// ... and more
};// Send B2-BTC
"Send 1 B2-BTC to 0x4f9e2dc50B4Cd632CC2D24edaBa3Da2a9338832a";
// Send ERC20
"Transfer 100 USDC to [address]";- Displays wallet balances
- Real-time balance updates
- Lists supported tokens
- Shows token addresses
- Clone the repository
- Install dependencies:
- Build the plugin:
pnpm run build- Run linting:
pnpm run lint- viem: ^2.21.49
- @elizaos/core: workspace:*
-
Advanced DeFi Operations
- Multi-hop yield strategies
- Auto-compounding features
- Yield optimization algorithms
- Risk assessment tools
- Portfolio rebalancing automation
- Cross-chain yield farming
-
Enhanced Token Management
- Batch token operations
- Advanced token creation templates
- Token migration tools
- Automated token listing
- Token analytics dashboard
- Custom tokenomics implementation
-
YAK Protocol Integration
- Advanced routing algorithms
- MEV protection features
- Gas optimization strategies
- Liquidity analysis tools
- Price impact predictions
- Custom trading strategies
-
Benqi Protocol Features
- Collateral optimization
- Liquidation protection
- Interest rate monitoring
- Position management tools
- Risk assessment dashboard
- Auto-repayment features
-
Token Mill Improvements
- Advanced token customization
- Automated market making
- Token distribution tools
- Vesting schedule management
- Governance token features
- Token upgrade mechanisms
-
Security Enhancements
- Transaction simulation
- Smart contract auditing tools
- Real-time monitoring
- Automated safety checks
- Emergency shutdown features
- Multi-signature support
-
Developer Tools
- Enhanced debugging capabilities
- Testing framework improvements
- Documentation generator
- CLI tools for common operations
- Integration templates
- Performance monitoring
-
Analytics and Reporting
- Portfolio tracking
- Performance metrics
- Gas usage optimization
- Transaction history analysis
- Yield comparison tools
- Risk assessment reports
We welcome community feedback and contributions to help prioritize these enhancements.
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
This plugin is part of the Eliza project. See the main project repository for license information.