model

package
v0.0.0-...-61a7dbd Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressInfo

type AddressInfo struct {
	Address      string       `json:"address"`
	ChainStats   ChainStats   `json:"chain_stats"`
	MempoolStats MempoolStats `json:"mempool_stats"`
}

type BlockStatus

type BlockStatus struct {
	Confirmed   bool   `json:"confirmed"`
	BlockHeight int64  `json:"block_height"`
	BlockHash   string `json:"block_hash"`
	BlockTime   int64  `json:"block_time"`
}

type ChainStats

type ChainStats struct {
	FundedTxoCount int64 `json:"funded_txo_count"`
	FundedTxoSum   int64 `json:"funded_txo_sum"`
	SpentTxoCount  int64 `json:"spent_txo_count"`
	SpentTxoSum    int64 `json:"spent_txo_sum"`
	TxCount        int64 `json:"tx_count"`
}

type DifficultyAdjust

type DifficultyAdjust struct {
	ProgressPercent       float64 `json:"progressPercent"`
	DifficultyChange      float64 `json:"difficultyChange"`
	EstimatedRetargetDate int64   `json:"estimatedRetargetDate"`
	RemainingBlocks       int64   `json:"remainingBlocks"`
	RemainingTime         int64   `json:"remainingTime"`
	PreviousRetarget      float64 `json:"previousRetarget"`
	NextRetargetHeight    int64   `json:"nextRetargetHeight"`
	TimeAvg               int64   `json:"timeAvg"`
	AdjustedTimeAvg       int64   `json:"adjustedTimeAvg"`
	TimeOffset            int64   `json:"timeOffset"`
}

type MempoolStats

type MempoolStats struct {
	FundedTxoCount int64 `json:"funded_txo_count"`
	FundedTxoSum   int64 `json:"funded_txo_sum"`
	SpentTxoCount  int64 `json:"spent_txo_count"`
	SpentTxoSum    int64 `json:"spent_txo_sum"`
	TxCount        int64 `json:"tx_count"`
}

type Price

type Price struct {
	Time int64 `json:"time"`
	USD  int64 `json:"USD"`
	EUR  int64 `json:"EUR"`
	GBP  int64 `json:"GBP"`
	CAD  int64 `json:"CAD"`
	CHF  int64 `json:"CHF"`
	AUD  int64 `json:"AUD"`
	JPY  int64 `json:"JPY"`
}

type Tx

type Tx struct {
	Txid     string       `json:"txid"`
	Version  int32        `json:"version"`
	LockTime uint32       `json:"locktime"`
	Vin      []*TxVin     `json:"vin"`
	Vout     []*TxVout    `json:"vout"`
	Size     int64        `json:"size"`
	Weight   int32        `json:"weight"`
	Sigops   int16        `json:"sigops"`
	Fee      int32        `json:"fee"`
	Status   *BlockStatus `json:"status"`
}

func (*Tx) MsgTx

func (t *Tx) MsgTx(net btcx.Net) *wire.MsgTx

type TxVin

type TxVin struct {
	Txid         string   `json:"txid"`
	Vout         uint32   `json:"vout"`
	Scriptsig    string   `json:"scriptsig"`
	ScriptsigAsm string   `json:"scriptsig_asm"`
	IsCoinbase   bool     `json:"is_coinbase"`
	Sequence     uint32   `json:"sequence"`
	Prevout      TxVout   `json:"prevout"`
	Witness      []string `json:"witness"`
}

func (*TxVin) TxIn

func (in *TxVin) TxIn(net btcx.Net) *wire.TxIn

type TxVout

type TxVout struct {
	Scriptpubkey        string `json:"scriptpubkey"`
	ScriptpubkeyAsm     string `json:"scriptpubkey_asm"`
	ScriptpubkeyType    string `json:"scriptpubkey_type"`
	ScriptpubkeyAddress string `json:"scriptpubkey_address"`
	Value               int64  `json:"value"`
}

func (*TxVout) TxOut

func (out *TxVout) TxOut() *wire.TxOut

type UTXO

type UTXO struct {
	Txid   string      `json:"txid"`
	Vout   int         `json:"vout"`
	Status BlockStatus `json:"status"`
	Value  int64       `json:"value"`
}

type ValidAddress

type ValidAddress struct {
	Isvalid        bool   `json:"isvalid"`
	Address        string `json:"address"`
	ScriptPubKey   string `json:"scriptPubKey"`
	Isscript       bool   `json:"isscript"`
	Iswitness      bool   `json:"iswitness"`
	WitnessVersion int32  `json:"witness_version"`
	WitnessProgram string `json:"witness_program"`
}

Jump to

Keyboard shortcuts

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