You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really helpful if the stellar-xdr cli supported when decoding extracting subfields.
For example, the other day I was trying to get the memo extracted of a transaction, and I wanted to view the raw bytes of just that one field in the XDR. I was sort of able to do it with the following, but it was a pretty imperfect experience. I had to decode the entire tx, then re-encode the field I wanted to see in binary. I couldn't actually encode the field I wanted, the .text subfield of memo, because it has no named type. The best I could do was re-encode the memo field which wraps the text field.
It would be really helpful if the stellar-xdr cli supported when decoding extracting subfields.
For example, the other day I was trying to get the memo extracted of a transaction, and I wanted to view the raw bytes of just that one field in the XDR. I was sort of able to do it with the following, but it was a pretty imperfect experience. I had to decode the entire tx, then re-encode the field I wanted to see in binary. I couldn't actually encode the field I wanted, the
.text
subfield of memo, because it has no named type. The best I could do was re-encode the memo field which wraps the text field.The experience should be something like:
Ref to offline conversation:
cc @stellar/devx
The text was updated successfully, but these errors were encountered: