ens

package
v1.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelHash

func LabelHash(label string) (hash [32]byte, err error)

LabelHash generates a simple hash for a piece of a name.

func NameHash

func NameHash(name string) (hash [32]byte, err error)

NameHash generates a hash from a name that can be used to look up the name in ENS

func Normalize

func Normalize(input string) (output string, err error)

Normalize normalizes a name according to the ENS rules

Types

type RpcClient

type RpcClient struct {
	blockatlas.Request
}

func (*RpcClient) Addr

func (c *RpcClient) Addr(resolver string, node []byte, coin uint64) ([]byte, error)

func (*RpcClient) EthCall

func (c *RpcClient) EthCall(params []interface{}) (string, error)

func (*RpcClient) LegacyAddr

func (c *RpcClient) LegacyAddr(resolver string, node []byte) (string, error)

func (*RpcClient) Resolver

func (c *RpcClient) Resolver(node []byte) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL