types

package
v0.0.0-...-be1bc29 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEntry

type BlockEntry struct {
	Height     int      `json:"height"`
	Timestamp  int64    `json:"timestamp"`
	ShortTXIDs []string `json:"shortTXIDs"`
}

BlockEntry holds the height, the first-seen timestamp and shortended TXIDs. It's used in the Bitcoin Transaction Monitor to mark transactions by block they were included in.

type FeeAPIResponse1

type FeeAPIResponse1 struct {
	HighFee float64 `json:"high"`
}

type FeeAPIResponse2

type FeeAPIResponse2 struct {
	HighFee float64 `json:"high"`
	MedFee  float64 `json:"med"`
}

type FeeAPIResponse3

type FeeAPIResponse3 struct {
	HighFee float64 `json:"high"`
	MedFee  float64 `json:"med"`
	LowFee  float64 `json:"low"`
}

type FeeRateAPIEntry

type FeeRateAPIEntry struct {
	Timestamp          int64           `json:"timestamp"`
	BTCCom             FeeAPIResponse1 `json:"btccom"`
	BlockchairCom      FeeAPIResponse1 `json:"blockchaircom"`
	BlockchainInfo     FeeAPIResponse2 `json:"blockchaininfo"`
	EarnCom            FeeAPIResponse3 `json:"earncom"`
	BitgoCom           FeeAPIResponse3 `json:"bitgocom"`
	BlockcypherCom     FeeAPIResponse3 `json:"blockcyphercom"`
	BitpayCom          FeeAPIResponse3 `json:"bitpaycom"`
	WasabiWalletIoEcon FeeAPIResponse3 `json:"wasabiwalletioEcon"`
	WasabiWalletIoCons FeeAPIResponse3 `json:"wasabiwalletioCons"`
	TrezorIo           FeeAPIResponse3 `json:"trezorio"`
	LedgerCom          FeeAPIResponse3 `json:"ledgercom"`
	MyceliumIo         FeeAPIResponse3 `json:"myceliumio"`
	BitcoinerLive      FeeAPIResponse3 `json:"bitcoinerlive"`
	BlockstreamInfo    FeeAPIResponse3 `json:"blockstreaminfo"`
	MempoolSpace       FeeAPIResponse3 `json:"mempoolspace"`
}

type HistoricalMempoolData

type HistoricalMempoolData struct {
	DataInBuckets interface{} `json:"dataInBuckets"`
	Timestamp     int64       `json:"timestamp"`
}

type MempoolEntry

type MempoolEntry struct {
	EntryTime      int64          `json:"entryTime"`
	TxID           string         `json:"txid"`
	Fee            int64          `json:"fee"`
	Size           int64          `json:"size"`
	Version        int32          `json:"version"`
	InputCount     int            `json:"inputCount"`
	OutputCount    int            `json:"outputCount"`
	Locktime       uint32         `json:"locktime"`
	OutputSum      int64          `json:"outputValue"`
	SpendsSegWit   bool           `json:"spendsSegWit"`
	SpendsMultisig bool           `json:"spendsMultisig"`
	IsBIP69        bool           `json:"isBIP69"`
	SignalsRBF     bool           `json:"signalsRBF"`
	OPReturnData   string         `json:"opreturnData"`
	OPReturnLength int            `json:"opreturnLength"`
	Multisig       map[string]int `json:"multisigsSpend"`
	Spends         map[string]int `json:"spends"`
	PaysTo         map[string]int `json:"paysTo"`
}

type PartialTransaction

type PartialTransaction struct {
	Size              int     `json:"vsize"`
	Fee               float64 `json:"fee"`
	Time              int     `json:"time"`
	Wtxid             string  `json:"wtxid"`
	Bip125Replaceable bool    `json:"bip125-replaceable"`
}

PartialTransaction is a part-struct of `Transaction` which contains only the for-now-used values to be more memory efficient

type RecentBlock

type RecentBlock struct {
	Height    int   `json:"height"`
	Size      int   `json:"size"`
	Timestamp int64 `json:"timestamp"`
	TxCount   int   `json:"txCount"`
	Weight    int   `json:"weight"`
}

type TransactionStat

type TransactionStat struct {
	SegwitCount int   `json:"segwitCount"`
	RbfCount    int   `json:"rbfCount"`
	TxCount     int   `json:"txCount"`
	Timestamp   int64 `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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