eth.rb icon indicating copy to clipboard operation
eth.rb copied to clipboard

Decode transaction input

Open wafcio opened this issue 8 months ago • 3 comments

JSON RPC getTransactionByHash returns transaction details with "input" data. I have tried to find an easy way to decode the input field, but I haven't been able to find one.

The problem is that the first 32 bytes point to the function name, and the rest are related to decoding based on ABI. I need help finding a way to select a proper function from ABI.

wafcio avatar May 31 '24 23:05 wafcio