@hacken/abi-decode-cli

1.0.1 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @hacken/abi-decode-cli

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.2 kB

Total Files

6

Last publish

Collaborators

  • alexnzarov