Documentation ¶
Index ¶
- type EtherScan
- type Transaction
- func (tx *Transaction) Addresses() []accounts.AddressAndAmount
- 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() accounts.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) ( []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) 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.
Click to show internal directories.
Click to hide internal directories.