Skip to content

query stake-address-info: mainnet address rendered with stake_test1 prefix in output #1402

Closed

Description

@disassembler

Description

cardano-cli query stake-address-info renders the address field in its output using the stake_test1 bech32 prefix even when querying a mainnet address.

Steps to reproduce

cardano-cli query stake-address-info \
  --mainnet \
  --address stake1u85was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcvaj7xm

Actual output

[
    {
        "address": "stake_test1ur5was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcthcuzx",
        ...
    }
]

The address field uses the stake_test1 prefix, which is incorrect for a mainnet address.

Expected output

The address field should use the stake1 prefix, matching the network of the query:

[
    {
        "address": "stake1u85was6qks0exltkfl74clay4p6l272ry6kpkgweyfs7vtcvaj7xm",
        ...
    }
]

Notes

The input address (stake1u...) is correctly recognised as a mainnet address and the query succeeds. Only the rendered output address uses the wrong prefix. The underlying stake credential is identical in both cases.

Activity

  1. self-assigned this
    on Aug 3, 2026
  2. linked a pull request that will close this issueGuard against network id mismatches #1405on Aug 4, 2026
  3. added
    reproduced
    bug
    on Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugreproduced

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions