1.0.5 • Published 1 year ago
bytekode-eth-decoder v1.0.5
Dcyfr
Decode EVM based transactions
Install the package with npm
npm install bytekode-eth-decoder
or
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)