#ethereum #cli #search #smart-contracts #eth #web3 #events

bin+lib ducketh

Ducketh is your local companion when trying to decode some unknown Ethereum smart contract signature

1 unstable release

0.1.0 Oct 30, 2023

#22 in #eth

MIT license

48KB
1K SLoC

Ducketh

Ducketh is your local companion when trying to decode some unknown Ethereum smart contract signature.

Installation

Ducketh is for now only available as a crate. Install it using cargo install

cargo install ducketh

Quick start

Add some ABIs to your local Ducketh registry:

# Recursively add every ABIs in the './artifacts' folder
ducketh abi add ./artifacts -r

Try decoding some hexadecimal value

# Try decoding 0x8c5be1e5 <- `Approval` event of an ERC721 or ERC20
ducketh woot 0x8c5be1e5

Additional details

The CLI informations can be displayed using help or -h on individual command

# General informations
ducketh help
# Informations on `woot` command
ducketh woot -h

Alternatives

When the decoding is not successful, adding more ABIs may help. Otherwise, one can visit https://openchain.xyz/signatures for larger data sets.

Dependencies

~6–17MB
~172K SLoC