bytekode-eth-decoder
v1.0.5
Published
Install the package with npm ``` npm install bytekode-eth-decoder ``` or ``` yarn add bytekode-eth-decoder ``` 1. Import the decoder class from the library ``` import { Dcyfr } from 'bytekode-eth-decoder' ```
Maintainers
Readme
Dcyfr
Decode EVM based transactions
Install the package with npm
npm install bytekode-eth-decoderor
yarn add bytekode-eth-decoder- Import the decoder class from the library
import { Dcyfr } from 'bytekode-eth-decoder'- Initialize a decoder instance and input transaction data
const abi = 'your_AbI'
const dcyfr = new Dcyfr(abi)
const data = 'Transaction_data_hex_string'
const decodedResponse = dcyfr.getTxInfoFromData({ data })
console.log(decodedResponse)