abi-decoder
abi-decoder copied to clipboard
Receiving undefined decode input from transacation
Hi, I am trying to decode input from transaction that I receive:
{
from: '0x1987d1c15d95cab34c154ede0a4c3bf7dba5c287',
input: '0xa9059cbb0000000000000000000000001987d1c15d95cab34c154ede0a4c3bf7dba5c287000000000000000000000000000000000000000000000000002386f26fc10000',
to: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
}
The code looks like:
abiDecoder.addABI(ABI);
const decodedData = abiDecoder.decodeMethod("0xa9059cbb0000000000000000000000001987d1c15d95cab34c154ede0a4c3bf7dba5c287000000000000000000000000000000000000000000000000002386f26fc10000");
console.log(decodedData);
But this is returning undefined.
Any thing that I am missing.
Hey @CovalentBond did you find any solution to this even I am facing the same issue?
You can try to check the ABI.Especially the data type