fn parse_encoded_send_view(raw: &str) -> Result<SendView>Expand description
Decode and parse the full-object JSON input into a [SendView].
The input may be base64-encoded JSON (legacy CLI behavior) or raw JSON (this CLI’s
convenience). Real JSON text starts with { and contains characters outside the base64
alphabet, so decoding as base64 fails fast on raw JSON; when decoding fails (or the decoded
bytes aren’t valid UTF-8) we fall back to treating the original string as the JSON text
directly. Either way, JSON is parsed exactly once, so a deserialize failure (e.g. a missing
required field) is always the real error — we never re-parse the encoded string as JSON
and mask it behind a generic “expected value” message.