Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 522 Bytes

4byte.mdx

File metadata and controls

24 lines (17 loc) · 522 Bytes

import GoDocLink from '../../components/godoc'

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/umbracle/ethgo/4byte"
)

func main() {
    found, err := fourbyte.Resolve("0xddf252ad")
    if err != nil {
        panic(err)
    }
    // Transfer(address,address,uint256)
}