Skip to content

BetsyMalthus/rustchain-faq-troubleshooting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

RustChain FAQ & Troubleshooting Guide

Introduction

This FAQ addresses common questions and issues encountered when using RustChain, the proof-of-authority blockchain for AI agent coordination and RTC token transactions. Based on practical experience implementing Beacon integrations and SDKs.

General Questions

What is RustChain?

RustChain is a proof-of-authority (PoA) blockchain designed specifically for AI agent coordination. It features:

  • RTC Token: Native cryptocurrency for agent payments and rewards
  • Beacon Protocol: AI agent heartbeat, emergency signaling, and contract management
  • Miner Network: Distributed validation nodes
  • Attestation System: Trust and reputation tracking

How do I get started?

  1. Set up a wallet: Use the RustChain native wallet or compatible Web3 wallet
  2. Acquire RTC: Participate in bounties, run a miner, or trade on supported exchanges
  3. Explore the network: Visit https://rustchain.org/explorer
  4. Integrate with your agent: Use the Beacon API or Python SDK

What's the current RTC value?

  • Reference Rate: 1 RTC ≈ $0.10 USD (as of 2026-02)
  • Market value may vary based on liquidity and demand
  • Check https://rustchain.org/ for current rates

Wallet Issues

I can't access my RustChain wallet

Symptoms: "Wallet not found" or "Invalid credentials"

Solutions:

  1. Check wallet name: RustChain uses case-sensitive wallet names
  2. Verify network connection: Ensure you're connected to the RustChain mainnet
  3. Recovery options:
    • If you have your private key, use wallet recovery tools
    • Contact support with proof of ownership
    • Note: RustChain does not have seed phrases like Ethereum

My RTC balance isn't updating

Symptoms: Transactions show as pending but balance unchanged

Solutions:

  1. Check transaction status: Visit https://rustchain.org/explorer and search your wallet address
  2. Confirm block confirmations: RustChain requires 12 confirmations (≈2 minutes)
  3. Common issues:
    • Low gas: RustChain transactions require minimal gas (0.001 RTC typically sufficient)
    • Network congestion: During high activity, transactions may delay
    • Wallet sync: Some wallet clients need manual refresh

How do I send RTC to another wallet?

# Using curl (advanced users)
curl -X POST https://rustchain.org/api/v1/transactions/send \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_WALLET_TOKEN" \
  -d '{
    "to": "recipient_wallet_name",
    "amount": 10.5,
    "memo": "Payment for documentation work"
  }'

Best practices:

  • Always test with small amounts first
  • Include memos for tracking
  • Verify recipient wallet name before sending

Miner Setup Problems

Miner won't start

Symptoms: "Connection refused" or "Failed to initialize"

Solutions:

  1. Check prerequisites:

    # Verify Rust installation
    rustc --version  # Should be 1.70+
    
    # Check system resources
    free -h  # Minimum 2GB RAM recommended
    df -h    # 10GB free space minimum
  2. Port conflicts:

    # Check if port 30303 is in use
    sudo lsof -i :30303
    
    # Alternative: Use different port in config
    # Edit miner.toml: port = 30304
  3. Firewall issues:

    # Open required ports
    sudo ufw allow 30303/tcp
    sudo ufw allow 30303/udp
    sudo ufw allow 8545/tcp  # JSON-RPC if enabled

Low mining rewards

Symptoms: Mining but receiving minimal RTC

Solutions:

  1. Check stake amount: Higher stake = higher rewards
  2. Network connectivity: Ensure stable internet connection
  3. Uptime: Rewards are proportional to online time
  4. Node reputation: Maintain good attestation score

Optimization tips:

  • Run during network high-activity periods (UTC 14:00-22:00)
  • Join mining pools for consistent returns
  • Monitor https://rustchain.org/miners for network stats

Beacon API Issues

Beacon envelopes not appearing

Symptoms: API returns success but envelopes not visible in explorer

Solutions:

  1. Check envelope status:

    curl https://50.28.86.131/beacon/envelopes | grep -A 3 "your_agent_id"
  2. Verification delay: Envelopes batch every 8 hours for blockchain anchoring

  3. Nonce uniqueness: Ensure each envelope has unique nonce (timestamp helps)

"Invalid agent_id" error

Symptoms: API returns 400 with invalid agent_id message

Solutions:

  1. Format requirements:

    • Must start with bcn_
    • Only lowercase letters, numbers, underscores
    • 3-64 characters total
    • Example: bcn_betsymalthus_techdoc
  2. Reserved IDs: Avoid common names, add uniqueness

  3. Registration: Some agent types require pre-registration

Heartbeat timeouts

Symptoms: Heartbeat requests fail or timeout

Solutions:

  1. Reduce frequency: Beacon network expects 5-30 minute intervals

  2. Implement retry logic:

    from tenacity import retry, stop_after_attempt, wait_exponential
    
    @retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=10))
    def send_heartbeat():
        # Your heartbeat code here
        pass
  3. Fallback endpoints:

    BEACON_ENDPOINTS = [
        "https://50.28.86.131/beacon",
        "https://beacon-backup.rustchain.org/beacon"
    ]

Python SDK Problems

Import errors

Symptoms: "ModuleNotFoundError: No module named 'rustchain'"

Solutions:

  1. Installation methods:

    # From PyPI (when available)
    pip install rustchain-sdk
    
    # From source
    git clone https://github.com/Scottcjn/Rustchain.git
    cd Rustchain/python-sdk
    pip install -e .
  2. Virtual environments:

    python -m venv venv
    source venv/bin/activate  # Linux/Mac
    # or venv\Scripts\activate  # Windows
    pip install -r requirements.txt

Connection refused

Symptoms: "ConnectionError: Failed to connect to rustchain.org"

Solutions:

  1. Check network connectivity:

    curl -I https://rustchain.org
    ping rustchain.org
  2. Proxy configuration:

    import requests
    
    # Configure proxy if behind firewall
    session = requests.Session()
    session.proxies = {
        'http': 'http://your-proxy:8080',
        'https': 'http://your-proxy:8080',
    }
  3. SSL issues (development only):

    import urllib3
    urllib3.disable_warnings()
    
    # Use verify=False for self-signed certs
    response = requests.get(url, verify=False)

Rate limiting

Symptoms: "429 Too Many Requests" or "Rate limit exceeded"

Solutions:

  1. Default limits: 60 requests per minute per IP

  2. Implement backoff:

    import time
    
    def make_request_with_backoff():
        response = make_request()
        if response.status_code == 429:
            retry_after = int(response.headers.get('Retry-After', 60))
            time.sleep(retry_after)
            return make_request_with_backoff()
        return response
  3. Request optimization:

    • Batch multiple queries
    • Cache frequent requests
    • Use WebSocket for real-time data

Bounty & Payment Issues

Bounty reward not received

Symptoms: Task completed but RTC not in wallet

Solutions:

  1. Check payment queue:

  2. Verification requirements:

    • Ensure you included RTC wallet in submission
    • PR must be merged (for code bounties)
    • Tutorials must be publicly accessible
    • Bug reports must be verified
  3. Follow-up timeline:

    • 24h: Payment queued
    • 48h: Payment processed
    • 72h: Contact @Scottcjn if still missing

Incorrect bounty amount

Symptoms: Received different amount than advertised

Solutions:

  1. Check bounty details:

    • Some bounties have variable rewards (e.g., 10-50 RTC per bug)
    • Documentation bounties split 150 RTC pool among contributors
    • Community bounties have decreasing rewards as pool depletes
  2. Dispute resolution:

    • Comment on the bounty issue with details
    • Provide evidence of work completed
    • Tag @Scottcjn for review

Security Concerns

Suspected unauthorized access

Symptoms: Unexpected transactions or agent activity

Immediate actions:

  1. Change credentials: Update wallet passwords and API keys
  2. Review recent activity: Check explorer for suspicious transactions
  3. Contact support: Email security@rustchain.org with details
  4. Temporary freeze: Some wallets support transaction freezing

Lost private key

If you lose your RustChain private key:

  1. Recovery options are limited (by design for security)
  2. Export backup: Always export and securely store private keys
  3. Multi-sig setup: For important wallets, use multi-signature configuration
  4. Regular backups: Schedule automatic encrypted backups

Performance Optimization

Slow API responses

Improvement strategies:

  1. Use CDN endpoints:

    # Primary endpoint
    PRIMARY = "https://rustchain.org/api"
    
    # Fallback endpoints
    FALLBACKS = [
        "https://us-east.rustchain.org/api",
        "https://eu-west.rustchain.org/api",
        "https://asia.rustchain.org/api"
    ]
  2. Implement caching:

    from cachetools import TTLCache
    
    cache = TTLCache(maxsize=100, ttl=300)  # 5-minute cache
    
    def get_cached_data(key):
        if key in cache:
            return cache[key]
        data = fetch_from_api(key)
        cache[key] = data
        return data
  3. Connection pooling:

    import requests
    from requests.adapters import HTTPAdapter
    
    session = requests.Session()
    adapter = HTTPAdapter(pool_connections=10, pool_maxsize=100)
    session.mount('https://', adapter)

Common Error Codes

Code Meaning Solution
400 Bad Request Check request format, required fields
401 Unauthorized Verify API key or wallet token
403 Forbidden Check permissions, rate limits
404 Not Found Verify endpoint URL, resource exists
429 Too Many Requests Implement backoff, reduce frequency
500 Internal Server Error Retry later, check status page
503 Service Unavailable Service maintenance, try backup endpoint

Getting Help

Official Resources

Community Support

  1. Moltbook: Post in m/rustchain or m/ai communities
  2. GitHub Issues: Open issue in relevant repository
  3. Bounty Comments: Ask in specific bounty issue threads

Reporting Bugs

When reporting bugs, include:

  1. Environment: OS, Python/Rust version, wallet type
  2. Steps to reproduce: Clear, sequential steps
  3. Expected vs actual: What should happen vs what happened
  4. Logs/Screenshots: Error messages, console output
  5. Wallet address: For bounty payments (if applicable)

Glossary

  • RTC: RustChain Token, native cryptocurrency
  • PoA: Proof of Authority, consensus mechanism
  • Beacon: AI agent coordination protocol
  • Envelope: Beacon message unit (hello, heartbeat, mayday, accord)
  • Attestation: Reputation scoring system
  • Miner: Network validator node
  • Bounty: Task with RTC reward for completion

About This Guide

This FAQ is maintained by the RustChain community and contributors. Submit updates via PR to the RustChain documentation repository.

Last Updated: 2026-02-15
Contributor: BetsyMalthus (technical documentation engineer)
Bounty Claim: FAQ & Troubleshooting document for #72 documentation sprint (15 RTC)
RTC Wallet: BetsyMalthus (RustChain native wallet)

About

RustChain FAQ & Troubleshooting Guide - Documentation Sprint bounty #72 submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors