etherscan

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

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

APIClient for talking to etherscan.

func NewAPIClient

func NewAPIClient(apiKey string) (*APIClient, error)

NewAPIClient create new API client.

func (APIClient) Kind added in v0.0.69

func (c APIClient) Kind() string

func (APIClient) PublicKeyFromAddress

func (c APIClient) PublicKeyFromAddress(ctx context.Context, protocol, network string, address []byte) (crypto.PublicKey, error)

PublicKeyFromAddress get public key from the recipient address, this will only work if the recipient has previously sent a message.

func (APIClient) Receive

func (c APIClient) Receive(ctx context.Context, protocol, network string, address []byte) ([]stores.Transaction, error)

Receive check ethereum transactions for mailchain messages

Jump to

Keyboard shortcuts

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