Hi,
for visualizing that within https://aenalytics.org I am currently trying to figure out how to decode this data after the transaction happend, assuming I am not involved in the transaction.
What information is necessary to decode all of the data and how can this be achieved using the aepp-sdk-js?
Example (TESTNET)
Contract
- ct_2fi1isHPF8mzAzZvGEuFs8TYFLNutbqHuyKRLpCjg75oQknGuD
ContractCreateTx
-
tx-hash
- th_2onEA5Tq15ZYSLog13G1S84HDEf2LqE8JKCrXHgdU7v3e1KJSZ
-
calldata
cb_KxFE1kQfP4oEp9E=
-
code
cb_+QLQRgOg/Ckw0vmeni8+5GNpOxl+ge+jZjlwyLnhkPq6Wc6w/nXAuQKiuQHz/ggmfsUCNwL39/cMAwMoHAICKBwAAgIDEZJIUr40AAD+RNZEHwA3ADcAAgMReyZmWg8CghoOhAMBAz/+aHbW3wI3AjcCd/cn5wAn5wEzBAIHDAg2BAIMAQACAxFodtbfNQQCKBwCACgcAAACADkAAAEDA/57JmZaADcARwNeAGY/zJ8BAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFK+CAQEAG2+BiHd3AP6EiW0AADcARwMBAoL+kkhSvgA3AndHBDcAawPaAIICd3cgOAAVSGVsbG8HDA4gOAAJSGkHDAogOAAlR3JlZXRpbmdzBgMGBwwMAQM/DAP/BgMGOh4GCSwgADoqCAAGGgoKgmgPm58BAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgIId3cBAz8MA/8GAwb+s5nDVgQ3AndHABcLAgAjOAAUBwwEDAKEPAQCZ//YggAUr4IBAQAbZK+CAQEAG2R3dycMBDQChAED/wEDf/7qgX5lADcAB1MAAP7zJL2DADcAJzcADAKEDAMrEQgmfsU/BAMRaHbW37inLwkRCCZ+xREuXjc1EUTWRB8RaW5pdBFodtbfWS5MaXN0SW50ZXJuYWwuZmxhdF9tYXAReyZmWj1yZWdpc3Rlcl9vcmFjbGURhIltAClnZXRfb3JhY2xlEZJIUr5BcmVzcG9uZF90b19ncmVldBGzmcNWMWdyZWV0X29yYWNsZRHqgX5lLWdldF9iYWxhbmNlEfMkvYNFcmVzcG9uZF90b19ncmVldHOCLwCFNC4zLjAAhBFHww==
-
ABI version
- 3
-
VM version
- 5
ContractCallTx
-
tx-hash
th_3kqL4vWNXYLjPN7hu5YtdsiKRJSRCxJyF5znrLUWjkreghrM2
-
calldata
cb_KxGzmcNWKwlIaZ8AoNGhJM4ZHvCOjS2Pv0JFBAE8m4quzsb3F4Xy7iDd86aIGyw4eg==
-
ABI version
- 3
-
returnValue
- unknown (how can I retrieve the return value???)
I would appreciate if anybody can help here. Maybe @nduchak.chain and @hanssv.chain can help me? ![]()
- is the information I listed above enough the be able to decode the calldata?
- how can I obtain the returnValue of a ContractCallTx?
As we are using the middleware I know that there is an endpoint that returns a bit more information about the ContractCallTxs for a certain contract. This can for this specific case be retrieved by using the following endpoint:
However, this information currently cannot be retrieved for one specific contract call and additionally there is no possiblity to get the decoded value for the calldata of the ContractCreateTx. That is why I need a way to be able to decode this data by using the aepp-sdk-js or any other client-side library.
Marco
that should be sufficient