Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

4byte

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

4byte

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

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 27 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc