etherscan

package
v4.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 11 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 {
	// contains filtered or unexported fields
}

EtherScan is a rate-limited etherscan api client. See https://etherscan.io/apis.

func NewEtherScan

func NewEtherScan(url string) *EtherScan

NewEtherScan creates a new instance of EtherScan.

func (*EtherScan) Transactions

func (etherScan *EtherScan) Transactions(address common.Address, endBlock *big.Int) (
	[]accounts.Transaction, error)

Transactions queries EtherScan for transactions for the given account, until endBlock.

type Transaction

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

Transaction implemements accounts.Transaction (TODO).

func (*Transaction) Addresses

func (tx *Transaction) Addresses() []accounts.AddressAndAmount

Addresses implements accounts.Transaction.

func (*Transaction) Amount

func (tx *Transaction) Amount() coin.Amount

Amount implements accounts.Transaction.

func (*Transaction) Fee

func (tx *Transaction) Fee() *coin.Amount

Fee implements accounts.Transaction.

func (*Transaction) Gas

func (tx *Transaction) Gas() uint64

Gas implements ethtypes.EthereumTransaction.

func (*Transaction) ID

func (tx *Transaction) ID() string

ID implements accounts.Transaction.

func (*Transaction) NumConfirmations

func (tx *Transaction) NumConfirmations() int

NumConfirmations implements accounts.Transaction.

func (*Transaction) Timestamp

func (tx *Transaction) Timestamp() *time.Time

Timestamp implements accounts.Transaction.

func (*Transaction) Type

func (tx *Transaction) Type() accounts.TxType

Type implements accounts.Transaction.

func (*Transaction) UnmarshalJSON

func (tx *Transaction) UnmarshalJSON(jsonBytes []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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