etherscan

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTurtleForRateLimiter

func AddTurtleForRateLimiter(logger *zap.SugaredLogger, retryAmount int) func(req *http.Request, handler mediary.Handler) (*http.Response, error)

Types

type Data

type Data struct {
	ApiKey   string            `mapstructure:"apiKey"`
	Network  etherscan.Network `mapstructure:"network"`
	Accounts []account         `mapstructure:"account"`
	Debug    bool              `mapstructure:"debug"`
}

func (*Data) SetDefaults

func (d *Data) SetDefaults()

func (*Data) Validate

func (d *Data) Validate() (err error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider for etherscan

func (*Provider) GetHoldings

func (p *Provider) GetHoldings() (providers.Holdings, error)

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Once

func (p *Provider) Once()

func (*Provider) Open

func (p *Provider) Open(config providers.Config, params ...interface{}) (providers.IProvider, error)

Jump to

Keyboard shortcuts

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