Catalog npm
PACKAGE EXPLORERView in registry

4byte

npm

Look up an Ethereum function signature by the 4 bytes of its hash

4byteblockchainethethereumfunctionhashkeccacksha3signature
Versions collected1
Direct dependencies4From release 0.0.1
Last observed20 Oct, 20:06 UTC

README

Current package documentation

4byte

Look up an Ethereum function signature by the 4 bytes of its hash

License NPM version

Install

npm install 4byte

Getting started

const fourByte = require('4byte')

const signatures = fourByte('0x51c6590a')
console.log(signatures) // ['addLiquidity(uint256)']

CLI

Install:

npm install -g 4byte

Look up a function signature:

$ 4byte 0xa9059cbb
transfer(bytes4[9],bytes5[6],int48[11])
many_msg_babbage(bytes1)
transfer(address,uint256)
$ 4byte 0xa9059cbb --format=json
[
  "transfer(bytes4[9],bytes5[6],int48[11])",
  "many_msg_babbage(bytes1)",
  "transfer(address,uint256)"
]

Test

npm test

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.1Registry latest27 Mar 20214

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
shanefontaine/4byte

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e676dcd113ab4137acab9f5bd42a56f18622a6b5ab2c0d8d8ea98743d213cf06