package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Dec 3, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AddressInfo struct {
Address string `json:"address"`
ChainStats ChainStats `json:"chain_stats"`
MempoolStats MempoolStats `json:"mempool_stats"`
}
type BlockStatus struct {
Confirmed bool `json:"confirmed"`
BlockHeight int64 `json:"block_height"`
BlockHash string `json:"block_hash"`
BlockTime int64 `json:"block_time"`
}
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 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 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 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 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"`
}
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"`
}
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"`
}
type UTXO struct {
Txid string `json:"txid"`
Vout int `json:"vout"`
Status BlockStatus `json:"status"`
Value int64 `json:"value"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.