1.0.0 • Published 3 years ago

methid v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

methid

ci

func & cli that computes an ethereum method id given its signature

usage

.js

var methid = require("methid")

methid("baz(uint32,bool)")
//> 0xcdcd77c0

cli

methid v1.0.0

Usage: methid [SIGNATURE]

Computes an ethereum method id given its signature.

Checks stdin for piped data, otherwise assumes SIGNATURE to be set.

Options:
  -h, --help            print help
  -v, --version         print version

Examples:
  methid "baz(uint32,bool)"
  echo "baz(uint32,bool)" | methid

License

MIT