[SOLVED]How to decode the call_data?

For example, I called a contract for token transfer:

and got the call_data:
cb_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACCfq3OuE9x3J5pHRHB33Z8yP3pHai0PSYjfQMjbf0My4wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgxSR965r0/OrkKyuAbQ5KZaOhls5dTvKOG8Eiy9CisFwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdn+oYU=

How could I decode the call_data to human readable data?

Try contractDecodeData function

1 Like

Thanks, I found this: GitHub - aeternity/aesophia_http

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

thank you

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

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 ?

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