There is a tool on npm ethereum-input-data-decoder. And yes, i can read input data as hex.
And i hope that i can decode transaction's inputdata using golang.
For example 0xa9059cbb00000000000000000000000067f883a42031215622e0b84c96d0e4dca7a3ce810000000000000000000000000000000000000000000000000000000005f5e100
thx.
Best Answer
took me a bit of time to figure out that myAbi.Unpack(...) unpacks output of a method or event. In your case (and mine) we want to unpack the inputs. Here is a working code sample