Skip to content

setup.sh balance check command points at a 404 wallet path #5712

@william08190

Description

@william08190

Bug

The setup.sh summary prints a balance-check command that points to a non-existent route:

curl -sk '$NODE_URL/wallet/$WALLET_NAME' | python3 -m json.tool

That path returns 404 on the active node shape.

Reproduction

Using the same wallet/miner ID from a local miner run:

curl -sk -o /tmp/wallet_path.out -w '%{http_code} %{size_download}\n' \
  'https://bulbous-bouffant.metalseed.net/wallet/RTC219810c1e939b0f1a8887a5528949da0e5c97b78'

Result:

404 207

The node endpoint used by the miner works:

curl -sk 'https://bulbous-bouffant.metalseed.net/balance/RTC219810c1e939b0f1a8887a5528949da0e5c97b78'

Result:

{"amount_i64":0,"balance_rtc":0.0,"miner_pk":"RTC219810c1e939b0f1a8887a5528949da0e5c97b78"}

The public docs also consistently point users at the wallet balance endpoint shape:

curl -sk 'https://rustchain.org/wallet/balance?miner_id=YOUR_WALLET_NAME'

Expected behavior

The setup summary should print a command that works with the documented wallet-balance endpoint, e.g.

curl -sk "$NODE_URL/wallet/balance?miner_id=$WALLET_NAME" | python3 -m json.tool

Fix

I added this correction to PR #5711 along with the detached miner log buffering fix:

#5711

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions