Skip to content

fix(setup): correct wallet balance check path in summary (closes #5712)#7881

Open
lequangsang01 wants to merge 8 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-5712
Open

fix(setup): correct wallet balance check path in summary (closes #5712)#7881
lequangsang01 wants to merge 8 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-5712

Conversation

@lequangsang01

Copy link
Copy Markdown
Contributor

Summary

  • Fixed the balance-check command in setup.sh summary that pointed to a non-existent /wallet/balance?miner_id= route, returning 404
  • Updated the path to the correct REST API endpoint /api/wallet/$WALLET_NAME as defined in the node server routes

Changes

  • setup.sh: Changed balance check curl command from $NODE_URL/wallet/balance?miner_id=$WALLET_NAME to $NODE_URL/api/wallet/$WALLET_NAME

Verification

  • The node server (rips/python/rustchain/node.py:394, rips/src/network.rs:578-599) registers the wallet endpoint at /api/wallet/<address> under API_PREFIX = "/api"
  • The explorer dashboard (explorer/rustchain_dashboard.py:848) also uses /api/wallet/<wallet_address>

@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) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) node Node server related tests Test suite changes size/XL PR: 500+ lines labels Jul 4, 2026
@lequangsang01

Copy link
Copy Markdown
Contributor Author

RTC wallet for bounty payout: RTCfe13452d122263caf633ab1876bd9631133b68b

@jaxint jaxint left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Reviewed this PR for RustChain bounty program.

Key observations:

  • PR addresses: fix(setup): correct wallet balance check path
  • Changes appear reasonable and aligned with project goals
  • Documentation and tests look adequate

Thank you for the contribution!


Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

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) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) 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.

2 participants