Skip to main content

Features

The MCP 0G Server provides comprehensive blockchain functionality through four main feature categories.

Blockchain Queries

Network Information

  • Chain Information: Get complete 0G Galileo testnet details
  • Block Data: Query blocks by number or hash
  • Transaction Details: Retrieve transaction information and receipts
  • Gas Prices: Get current gas prices and estimate transaction costs
  • Network Status: Monitor network health and performance

Account Management

  • Balance Queries: Check OG token balances for any address
  • Transaction Count: Get nonce values for addresses
  • Contract Detection: Identify if an address is a smart contract
  • Account History: Track transaction history for addresses

Smart Contract Interaction

  • Read-Only Calls: Execute view functions without gas costs
  • Event Logs: Query contract events and logs
  • Bytecode Access: Retrieve contract bytecode
  • ABI Interaction: Call contracts with proper type handling

Testnet Resources

  • Faucet Information: Access testnet token faucet details
  • Explorer Integration: Links to block explorer for verification
  • Development Tools: Utilities for testnet development

Wallet Management

Wallet Creation

  • Secure Generation: Create new wallets with cryptographic security
  • HD Wallet Support: BIP44 hierarchical deterministic wallets
  • Multiple Addresses: Derive multiple addresses from single seed
  • Encrypted Storage: AES-256-CBC encryption for wallet data

Wallet Import

  • Private Key Import: Import existing wallets from private keys
  • Seed Phrase Import: Restore wallets from mnemonic phrases
  • Format Validation: Comprehensive input validation
  • Secure Processing: Safe handling of sensitive data

Wallet Operations

  • List Management: View and manage multiple stored wallets
  • Default Wallet: Set primary wallet for transactions
  • Export Functions: Export public wallet information
  • Deletion: Secure wallet removal with confirmation

Security Features

  • Password Protection: Encrypted wallet storage
  • Access Control: Permission-based wallet operations
  • Audit Trail: Track wallet usage and operations
  • Backup Support: Safe wallet backup procedures

Transaction Management

Transaction Preview

  • Gas Estimation: Accurate gas cost calculations
  • Fee Calculation: Total transaction cost preview
  • Validation: Pre-flight transaction validation
  • Risk Assessment: Security and safety checks

Approval Workflows

  • Multi-Step Approval: Secure transaction approval process
  • Security Policies: Configurable approval requirements
  • Daily Limits: Spending limits and controls
  • Whitelist Support: Trusted address management

Batch Operations

  • Multiple Transactions: Send multiple transactions efficiently
  • Atomic Operations: All-or-nothing transaction batches
  • Optimization: Gas optimization for batch operations
  • Progress Tracking: Monitor batch execution status

Transaction Monitoring

  • Status Tracking: Real-time transaction status updates
  • Confirmation Monitoring: Track block confirmations
  • Receipt Retrieval: Get detailed transaction receipts
  • Error Handling: Comprehensive error reporting

Advanced Features

  • Transaction Replacement: Speed up or cancel pending transactions
  • Simulation: Test transactions before execution
  • Retry Logic: Automatic retry for failed transactions
  • Custom Gas: Manual gas price and limit configuration

Token Management

ERC-20 Token Support

  • Transfer Operations: Send tokens between addresses
  • Approval Management: Approve tokens for contract spending
  • Allowance Queries: Check approved spending amounts
  • Balance Tracking: Monitor token balances across addresses

Token Discovery

  • Metadata Retrieval: Get token name, symbol, decimals
  • Contract Validation: Verify token contract authenticity
  • Search Functionality: Find tokens by name or symbol
  • Custom Token Addition: Add unlisted tokens to watchlist

Portfolio Management

  • Portfolio Overview: Complete token portfolio view
  • Analytics: Portfolio performance and metrics
  • Risk Assessment: Token security and risk analysis
  • Valuation: Portfolio value calculation and tracking

Batch Token Operations

  • Bulk Transfers: Multiple token transfers in one operation
  • Bulk Approvals: Approve multiple tokens efficiently
  • Portfolio Updates: Batch portfolio synchronization
  • Gas Optimization: Efficient gas usage for token operations

Security Features

  • Approval Revocation: Remove token approvals for security
  • Spending Limits: Set maximum token spending amounts
  • Trusted Contracts: Whitelist approved token contracts
  • Emergency Controls: Quick security response capabilities

Smart Contract Deployment

Contract Compilation

  • Solidity Support: Compile Solidity source code to bytecode
  • Version Management: Support for all Solidity compiler versions
  • Optimization: Gas optimization during compilation
  • Error Reporting: Detailed compilation error messages

Deployment Process

  • Constructor Arguments: Support for contract constructor parameters
  • Gas Estimation: Accurate deployment cost estimation
  • Deployment Tracking: Monitor deployment transaction status
  • Address Prediction: Predict contract addresses before deployment

Contract Verification

  • Source Verification: Verify deployed contracts match source code
  • Bytecode Comparison: Compare deployed and compiled bytecode
  • Metadata Validation: Verify contract metadata integrity
  • Public Verification: Submit verification to block explorers

Deployment Management

  • History Tracking: Track all contract deployments
  • Network Support: Deploy across different networks
  • Template Support: Use contract templates for common patterns
  • Batch Deployment: Deploy multiple contracts efficiently

Development Tools

  • Testing Integration: Integration with testing frameworks
  • Debug Support: Debugging tools for contract development
  • Documentation: Automatic documentation generation
  • Upgrade Patterns: Support for upgradeable contract patterns

Security and Compliance

Encryption and Storage

  • AES-256-CBC: Military-grade encryption for sensitive data
  • Key Management: Secure key storage and rotation
  • Data Protection: Comprehensive data protection measures
  • Backup Security: Secure backup and recovery procedures

Access Control

  • Permission System: Role-based access control
  • Authentication: Secure user authentication
  • Authorization: Fine-grained permission management
  • Audit Logging: Complete audit trail of operations

Risk Management

  • Transaction Limits: Configurable spending limits
  • Fraud Detection: Suspicious activity monitoring
  • Emergency Controls: Quick response to security threats
  • Insurance Integration: Optional insurance for high-value operations

Performance and Scalability

Optimization Features

  • Connection Pooling: Efficient RPC connection management
  • Caching: Intelligent caching for frequently accessed data
  • Batch Processing: Efficient batch operation handling
  • Rate Limiting: Configurable rate limiting for API calls

Monitoring and Analytics

  • Performance Metrics: Detailed performance monitoring
  • Usage Analytics: Track server usage and patterns
  • Error Tracking: Comprehensive error monitoring
  • Health Checks: Automated health monitoring

Scalability

  • Horizontal Scaling: Support for multiple server instances
  • Load Balancing: Distribute load across servers
  • Database Integration: Scalable data storage options
  • Cloud Deployment: Cloud-native deployment support