Skip to content

🟑 [Medium] wallet list writes human-readable text + JSON to stdout simultaneously (breaks piping) #154

@askeluv

Description

@askeluv

Summary

nansen wallet list outputs a human-readable summary followed by a JSON object β€” both to stdout. Every other command outputs only JSON.

Steps to reproduce

nansen wallet list
# stdout:
#   qa-trader β˜…
#     EVM:    0x3209...
#     Solana: 6rfZ6B...
#
# {"success":true,"data":{"wallets":[...]}}

Impact

nansen wallet list | jq . errors because of the leading human-readable text. Breaks scripting for any user relying on the wallet list in automation.

Fix

Route human-readable summary to /dev/tty (or stderr), keep only JSON on stdout β€” consistent with all other commands.

Discovered via

Clawfooding β€” The Lapsed User and Scripter personas (v1.10.0)

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