Documentation ¶
Index ¶
- type ContractCode
- type Etherscan
- func (e *Etherscan) BlockNumber() (uint64, error)
- func (e *Etherscan) GasPrice() (uint64, error)
- func (e *Etherscan) GetBlockByNumber(i core.BlockNumber, full bool) (*core.Block, error)
- func (e *Etherscan) GetContractCode(addr core.Address) (*ContractCode, error)
- func (e *Etherscan) GetLogs(filter *core.LogFilter) ([]*core.Log, error)
- func (e *Etherscan) Query(module, action string, out interface{}, params map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractCode ¶
type Etherscan ¶
type Etherscan struct {
// contains filtered or unexported fields
}
Etherscan is a provider using the Etherscan api
func NewEtherscan ¶
NewEtherscan creates a new Etherscan service from a url
func NewEtherscanFromNetwork ¶
NewEtherscanFromNetwork creates a new client from the network id
func (*Etherscan) BlockNumber ¶
BlockNumber returns the number of most recent block.
func (*Etherscan) GetBlockByNumber ¶
GetBlockByNumber returns information about a block by block number.
func (*Etherscan) GetContractCode ¶
func (e *Etherscan) GetContractCode(addr core.Address) (*ContractCode, error)
Click to show internal directories.
Click to hide internal directories.