Ethereum Data Decoder (TypeScript)
The library can be used to decode contract transactions data. The library uses TypeScript to provide type information for the decoded data, this helps it self document and make it easier for you to use the library.
Installation
Using NPM
npm install eth-data-decoder
using Yarn
yarn add eth-data-decoder
Example
; const contractABI = ;const decoder = ; // ...// ...// ... // Decode the transaction inputconst decodedData = ; // Get the name of the function calledconsole; // Get the list of the param names and its valuesdecodedDataparams
License
MIT © 2019 Zohaib Rauf.