Extracts just the status from transaction effects BCS without fully parsing.
This is optimized for cases where we only need the status (success/failure)
without parsing the entire effects structure.
Uses a minimal BCS struct that only parses fields up to and including status,
since BCS fields are read sequentially. First tries to parse with full error details,
then falls back to a version without error parsing if the error enum has unknown variants.
For errors with data, serializes the error as JSON to preserve all information.
Extracts just the status from transaction effects BCS without fully parsing. This is optimized for cases where we only need the status (success/failure) without parsing the entire effects structure.
Uses a minimal BCS struct that only parses fields up to and including status, since BCS fields are read sequentially. First tries to parse with full error details, then falls back to a version without error parsing if the error enum has unknown variants.
For errors with data, serializes the error as JSON to preserve all information.