Skip to content

docs(api): enhance OpenAPI spec with complete endpoint documentation#690

Closed
sososonia-cyber wants to merge 339 commits intoScottcjn:mainfrom
sososonia-cyber:main
Closed

docs(api): enhance OpenAPI spec with complete endpoint documentation#690
sososonia-cyber wants to merge 339 commits intoScottcjn:mainfrom
sososonia-cyber:main

Conversation

@sososonia-cyber
Copy link
Copy Markdown
Contributor

Summary

This PR completes the OpenAPI/Swagger documentation bounty (#502) by adding all required API endpoints.

Changes

  • Added - Network statistics endpoint
  • Added - Hall of Fame leaderboard (5 categories)
  • Added - RIP-301 fee pool statistics
  • Added - Admin transfer endpoint (requires X-Admin-Key)
  • Added - Withdrawal request endpoint
  • Added - Block explorer page endpoint
  • Added and tags for better organization
  • Enhanced request/response schemas with detailed descriptions

Verification

  • OpenAPI spec validates successfully
  • All endpoints documented with request/response examples
  • Based on live node testing against https://50.28.86.131

Bounty


David-code-tang and others added 30 commits February 12, 2026 16:49
Merge bounty hardening patch for admin OUI denylist endpoints.
Merge explorer dashboard XSS hardening patch.
Merge security patch for /pending/list and /pending/integrity auth.
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
…ion (PR Scottcjn#127)

* hardening: payout preflight validation + no-500 transfer guards

* fix(security): enforce pending 2-phase commit for signed transfers

* fix: deployment-compatible payout_preflight imports

---------

Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Co-authored-by: David Tang <davidtang@DaviddeMacBook-Air.local>
Implements a device-age oracle check + adds tests.

Bounty: rustchain-bounties#2
Adds fingerprint preflight validator + tests.

Bounty: rustchain-bounties#44
New tool: standalone node health monitor with Discord alerting. Credits liu971227-sys.
Add guidance to verify/pin the RustChain node certificate when using curl.

Includes fingerprint check + optional --cacert pinning; keeps Contributing/License sections.
Add a wRTC (Solana) quickstart guide with anti-scam checks and reference links.

Includes lightweight doc validation tests.
Add an optional helper script to show RustChain mining status in Discord Rich Presence.
Add a 2D/3D Hardware Museum UI (served by the node) plus best-effort miner attestation history and balances endpoints for explorer integrations.
Add a browser-based light client served by the node origin, including BIP39 wallet creation/import and Ed25519-signed transfers.

Includes replay-protected signed transfers and DB path overrides for local/dev environments.
… (Scottcjn#174)

Beacon integration demo - bounty Scottcjn#158. Approved and 100 RTC paid to liu971227-sys.
createkr and others added 19 commits March 6, 2026 07:45
* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* feat: implement bounty Scottcjn#686 full explorer SPA suite (tier1+tier2+tier3)

- Add static no-build Single Page Application explorer
- Tier 1: Core features (health, epoch, miners, blocks)
- Tier 2: Advanced features (transactions, search, hardware breakdown)
- Tier 3: Premium features (Hall of Rust, real-time updates, PWA)
- Responsive dark theme with modern UI/UX
- Robust error handling and loading states
- Service worker for offline support
- API proxy server with caching
- Comprehensive documentation and test page

Files added:
- explorer/index.html: Main SPA with all tier features
- explorer/static/css/explorer.css: Complete dark theme stylesheet (749 lines)
- explorer/static/js/explorer.js: Application logic with API integration (753 lines)
- explorer/static/js/sw.js: Service worker for offline caching
- explorer/explorer_server.py: Python server with API proxy
- explorer/manifest.json: PWA manifest
- explorer/test.html: API endpoint test page
- explorer/README.md: Comprehensive documentation
- explorer/requirements.txt: Python dependencies

Total: 2,905 lines of code added across 9 files

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* chore: add explorer quick start script

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* feat: implement RIP-302 Agent Economy Python SDK (bounty Scottcjn#685)

Add production-quality Python SDK for RustChain Agent Economy APIs:

Core Components:
- AgentEconomyClient: Unified client for all Agent Economy operations
- Agent Manager: Wallet creation, profile management, Base integration
- Payment Processor: x402 protocol for machine-to-machine payments
- Reputation Client: Beacon Atlas integration with scoring and attestations
- Analytics Client: Earnings reports, activity metrics, BoTTube integration
- Bounty Client: Automated bounty discovery, claiming, and submission

Documentation:
- RIP-302 specification document (rips/docs/RIP-302-agent-economy.md)
- Comprehensive SDK documentation (sdk/docs/AGENT_ECONOMY_SDK.md)
- Updated main SDK README with Agent Economy section
- 9 comprehensive usage examples

Testing:
- 32 unit tests covering all modules
- Integration test support with mocks
- All tests passing (61 total SDK tests)

Features:
- Agent identity and wallet binding
- x402 payment protocol (HTTP 402 Payment Required)
- Reputation tiers (ELITE, VERIFIED, TRUSTED, etc.)
- Video analytics for BoTTube platform
- Automated bounty workflow
- Premium endpoint support
- Full error handling with custom exceptions
- Context manager support
- Type hints with py.typed marker

Version: 1.0.0

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* bounty Scottcjn#684: add reproducible Agent-to-Agent transaction test challenge

Implement RIP-302 specification for reproducible A2A transaction testing across
Beacon Protocol, Grazer skill discovery, and x402 payment rails.

Artifacts added:
- rips/docs/RIP-302-agent-to-agent-test-challenge.md: Full specification
- bounties/issue-684/scripts/run_challenge.py: Challenge runner with 4 scenarios
  * heartbeat: Basic A2A heartbeat exchange (3 steps)
  * contracts: Contract negotiation & settlement (6 steps)
  * grazer: Skill discovery via Grazer (3 steps)
  * payment: x402 payment flow (3 steps)
- bounties/issue-684/scripts/verify_evidence.py: Evidence verification
- bounties/issue-684/scripts/collect_proof.py: Proof bundle collection
- bounties/issue-684/scripts/ci_validate.sh: CI/CD integration script
- bounties/issue-684/fixtures/: Test agent configurations
- bounties/issue-684/docs/: Comprehensive documentation
  * CHALLENGE_GUIDE.md: Detailed usage instructions
  * EVIDENCE_SCHEMA.md: Evidence format reference
- bounties/issue-684/proof.json: Sample proof bundle with verified evidence

Features:
- Deterministic test execution with reproducible evidence digests
- Cryptographic evidence chain using blake2b hashes
- Automated verification of evidence integrity and completeness
- Mock mode for testing without beacon-skill/grazer-skill dependencies
- CI/CD ready with automated validation pipeline
- Comprehensive documentation for bounty hunters and auditors

All 4 scenarios tested and verified successfully.
Evidence integrity confirmed with 0 issues.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* feat(java): add complete RustChain Java SDK and validator tools for bounty Scottcjn#675

- Java SDK with hardware detection (CPU, BIOS, OS, memory, storage)
- Vintage era classification with scoring multipliers (Classic to Modern)
- Entropy generator with SHA-256 iterative hashing
- Validator core for proof-of-antiquity generation
- CLI tool with validate/verify/info/score commands
- Node health monitor for system resource tracking
- Complete model layer (ProofOfAntiquity, HardwareFingerprint, Score, etc.)
- JUnit 5 test suite with 15+ test cases
- Build system: Maven (pom.xml), Gradle (build.gradle), shell scripts
- Comprehensive documentation (README.md, JAVA_IMPLEMENTATION.md)
- Example code and integration guides

Deliverables:
- ~2,500 lines of production Java code
- Cross-platform support (Windows, macOS, Linux)
- Compatible with existing proof_of_antiquity.json format
- Ready for integration with Spring Boot, REST APIs, and more

Technical specs:
- Java 11+ compatible
- Dependencies: Jackson 2.16.1, picocli 4.7.5, SLF4J 2.0.11
- Vintage scoring: 100-500 base + bonuses + multipliers up to 2.0x
- Rank system: Common → Uncommon → Rare → Epic → Legendary

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* Upgrade /explorer with Tier 1 real-time miner dashboard

* Extend /explorer with Tier 2 agent marketplace view

---------

Co-authored-by: liu971227-sys <248239659+liu971227-sys@users.noreply.github.com>
- Deploy manifesto link to README nav (rustchain.org/manifesto.html)
- Add Boudreaux Computing Principles (docs/BOUDREAUX_COMPUTING_PRINCIPLES.md)
- Link Boudreaux Principles in README nav

"Some Things Just Cook Different" - from Acadia to the chain.
* feat: Add Miner Dashboard (Tier 1 - 50 RTC Bounty)

- Real-time miner dashboard with architecture badges
- G4, G5, POWER8, Apple Silicon, Modern badges
- Online/offline status indicators
- Antiquity multiplier display
- Last attestation timestamps
- Sortable table with search
- Auto-refresh every 30 seconds
- Dark theme matching RustChain branding
- Mobile responsive design
- Mock data fallback when API unavailable

Bounty: Issue Scottcjn#686 Tier 1 (50 RTC)

* feat: Add Agent Economy CLI Tool (Issue Scottcjn#683 - 25 RTC)

- CLI tool for posting and claiming jobs
- List open jobs with category filter
- Post new jobs with title, description, category, reward
- Claim jobs from terminal
- Submit deliveries with URLs
- Get job details
- Marketplace statistics

Usage:
  rustchain-agent jobs list
  rustchain-agent jobs post "Title" -d "Description"
  rustchain-agent jobs claim job_id
  rustchain-agent jobs deliver job_id https://...
  rustchain-agent jobs info job_id
  rustchain-agent stats

Install: pip install -e .

Bounty: Issue Scottcjn#683 Tier 1 (25 RTC)

* feat: Add Agent Economy Marketplace View (Issue Scottcjn#686 Tier 2 - 75 RTC)

- Real-time marketplace dashboard
- Open jobs with category filters
- Job lifecycle visualization (Posted → Claimed → Delivered → Completed)
- Marketplace stats (volume, fees, active agents)
- Agent reputation lookup by wallet
- Search functionality
- Auto-refresh every 30 seconds
- Dark theme matching RustChain branding
- Mobile responsive
- Mock data fallback when API unavailable

Bounty: Issue Scottcjn#686 Tier 2 (75 RTC)

---------

Co-authored-by: Atlas (OpenClaw) <atlas@openclaw.ai>
- Rust CLI tool for generating and validating RTC addresses
- Supports address generation, validation, and key derivation
- Includes unit tests
- Adds GitHub Actions CI workflow
- MIT License
* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* feat(go): implement RIP-302 Agent Economy Go SDK for bounty Scottcjn#685

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…cjn#627)

* security: trust X-Real-IP over X-Forwarded-For in node endpoints

* docs: add comprehensive protocol draft for bounty Scottcjn#8

* feat: implement Scottcjn#685 tier3 autonomous multi-agent pipeline demo

- Add 3 specialized agents: Validator, Settlement, Reward
- Implement verifiable RTC transaction flow with mock/real modes
- Create pipeline orchestrator for coordinated agent execution
- Add comprehensive test suite (32 tests) for flow integrity
- Include runnable demo scripts and verification tools
- Generate evidence artifacts (receipts, proofs, summaries)
- Document architecture, API reference, and verification guide

Deliverables:
- tier3/agents/validator_agent.py - Agent 1: PoA validation
- tier3/agents/settlement_agent.py - Agent 2: Transaction settlement
- tier3/agents/reward_agent.py - Agent 3: Reward distribution
- tier3/agents/pipeline_orchestrator.py - Pipeline coordination
- tier3/transactions/rtc_transaction.py - Core transaction flow
- tier3/tests/test_pipeline.py - Test suite (32 tests, 100% pass)
- tier3/demo_pipeline.py - Runnable demo script
- tier3/verify_tier3.py - Reviewer verification script
- tier3/README.md - Comprehensive documentation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: xr <xr@xrdeMac-mini-2.local>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Implement property-based testing using Hypothesis
- Test 6 key ledger invariants:
  1. Conservation of RTC (total in = total out + fees)
  2. Non-negative balances (no wallet below 0)
  3. Epoch reward invariant (exactly 1.5 RTC per epoch)
  4. Transfer atomicity (failed transfers don't change balances)
  5. Antiquity weighting (higher multiplier = more rewards)
  6. Pending transfer lifecycle (24h confirm or void)
- Include both mock tests and live node tests
- Run with: python tests/test_ledger_invariants.py --live
- Interactive miner setup wizard
- One-command setup: pip install clawrtc && clawrtc setup
- Hardware auto-detection (CPU, RAM, architecture)
- Platform detection (Linux, macOS, various architectures)
- Node connectivity check
- Automatic miner file download
- Virtual environment setup
- Wallet configuration
- Optional fingerprint checks
- Optional systemd/launchd service installation
- Health check commands

Usage:
    pip install clawrtc
    clawrtc setup
    clawrtc start
    clawrtc status
    clawrtc health

Bounty: Scottcjn/rustchain-bounties#766
- Store daily star snapshots in SQLite
- Render growth chart (HTML dashboard)
- Track all 100+ Scottcjn repos
- Show total stars, daily delta, top growers
- Query 3 attestation nodes: 50.28.86.131, 50.28.86.153, 76.8.228.245:8099
- Display version, uptime, db_rw status, tip age
- Formatted table output
- JSON output option
- Python stdlib only (no dependencies)

Bounty: Scottcjn#1111 - 8 RTC
…ting

- Add @app.errorhandler(500) and @app.errorhandler(Exception) to catch unhandled exceptions
- Return proper JSON error responses instead of HTML 500 errors
- Guard check_ip_rate_limit() against None miner_id to prevent DB errors
- Fixes Bounty Scottcjn#1147: /attest/submit endpoint crashes on invalid JSON inputs
- Add tools/github_star_tracker.py
- Tracks all Scottcjn repo stars over time
- Stores daily star snapshots in SQLite
- Renders growth chart (HTML)
- Shows total stars, daily delta, top growers

Reward: 10 RTC
Wallet: sososonia-cyber
- Implement MCP server for RustChain blockchain
- Tools: health, miners, epoch, balance, transfer
- Connect to primary node 50.28.86.131 with fallback

Closes: rustchain-bounties#1152
- Added /api/stats endpoint for network statistics
- Added /api/hall_of_fame endpoint for leaderboard (5 categories)
- Added /api/fee_pool endpoint for RIP-301 fee pool stats
- Added /wallet/transfer (admin) endpoint
- Added /withdraw/request endpoint
- Added /explorer endpoint
- Added Network and Explorer tags
- Updated request/response schemas with detailed descriptions

Bounty: Scottcjn#502 OpenAPI/Swagger Documentation for Node API (30 RTC)
@github-actions github-actions bot added documentation Improvements or additions to documentation BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) consensus Consensus/RIP-200 related node Node server related tests Test suite changes size/XL PR: 500+ lines labels Mar 8, 2026
@achievefibromyalgia-lgtm
Copy link
Copy Markdown

Code Review - PR #690

Task: OpenAPI documentation

Key Features:

  • Complete API documentation
  • Request/response schemas
  • Good coverage

Verdict: Approve

Wallet: achieve07-bot

@Scottcjn
Copy link
Copy Markdown
Owner

Scottcjn commented Mar 8, 2026

@achievefibromyalgia-lgtm — Your account was created today and has posted identical "Approve" reviews on 12 PRs in rapid succession, all requesting payment to the same wallet.

This is review farming. Rubber-stamp reviews without genuine code analysis don't qualify for bounties. We're not paying for template-generated "LGTM" comments.

If you're a real person who wants to contribute, we welcome genuine code reviews that catch actual bugs, suggest improvements, or identify security issues. Quality over quantity.

— Sophia (Project Maintainer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) consensus Consensus/RIP-200 related documentation Improvements or additions to documentation node Node server related size/XL PR: 500+ lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.