[SOLVED]How to decode the call_data?


#1

For example, I called a contract for token transfer:
https://www.aeknow.org/block/transaction/th_YG2QWcVJTaB6xqEqzvPDSSLn54WcmtevFaHNWEtP9sLL8oaR8

and got the call_data:
cb_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACCfq3OuE9x3J5pHRHB33Z8yP3pHai0PSYjfQMjbf0My4wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgxSR965r0/OrkKyuAbQ5KZaOhls5dTvKOG8Eiy9CisFwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdn+oYU=

How could I decode the call_data to human readable data?


#2

Try contractDecodeData function


#3

Thanks, I found this: https://github.com/aeternity/aesophia_http


#4

Hi , how did you make the contract call success, could you share the commands ?

thank you


#5

I just used js-sdk, and follow the instructions:


#6

It’s different now, the latest cli-js needs --descrPath, and when version cli-js and what node do you use, I need some old version node for fix someting. Could you do some help ?


#7

I haven’t use it for a while, and just try to decode more details to show at the explorer…