@hacken/abi-decode-cli
v1.0.1
Published
A command-line interface tool that decodes typed ABI data.
Downloads
10
Readme
abi-decode-cli
A command-line interface tool that decodes typed ABI data.
Installation
$ npm install -g @hacken/abi-decode-cli
Usage
npx abi-decode -d <hex-data> -t <types>
Examples
Decoding function call
npx abi-decode -d 0x561b24630000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000000 -t function:uint256,uint256,bool
> Call: 0x561b2463
> 0: 6 (uint256)
> 1: 1000000000000 (uint256)
> 2: false (bool)
Decoding Transfer event data
npx abi-decode -d 0x000000000000000000000000000000000000000000000000000000e8d4a51000 -t uint256
> 0: 1000000000000 (uint256)