Skip to content

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions