bfetcher

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_TO_DELETE = 18000
)

api_key for tracker.kyber

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainFetcher

type BlockchainFetcher struct {
	TypeName string
	// contains filtered or unexported fields
}

func NewBlockchainFetcher

func NewBlockchainFetcher(typeName string, endpoint string, apiKey string) (*BlockchainFetcher, error)

func (*BlockchainFetcher) EthCall

func (self *BlockchainFetcher) EthCall(to string, data string) (string, error)

func (*BlockchainFetcher) GetLatestBlock

func (self *BlockchainFetcher) GetLatestBlock() (string, error)

func (*BlockchainFetcher) GetRate

func (self *BlockchainFetcher) GetRate(to string, data string) (string, error)

func (*BlockchainFetcher) GetTypeName

func (self *BlockchainFetcher) GetTypeName() string

type Etherscan

type Etherscan struct {
	TypeName string
	// contains filtered or unexported fields
}

func NewEtherScan

func NewEtherScan(typeName string, url string, apiKey string) (*Etherscan, error)

func (*Etherscan) EthCall

func (self *Etherscan) EthCall(to string, data string) (string, error)

func (*Etherscan) GetLatestBlock

func (self *Etherscan) GetLatestBlock() (string, error)

func (*Etherscan) GetRate

func (self *Etherscan) GetRate(to string, data string) (string, error)

func (*Etherscan) GetTypeName

func (self *Etherscan) GetTypeName() string

type ResultEvent

type ResultEvent struct {
	Result []ethereum.EventRaw `json:"result"`
}

type TopicParam

type TopicParam struct {
	FromBlock string   `json:"fromBlock"`
	ToBlock   string   `json:"toBlock"`
	Address   string   `json:"address"`
	Topics    []string `json:"topics"`
}

Jump to

Keyboard shortcuts

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