4Byte

4Byte is a public directory that indexes signatures for Ethereum functions and events.

Run Resolve to resolve a signature in string format to its name:

package main
import (
fourbyte "github.com/cloudwalk/ethgo/4byte"
)
func main() {
found, err := fourbyte.Resolve("0xddf252ad")
if err != nil {
panic(err)
}
// Transfer(address,address,uint256)
}