Skip to content

RustChain Python SDK — pip install rustchain (100 RTC) #2297

@Scottcjn

Description

@Scottcjn

Bounty: 100 RTC

Description

Create a Python SDK for interacting with RustChain nodes. Should be installable via pip install rustchain and provide clean programmatic access to all public API endpoints.

Requirements

  • Published to PyPI as rustchain
  • Async support (aiohttp or httpx)
  • Type hints throughout
  • Methods for:
    • client.health() — node health check
    • client.epoch() — current epoch info
    • client.miners() — list active miners
    • client.balance(wallet_id) — check RTC balance
    • client.transfer(from, to, amount, signature) — signed transfer
    • client.attestation_status(miner_id) — check attestation
    • client.explorer.blocks() — recent blocks
    • client.explorer.transactions() — recent transactions
  • Error handling with typed exceptions
  • README with quickstart examples
  • At least 20 unit tests

Bonus (25 RTC)

  • CLI wrapper: rustchain balance my-wallet
  • WebSocket support for real-time block feed

Reference

  • API endpoints: https://50.28.86.131/health, /epoch, /api/miners, etc.
  • Existing BoTTube Python SDK for style reference: pip install bottube

Wallet

Include your RTC wallet address in the PR description.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions