0.1.7 • Published 2 years ago
hex-input-tools v0.1.7
Library for parsing transaction input data
npm i hex-input-tools --save
const InputHexTools = require('hex-input-tools');
const inputhexTools = new InputHexTools(web3, abi, input, contractAddress)
inputhexTools.prettyHex()
//response
{
methodName,
paramsLength,
paramsKeys,
paramsTypes,
paramsValues,
readibleView
}
inputhexTools.getContractAPI()
//response
{
read: [{methodName: {inputs: []}}];
write: [{methodName: {inputs: []}}]
}