Core Starknet blockchain plugin for Eliza OS that provides essential services and actions for token operations, trading, and DeFi integrations.
The Starknet plugin serves as a foundational component of Eliza OS, bridging Starknet blockchain capabilities with the Eliza ecosystem. It provides crucial services for token operations, trading, portfolio management, and DeFi integrations, enabling both automated and user-directed interactions with the Starknet blockchain.
- Token Creation: Deploy new unruggable tokens with customizable metadata
- Token Transfers: Send and receive tokens securely
- Balance Management: Track and manage token balances
- Portfolio Analytics: Real-time portfolio valuation and tracking
- Token Swaps: Execute token swaps through aggregated DEX liquidity
- Order Management: Place and manage trading orders
- Price Monitoring: Track token prices and market movements
- Trust Score Analysis: Evaluate token and trader reliability
- Liquidity Management: Monitor and manage liquidity positions
- Yield Optimization: Track and optimize yield farming opportunities
- Risk Assessment: Analyze and monitor DeFi protocol risks
- Performance Tracking: Monitor investment performance metrics
The plugin requires the following environment variables:
STARKNET_ADDRESS=your_starknet_address
STARKNET_PRIVATE_KEY=your_private_key
STARKNET_RPC_URL=your_rpc_url
Deploys a new unruggable token on Starknet.
// Example usage
const result = await runtime.executeAction("DEPLOY_STARKNET_UNRUGGABLE_MEME_TOKEN", {
name: "TokenName",
symbol: "TKN",
owner: "OwnerAddressHere",
initialSupply: "1000000000000000000"
});
Transfers tokens between wallets.
// Example usage
const result = await runtime.executeAction("TRANSFER_TOKEN", {
tokenAddress: "TokenAddressHere",
recipient: "RecipientAddressHere",
amount: "1000"
});
Executes a token swap on Starknet.
// Example usage
const result = await runtime.executeAction("EXECUTE_STARKNET_SWAP", {
sellTokenAddress: "SellTokenAddressHere",
buyTokenAddress: "BuyTokenAddressHere",
sellAmount: "1000000000000000000"
});
Creates and transfers a subdomain.
// Example usage
const result = await runtime.executeAction("CREATE_SUBDOMAIN", {
subdomain: "subdomain.domain.stark",
recipient: "RecipientAddressHere"
});
-
Access Control
- Validate transaction signers
- Implement role-based permissions
- Secure private key storage
-
Transaction Limits
- Set maximum transaction amounts
- Implement daily trading limits
- Configure per-token restrictions
-
Monitoring
- Track failed transaction attempts
- Monitor unusual trading patterns
- Log security-relevant events
-
Recovery
- Implement transaction rollback mechanisms
- Maintain backup RPC endpoints
- Document recovery procedures
-
Cache Management
- Implement token data caching
- Configure cache TTL settings
- Monitor cache hit rates
-
RPC Optimization
- Use connection pooling
- Implement request batching
- Monitor RPC usage
-
Transaction Management
- Batch similar transactions
- Optimize gas usage
- Handle transaction retries
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
This plugin integrates with and builds upon several key technologies:
- Starknet - The core blockchain platform
- Starknet.js - Core Starknet interactions
- Unruggable - Token creation and security
- Ekubo - DEX integrations
- Avnu - Token swap aggregation
- Birdeye - Price feeds and analytics
- Helius - Enhanced RPC services
Special thanks to:
- The Starknet ecosystem and all the open-source contributors who make these integrations possible.
- The Eliza community for their contributions and feedback.
For more information about Starknet blockchain capabilities:
- Starknet Documentation
- Starknet Developer Portal
- Starknet Network Dashboard
- Starknet GitHub Repository
This plugin is part of the Eliza project. See the main project repository for license information.