rustchain-client
A Rust HTTP client library for the RustChain Proof-of-Antiquity blockchain API.
RustChain is the first blockchain that rewards vintage hardware (PowerPC G4, IBM POWER8, Pentium 4, etc.) for being old — not fast. This crate provides a typed, async Rust client for querying the RustChain node API.
Features
- Node Health — check node status, uptime, version, and peer count
- Epoch Info — get current epoch number, duration, reward pool, and attestation count
- Miners — list active miners with hardware architecture and antiquity multipliers
- Wallet Balance — check any wallet's RTC balance and earnings history
- Attestation — submit hardware fingerprint attestations
- Governance — list proposals, get details, and submit signed votes
- Agent Economy — list open jobs from the RIP-302 Agent Economy marketplace
- Self-signed certs — supports nodes using self-signed TLS certificates
- No OpenSSL — uses
rustlsfor TLS, works on all platforms without system dependencies
Quick Start
Add to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["rt-multi-thread", "macros"] }
Example: Check Node Health and List Miners
use RustChainClient;
async
Example: Check Wallet Balance
use RustChainClient;
# async
Example: List Agent Economy Jobs
use RustChainClient;
# async
Example: List Governance Proposals
use RustChainClient;
# async
API Coverage
| Endpoint | Method | Function |
|---|---|---|
/health |
GET | health() |
/epoch |
GET | epoch() |
/api/miners |
GET | miners() |
/wallet/balance |
GET | wallet_balance(wallet) |
/attest/submit |
POST | submit_attestation(attestation) |
/governance/proposals |
GET | proposals() |
/governance/proposal/{id} |
GET | proposal(id) |
/governance/vote |
POST | vote(vote) |
/agent/jobs |
GET | agent_jobs() |
Node URLs
| Node | URL | Notes |
|---|---|---|
| Primary | https://rustchain.org |
Main node + explorer |
| Direct IP | https://50.28.86.131 |
Same node, direct IP |
| Ergo Anchor | https://50.28.86.153 |
Ergo anchoring node |
License
MIT — see LICENSE for details.