0.0.1 • Published 5 years ago
4byte v0.0.1
4byte
Look up an Ethereum function signature by the 4 bytes of its hash
Install
npm install 4byteGetting started
const fourByte = require('4byte')
const signatures = fourByte('0x51c6590a')
console.log(signatures) // ['addLiquidity(uint256)']CLI
Install:
npm install -g 4byteLook 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 testLicense
0.0.1
5 years ago