thirdparty

package
v0.0.0-...-874d1bb Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Network           string
	BlockNumber       int64
	BlockHash         string
	PreviousBlockHash string
	Transactions      []Transaction
}

type EtherscanExplorer

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

func NewEtherscanExplorer

func NewEtherscanExplorer(apiKey string) *EtherscanExplorer

func (*EtherscanExplorer) GetAllTransactionsForAddress

func (ex *EtherscanExplorer) GetAllTransactionsForAddress(address string) ([]Transaction, error)

type Explorer

type Explorer interface {
	GetAllTransactionsForAddress(string) ([]Transaction, error)
}

type Network

type Network struct {
	Name                string `json:"name"`
	Currency            string `json:"currency"`
	ChainID             int64  `json:"chainID"`
	Decimals            int64  `json:"decimals"`
	StartingBlockNumber int64  `json:"startingBlockNumber"`
}

type Transaction

type Transaction struct {
	BlockNumber int64
	BlockHash   string
	Network     string
	Currency    string
	TxHash      string
	Value       string
	From        string
	To          string
}

Jump to

Keyboard shortcuts

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