etherscan

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etherscan

type Etherscan struct {
	TXsByCategory wallet.TXsByCategory
	// contains filtered or unexported fields
}

func New

func New() *Etherscan

func (*Etherscan) AddListAddresses added in v1.2.0

func (ethsc *Etherscan) AddListAddresses(list []string)

func (*Etherscan) GetAPITXs added in v1.2.0

func (ethsc *Etherscan) GetAPITXs(cat category.Category)

func (*Etherscan) NewAPI added in v1.2.0

func (ethsc *Etherscan) NewAPI(apiKey string, debug bool)

func (*Etherscan) ParseCSVAddresses added in v1.2.0

func (ethsc *Etherscan) ParseCSVAddresses(reader io.Reader) (err error)

func (*Etherscan) WaitFinish

func (ethsc *Etherscan) WaitFinish() error

type GetAccountNftTXResp added in v1.2.0

type GetAccountNftTXResp struct {
	Status  string        `json:"status"`
	Message string        `json:"message"`
	Result  []ResultNftTX `json:"result"`
}

type GetAccountTXListInternalResp added in v1.2.0

type GetAccountTXListInternalResp struct {
	Status  string                 `json:"status"`
	Message string                 `json:"message"`
	Result  []ResultTXListInternal `json:"result"`
}

type GetAccountTXListResp added in v1.2.0

type GetAccountTXListResp struct {
	Status  string         `json:"status"`
	Message string         `json:"message"`
	Result  []ResultTXList `json:"result"`
}

type GetAccountTokenTXResp added in v1.2.0

type GetAccountTokenTXResp struct {
	Status  string          `json:"status"`
	Message string          `json:"message"`
	Result  []ResultTokenTX `json:"result"`
}

type ResultNftTX added in v1.2.0

type ResultNftTX struct {
	BlockNumber       int     `json:"blockNumber,string"`
	TimeStamp         int64   `json:"timeStamp,string"`
	Hash              string  `json:"hash"`
	Nonce             int     `json:"nonce,string"`
	BlockHash         string  `json:"blockHash"`
	From              string  `json:"from"`
	ContractAddress   string  `json:"contractAddress"`
	To                string  `json:"to"`
	TokenID           string  `json:"tokenID"`
	TokenName         string  `json:"tokenName"`
	TokenSymbol       string  `json:"tokenSymbol"`
	TokenDecimal      uint8   `json:"tokenDecimal,string"`
	TransactionIndex  int     `json:"transactionIndex,string"`
	Gas               int     `json:"gas,string"`
	GasPrice          *bigInt `json:"gasPrice"`
	GasUsed           int64   `json:"gasUsed,string"`
	CumulativeGasUsed int     `json:"cumulativeGasUsed,string"`
	Input             string  `json:"input"`
	Confirmations     int     `json:"confirmations,string"`
}

type ResultTXList added in v1.2.0

type ResultTXList struct {
	BlockNumber       int     `json:"blockNumber,string"`
	TimeStamp         int64   `json:"timeStamp,string"`
	Hash              string  `json:"hash"`
	Nonce             int     `json:"nonce,string"`
	BlockHash         string  `json:"blockHash"`
	TransactionIndex  int     `json:"transactionIndex,string"`
	From              string  `json:"from"`
	To                string  `json:"to"`
	Value             *bigInt `json:"value"`
	Gas               int     `json:"gas,string"`
	GasPrice          *bigInt `json:"gasPrice"`
	IsError           int     `json:"isError,string"`
	TxReceiptStatus   string  `json:"txreceipt_status"`
	Input             string  `json:"input"`
	ContractAddress   string  `json:"contractAddress"`
	CumulativeGasUsed int     `json:"cumulativeGasUsed,string"`
	GasUsed           int64   `json:"gasUsed,string"`
	Confirmations     int     `json:"confirmations,string"`
}

type ResultTXListInternal added in v1.2.0

type ResultTXListInternal struct {
	BlockNumber     int     `json:"blockNumber,string"`
	TimeStamp       int64   `json:"timeStamp,string"`
	Hash            string  `json:"hash"`
	From            string  `json:"from"`
	To              string  `json:"to"`
	Value           *bigInt `json:"value"`
	ContractAddress string  `json:"contractAddress"`
	Input           string  `json:"input"`
	Type            string  `json:"type"`
	Gas             int     `json:"gas,string"`
	GasUsed         int64   `json:"gasUsed,string"`
	TraceID         string  `json:"traceId"`
	IsError         int     `json:"isError,string"`
	ErrCode         string  `json:"errCode"`
}

type ResultTokenTX added in v1.2.0

type ResultTokenTX struct {
	BlockNumber       int     `json:"blockNumber,string"`
	TimeStamp         int64   `json:"timeStamp,string"`
	Hash              string  `json:"hash"`
	Nonce             int     `json:"nonce,string"`
	BlockHash         string  `json:"blockHash"`
	From              string  `json:"from"`
	ContractAddress   string  `json:"contractAddress"`
	To                string  `json:"to"`
	Value             *bigInt `json:"value"`
	TokenName         string  `json:"tokenName"`
	TokenSymbol       string  `json:"tokenSymbol"`
	TokenDecimal      uint8   `json:"tokenDecimal,string"`
	TransactionIndex  int     `json:"transactionIndex,string"`
	Gas               int     `json:"gas,string"`
	GasPrice          *bigInt `json:"gasPrice"`
	GasUsed           int64   `json:"gasUsed,string"`
	CumulativeGasUsed int     `json:"cumulativeGasUsed,string"`
	Input             string  `json:"input"`
	Confirmations     int     `json:"confirmations,string"`
}

Jump to

Keyboard shortcuts

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