etherscan

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTimeout is the default value for request timeout
	// FIXME: code duplication
	DefaultTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtherscanClient

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

func NewEtherscanClient

func NewEtherscanClient(endpoint string, apiKey string) *EtherscanClient

func (*EtherscanClient) AccountTxList

func (c *EtherscanClient) AccountTxList(address common.Address) (common.Transactions, error)

func (*EtherscanClient) EthPrice

func (c *EtherscanClient) EthPrice() (*decimal.Decimal, error)

func (*EtherscanClient) GetSourceCode

func (c *EtherscanClient) GetSourceCode(address common.Address) (string, *abi.ABI, error)

Jump to

Keyboard shortcuts

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