etherscan

package
v0.0.0-...-bb8a7cf Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK = "1"
	URL      = "https://api-rinkeby.etherscan.io/api"
)

Variables

View Source
var (
	ErrUnknown = errors.New("unknown error")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	GetAccountNFTs(ctx context.Context, address string) ([]models.NFT, error)
}

func NewClient

func NewClient(config *Config) Client

type Config

type Config struct {
	APIKey string `yaml:"apiKey"`
}

func NewConfig

func NewConfig(cfg *config.YAML) (*Config, error)

Jump to

Keyboard shortcuts

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