1.0.5 • Published 1 year ago

bytekode-eth-decoder v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Dcyfr

Decode EVM based transactions

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'
  1. 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)