duanbei3747 2019-08-02 12:27
浏览 108

如何从嫩薄荷GET文本响应中解码base64

I queried a transaction result using:

http://localhost:26657/tx?hash=0x43B8422E9FD4FD4A01213772E989CDA5F36103A0EA679B95932052B20C016267

and then fetch the transaction content 'tx' in the returned JSON object.

rgEoKBapCjZS59jqCgpnb29nbGUuY29tEg4KCW5hbWV0b2tlbhIBNRoUr67sqicZ8wXbWkNLD8E6c0TGM/YSBBDAmgwaagom61rphyEC6ICqudQCIugpL8NEvi6Fblxk+ZB+51T+NUDg0WdMQCUSQG0z4HhxINONIjPcQc/GDyVOjU9CRovZaT3GxcekSvN6SBQx94xgwMkq7EqivCxSqYB/TDC0Gp5Z/6z2+Z4Km3k=

I decoded this with

base64.StdEncoding.DecodeString(base64Str)

and then it printed the following result

�((� 6R���

google.com ┼▒└␊├⎺┐␊┼5���'��ZCK�:sD�3��� j &�Z�!耪��"�)/�D�.�n\d��~�T�5@��gL@%@m3�xq Ӎ"3�A��%N�OBF��i=��ǤJ�zH1��`��*�J��,R��L0��Y����� �y

What's the correct way to decode a transaction?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮