external

package
v0.0.0-...-128017d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

package main

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcHeightFromGastrackerIo

func GetEtcHeightFromGastrackerIo() (int, string)

func GetEthHeightFromEtherscanIo

func GetEthHeightFromEtherscanIo() (int, string)

func GetEthHeightFromEtherscanIoWebsocket

func GetEthHeightFromEtherscanIoWebsocket() (int, string)

func GetEthHeightFromEtzscanCom

func GetEthHeightFromEtzscanCom() (int, string)

func GetHeightFromBtgRpc

func GetHeightFromBtgRpc(url string) (int, string)

func GetHeightFromExplorerBitcoingoldOrg

func GetHeightFromExplorerBitcoingoldOrg() (int, string)

func GetHeightFromExplorerZchaInAnswer

func GetHeightFromExplorerZchaInAnswer() (int, string)

func GetHeightFromMoneroRpc

func GetHeightFromMoneroRpc(url string, suffix string) (int, string)

func GetHeightFromParityRpc

func GetHeightFromParityRpc(url string) (int, string)

func GetHeightFromXmcFairHashAnswer

func GetHeightFromXmcFairHashAnswer() (int, string)

func GetHeightFromZecRpc

func GetHeightFromZecRpc(url string, rpcUser string, rpcPassword string) (int, string)

func GetXmcHeightFromMoneroClassicOrg

func GetXmcHeightFromMoneroClassicOrg() (int, string)

func GetXmrHeightFromMoneroBlocsInfo

func GetXmrHeightFromMoneroBlocsInfo() (int, string)

Types

type BtgRpcAnswer

type BtgRpcAnswer struct {
	Chain                string  `json:"chain"`
	Blocks               int     `json:"blocks"`
	Headers              int     `json:"headers"`
	Bestblockhash        string  `json:"bestblockhash"`
	Difficulty           float64 `json:"difficulty"`
	Mediantime           int     `json:"mediantime"`
	Verificationprogress float64 `json:"verificationprogress"`
	Chainwork            string  `json:"chainwork"`
	Pruned               bool    `json:"pruned"`
	Softforks            []struct {
		ID      string `json:"id"`
		Version int    `json:"version"`
		Reject  struct {
			Status bool `json:"status"`
		} `json:"reject"`
	} `json:"softforks"`
	Bip9Softforks struct {
		Csv struct {
			Status    string `json:"status"`
			StartTime int    `json:"startTime"`
			Timeout   int    `json:"timeout"`
			Since     int    `json:"since"`
		} `json:"csv"`
		Segwit struct {
			Status    string `json:"status"`
			StartTime int    `json:"startTime"`
			Timeout   int    `json:"timeout"`
			Since     int    `json:"since"`
		} `json:"segwit"`
	} `json:"bip9_softforks"`
}

type ETZAnswer

type ETZAnswer struct {
	Blocks []struct {
		ID        string        `json:"_id"`
		ExtraData string        `json:"extraData"`
		Miner     string        `json:"miner"`
		Number    int           `json:"number"`
		Timestamp int           `json:"timestamp"`
		Txs       []interface{} `json:"txs"`
	} `json:"blocks"`
	BlockHeight    int     `json:"blockHeight"`
	BlockTime      int     `json:"blockTime"`
	TPS            float64 `json:"TPS"`
	MeanDayRewards float64 `json:"meanDayRewards"`
}

type ETZPayload

type ETZPayload struct {
	Action string `json:"action"`
}

type EtcGastrackerMessage

type EtcGastrackerMessage struct {
	// 	Offset int `json:"offset"`
	// 	Items []struct {
	// 		Gas          int    `json:"gas"`
	// 		Hash         string `json:"hash"`
	// 		Height       int    `json:"height"`
	// 		Miner        string `json:"miner"`
	// 		MiningTime   int    `json:"miningTime"`
	// 		Timestamp    string `json:"timestamp"`
	// 		Transactions int    `json:"transactions"`
	// 		Value        struct {
	// 			Ether float64 `json:"ether"`
	// 			Hex   string  `json:"hex"`
	// 			Wei   string  `json:"wei"`
	// 		} `json:"value"`
	// 	} `json:"items"`
	// }
	// type AutoGenerated struct {
	Jsonrpc string `json:"jsonrpc"`
	Result  string `json:"result"`
	ID      int    `json:"id"`
}

type ExplorerBitcoingoldOrgAnswer

type ExplorerBitcoingoldOrgAnswer struct {
	Blocks []struct {
		Height   int    `json:"height"`
		Size     int    `json:"size"`
		Hash     string `json:"hash"`
		Time     int    `json:"time"`
		Txlength int    `json:"txlength"`
		PoolInfo struct {
		} `json:"poolInfo"`
	} `json:"blocks"`
	Length     int `json:"length"`
	Pagination struct {
		Next      string `json:"next"`
		Prev      string `json:"prev"`
		CurrentTs int    `json:"currentTs"`
		Current   string `json:"current"`
		IsToday   bool   `json:"isToday"`
		More      bool   `json:"more"`
	} `json:"pagination"`
}

type ExplorerZchaInAnswer

type ExplorerZchaInAnswer struct {
	Name            string  `json:"name"`
	Accounts        int     `json:"accounts"`
	Transactions    int     `json:"transactions"`
	BlockHash       string  `json:"blockHash"`
	BlockNumber     int     `json:"blockNumber"`
	Difficulty      float64 `json:"difficulty"`
	Hashrate        int64   `json:"hashrate"`
	MeanBlockTime   float64 `json:"meanBlockTime"`
	PeerCount       int     `json:"peerCount"`
	ProtocolVersion int     `json:"protocolVersion"`
	RelayFee        float64 `json:"relayFee"`
	Version         int     `json:"version"`
	SubVersion      string  `json:"subVersion"`
	TotalAmount     float64 `json:"totalAmount"`
	SproutPool      float64 `json:"sproutPool"`
	SaplingPool     float64 `json:"saplingPool"`
}

type XmcFairHashAnswer

type XmcFairHashAnswer struct {
	Config struct {
		Ports []struct {
			Port       int    `json:"port"`
			Difficulty int    `json:"difficulty"`
			Desc       string `json:"desc"`
			Type       string `json:"type,omitempty"`
		} `json:"ports"`
		HashrateWindow       int    `json:"hashrateWindow"`
		Fee                  int    `json:"fee"`
		Coin                 string `json:"coin"`
		CoinUnits            int64  `json:"coinUnits"`
		CoinDifficultyTarget int    `json:"coinDifficultyTarget"`
		Symbol               string `json:"symbol"`
		Depth                int    `json:"depth"`
		Donation             struct {
		} `json:"donation"`
		Version             string `json:"version"`
		MinPaymentThreshold int64  `json:"minPaymentThreshold"`
		MinExchangeLevel    int64  `json:"minExchangeLevel"`
		DenominationUnit    int64  `json:"denominationUnit"`
	} `json:"config"`
	System struct {
		Load        int `json:"load"`
		NumberCores int `json:"number_cores"`
	} `json:"system"`
	Pool struct {
		Stats struct {
			LastBlockFound string `json:"lastBlockFound"`
		} `json:"stats"`
		Blocks             []string        `json:"blocks"`
		TotalBlocks        int             `json:"totalBlocks"`
		Payments           []string        `json:"payments"`
		TotalPayments      int             `json:"totalPayments"`
		TotalMinersPaid    int             `json:"totalMinersPaid"`
		Miners             int             `json:"miners"`
		Workers            int             `json:"workers"`
		Hashrate           int             `json:"hashrate"`
		RoundHashes        int64           `json:"roundHashes"`
		CurrentPriceBTC    float64         `json:"currentPriceBTC"`
		CurrentPriceUSD    float64         `json:"currentPriceUSD"`
		CurrentPriceBTCUSD float64         `json:"currentPriceBTCUSD"`
		LuckArray          [][]interface{} `json:"luckArray"`
		LastBlockFound     string          `json:"lastBlockFound"`
	} `json:"pool"`
	Charts struct {
		Hashrate   [][]int         `json:"hashrate"`
		Workers    [][]int         `json:"workers"`
		Difficulty [][]interface{} `json:"difficulty"`
		Price      [][]float64     `json:"price"`
		Profit     [][]float64     `json:"profit"`
	} `json:"charts"`
	Network struct {
		Difficulty int64  `json:"difficulty"`
		Height     int    `json:"height"`
		Timestamp  int    `json:"timestamp"`
		Reward     int64  `json:"reward"`
		Hash       string `json:"hash"`
	} `json:"network"`
}

Jump to

Keyboard shortcuts

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