Documentation ¶
Index ¶
- type EtherScan
- type Transaction
- func (tx *Transaction) Addresses() []string
- func (tx *Transaction) Amount() coin.Amount
- func (tx *Transaction) Fee() *coin.Amount
- func (tx *Transaction) Gas() uint64
- func (tx *Transaction) ID() string
- func (tx *Transaction) NumConfirmations() int
- func (tx *Transaction) Timestamp() *time.Time
- func (tx *Transaction) Type() coin.TxType
- func (tx *Transaction) UnmarshalJSON(jsonBytes []byte) error
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 ¶
NewEtherScan creates a new instance of EtherScan.
func (*EtherScan) Transactions ¶
func (etherScan *EtherScan) Transactions(address common.Address, endBlock *big.Int) ( []coin.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 coin.Transaction (TODO).
func (*Transaction) Addresses ¶
func (tx *Transaction) Addresses() []string
Addresses implements coin.Transaction.
func (*Transaction) Amount ¶
func (tx *Transaction) Amount() coin.Amount
Amount implements coin.Transaction.
func (*Transaction) Fee ¶
func (tx *Transaction) Fee() *coin.Amount
Fee implements coin.Transaction.
func (*Transaction) Gas ¶
func (tx *Transaction) Gas() uint64
Gas implements ethtypes.EthereumTransaction.
func (*Transaction) NumConfirmations ¶
func (tx *Transaction) NumConfirmations() int
NumConfirmations implements coin.Transaction.
func (*Transaction) Timestamp ¶
func (tx *Transaction) Timestamp() *time.Time
Timestamp implements coin.Transaction.
func (*Transaction) Type ¶
func (tx *Transaction) Type() coin.TxType
Type implements coin.Transaction.
func (*Transaction) UnmarshalJSON ¶
func (tx *Transaction) UnmarshalJSON(jsonBytes []byte) error
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.