Core Rooch blockchain plugin for Eliza OS that provides essential services and actions for wallet management and token operations on the Rooch network.
This plugin provides functionality to:
- Transfer tokens between wallets (currently supporting RGas for GAS consumption)
- Query wallet balances and portfolio values
- Manage wallet interactions with the Rooch network
npm install @elizaos/plugin-rooch
The plugin requires the following environment variables:
ROOCH_PRIVATE_KEY=your_private_key
ROOCH_NETWORK=mainnet|testnet|devnet|localnet
Import and register the plugin in your Eliza configuration:
import { roochPlugin } from "@elizaos/plugin-rooch";
export default {
plugins: [roochPlugin],
// ... other configuration
};
Transfer RGas (Rooch network gas token) to another address:
// Example conversation
User: "Send 10 RGas to 0x4f2e63be8e7fe287836e29cde6f3d5cbc96eefd0c0e3f3747668faa2ae7324b0"
Assistant: "I'll send 10 RGas now..."
Query wallet balance and portfolio value:
// Example conversation
User: "What's my wallet balance?"
Assistant: "Your wallet contains 100 RGas..."
SEND_TOKEN
: Transfer RGas to another addressTRANSFER_TOKEN
: Alias for SEND_TOKENSEND_RGAS
: Alias for SEND_TOKENPAY
: Alias for SEND_TOKEN
walletProvider
: Manages wallet interactions with the Rooch network, including balance queries and portfolio tracking
npm run build
npm run test
@roochnetwork/rooch-sdk
: Core Rooch blockchain interaction librarybignumber.js
: Precise number handlingnode-cache
: Caching implementation- Other standard dependencies listed in package.json
The following features and improvements are planned for future releases:
-
Transaction Management
- Batch transaction processing
- Transaction simulation
- Gas optimization strategies
- Custom transaction builders
- Advanced error handling
-
Wallet Integration
- Multi-wallet support
- Hardware wallet integration
- Social recovery options
- Account abstraction
- Transaction history tracking
-
Smart Contract Features
- Contract deployment tools
- Move module templates
- Testing framework
- Upgrade management
- Security analysis
-
Token Operations
- Batch token transfers
- Token metadata handling
- Custom token standards
- Collection management
-
Developer Tools
- Enhanced debugging
- CLI improvements
- Documentation generator
- Integration templates
- Performance monitoring
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 integrates with and builds upon several key technologies:
- Rooch Blockchain: Scalable and high-performance blockchain platform
- @roochnetwork/rooch-sdk: Official Rooch SDK
- bignumber.js: Precise number handling
- node-cache: Caching implementation
Special thanks to:
- The Rooch team for developing the Rooch blockchain
- The Rooch Developer community
- The Rooch SDK maintainers
- The Eliza community for their contributions and feedback
For more information about Rooch blockchain capabilities:
This plugin is part of the Eliza project. See the main project repository for license information.