Skip to content

Receiving undefined decode input from transacation #90

@CovalentBond

Description

@CovalentBond

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions