Core Mina blockchain plugin for Eliza OS that provides essential services and actions for token operations and wallet management.
This plugin provides functionality to:
- Transfer MINA tokens between wallets
- Query wallet balances and portfolio values
- Track token prices and valuations
- Manage wallet interactions with the Mina network
- Cache token prices for performance optimization
- Get faucet tokens for testing purposes
- Get balances for wallets
npm install @elizaos/plugin-mina
The plugin requires the following environment variables:
MINA_PRIVATE_KEY=your_private_key
MINA_NETWORK=mainnet|devnet
Import and register the plugin in your Eliza configuration:
import { minaPlugin } from "@elizaos/plugin-mina";
export default {
plugins: [minaPlugin],
// ... other configuration
};
Transfer MINA tokens to another address:
// Example conversation
User: "Send 1 MINA to B62qkGSBuLmqYApYoWTmAzUtwFVx6Fe9ZStJVPzCwLjWZ5NQDYTiqEU";
Assistant: "I'll send 1 MINA token now...";
Query wallet balance and portfolio value:
// Example conversation
User: "What's my wallet balance?";
Assistant: "Your wallet contains 299 MINA ($150 USD)...";
Request faucet tokens for testing:
// Example conversation
User: "Get faucet to B62qqLnFfhYvMkFD2nUeLX1bCHtDQH3edRVtvENtwAfn2KTCFxYRjtM";
Assistant: "I'll send you some faucet tokens...";
SEND_TOKEN
: Transfer MINA tokens to another addressTRANSFER_TOKEN
: Alias for SEND_TOKENSEND_MINA
: Alias for SEND_TOKENPAY
: Alias for SEND_TOKENFAUCET
: Request faucet tokens for testingBALANCE
: Query wallet balance
walletProvider
: Manages wallet interactions with the Mina network, including balance queries and portfolio tracking
npm run build
npm run test
o1js
: Core Mina blockchain interaction librarynode-cache
: Caching implementation- Other standard dependencies listed in package.json
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
This plugin integrates with and builds upon several key technologies:
- Mina Blockchain: The ZK blockchain for a secure, private and verifiable internet.
- o1js: Official Mina SDK for building zkApps.
- node-cache: Caching implementation
Special thanks to:
- The Mina team for developing Mina
- The Mina Developer community
- The o1Labs team for Mina SDK maintainers
- The Eliza community for their contributions and feedback
For more information about Mina blockchain capabilities:
This plugin is part of the Eliza project. See the main project repository for license information.