Guess the type for any ABI-encoded blob of data, such as call data, return data, or anything that was created with abi.encode()
.
Usage:
npm install https://github.com/samczsun/abi-guesser
yarn add https://github.com/samczsun/abi-guesser
pnpm install https://github.com/samczsun/abi-guesser
import { guessAbiEncodedData } from '@samczsun/abi-guesser/dist/encode-guesser';
const types = guessAbiEncodedData(data);