Closed itxtoledo closed 2 days ago
@itxtoledo Here is an example code about how to decode parameters.
@itxtoledo Here is an example code about how to decode parameters.
yes but in my example the second data will throw this: "The encoded string is not valid. Its length must be a multiple of 64."
Where does contractEvent.parameter.value.data
come from? And which version of TronWeb did you use?
Im trying to listen for all blockchain transactions, i already have done receiving TRX, but im stuck on decode TRC20 transactions from
block.transactions
.This is my code for decode data from "TriggerSmartContract.data" (from params.tx.raw_data.contract[0].parameter.value.data):
And this is the output:
In this example two "transfer" events, two parameters comes wrong, but the second in special has a data more longer than expected, why? And How to proper decode these datas?