Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2019 Changes in this version + const SecondsPerDay + const SecondsPerHour + const SecondsPerMinute + const SecondsPerWeek + func LessByAccessCount(bi, bj *CachedBlock) bool + func LessByAccessCountThenHeight(bi, bj *CachedBlock) bool + func LessByAccessTime(bi, bj *CachedBlock) bool + func LessByHeight(bi, bj *CachedBlock) bool + func MakeLessByAccessTimeThenCount(millisecondsBinned int64) func(bi, bj *CachedBlock) bool + func WatchPriorityQueue(bpq *BlockPriorityQueue) + type APICache struct + MainchainBlocks []chainhash.Hash + func NewAPICache(capacity uint32) *APICache + func (apic *APICache) Capacity() uint32 + func (apic *APICache) Disable() + func (apic *APICache) Enable() + func (apic *APICache) GetBlockSummary(height int64) *BlockDataBasic + func (apic *APICache) GetCachedBlockByHash(hash chainhash.Hash) *CachedBlock + func (apic *APICache) GetCachedBlockByHashStr(hashStr string) *CachedBlock + func (apic *APICache) GetCachedBlockByHeight(height int64) *CachedBlock + func (apic *APICache) Hits() uint64 + func (apic *APICache) Misses() uint64 + func (apic *APICache) RemoveCachedBlock(cachedBlock *CachedBlock) + func (apic *APICache) SetLessFn(lessFn func(bi, bj *CachedBlock) bool) + func (apic *APICache) StoreBlockSummary(blockSummary *BlockDataBasic) error + func (apic *APICache) Utilization() float64 + func (apic *APICache) UtilizationBlocks() int64 + type Address struct + Address string + Transactions []*AddressTxShort + type AddressTotals struct + Address string + BlockHash string + BlockHeight uint64 + CoinsSpent float64 + CoinsUnspent float64 + NumSpent int64 + NumUnspent int64 + type AddressTxRaw struct + BlockHash string + Blocktime int64 + Confirmations int64 + Locktime uint32 + Size int32 + Time int64 + TxID string + Version int32 + Vin []hcjson.VinPrevOut + Vout []Vout + type AddressTxShort struct + Confirmations int64 + Size int32 + Time int64 + TxID string + Value float64 + type AddressTxnOutput struct + Address string + Amount float64 + Atoms int64 + BlockHash string + BlockTime int64 + Confirmations int64 + Height int64 + Satoshis int64 + ScriptPubKey string + TxnID string + Vout uint32 + type BlockDataBasic struct + Difficulty float64 + Hash string + Height uint32 + NumTx uint32 + PoolInfo *TicketPoolInfo + Size uint32 + StakeDiff float64 + Time int64 + func NewBlockDataBasic() *BlockDataBasic + type BlockDataWithTxType struct + Revs []hcjson.TxRawResult + Tickets []hcjson.TxRawResult + Votes []TxRawWithVoteInfo + type BlockExplorerBasic struct + FreshStake uint8 + Height uint32 + Revocations uint8 + Size uint32 + StakeDiff float64 + Time int64 + Voters uint16 + type BlockExplorerExtraInfo struct + CoinSupply int64 + FormattedTime string + NextBlockSubsidy *hcjson.GetBlockSubsidyResult + TxLen int + type BlockID struct + BlockHash string + BlockHeight int64 + BlockIndex uint32 + BlockTime int64 + Time int64 + type BlockPriorityQueue struct + func NewBlockPriorityQueue(capacity uint32) *BlockPriorityQueue + func (pq *BlockPriorityQueue) Insert(summary *BlockDataBasic) (bool, *chainhash.Hash) + func (pq *BlockPriorityQueue) Pop() interface{} + func (pq *BlockPriorityQueue) Push(blockSummary interface{}) + func (pq *BlockPriorityQueue) Reheap() + func (pq *BlockPriorityQueue) RemoveBlock(b *CachedBlock) + func (pq *BlockPriorityQueue) RemoveIndex(idx int) + func (pq *BlockPriorityQueue) RescanMinMax() + func (pq *BlockPriorityQueue) RescanMinMaxForAdd(height uint32) + func (pq *BlockPriorityQueue) RescanMinMaxForRemove(height uint32) + func (pq *BlockPriorityQueue) RescanMinMaxForUpdate(heightAdd, heightRemove uint32) + func (pq *BlockPriorityQueue) ResetHeap(bh []*CachedBlock) + func (pq *BlockPriorityQueue) SetLessFn(lessFn func(bi, bj *CachedBlock) bool) + func (pq *BlockPriorityQueue) UpdateBlock(b *CachedBlock, summary *BlockDataBasic) + func (pq BlockPriorityQueue) Len() int + func (pq BlockPriorityQueue) Less(i, j int) bool + func (pq BlockPriorityQueue) Swap(i, j int) + type BlockSubsidies struct + BlockHash string + BlockNum int64 + NumVotes int16 + Stake int64 + Tax int64 + Total int64 + TotalStake int64 + Work int64 + type BlockSummarySaver interface + StoreBlockSummary func(blockSummary *BlockDataBasic) error + type BlockTransactionCounts struct + STx int + Tx int + type BlockTransactions struct + STx []string + Tx []string + type BlockValidation struct + Hash string + Height int64 + Validity bool + type CachedBlock struct + func (b *CachedBlock) Access() *BlockDataBasic + func (b CachedBlock) String() string + type CoinSupply struct + Hash string + Height int64 + Mined int64 + Ultimate int64 + type InsightAddr struct + Addrs string + type InsightAddress struct + Address string + From int + To int + Transactions []InsightTx + type InsightAddressInfo struct + Address string + Balance float64 + BalanceSat int64 + TotalReceived float64 + TotalReceivedSat int64 + TotalSent float64 + TotalSentSat int64 + TransactionsID []string + TxAppearances int64 + UnconfirmedBalance float64 + UnconfirmedBalanceSat int64 + UnconfirmedTxAppearances int64 + type InsightBlockAddrTxSummary struct + PagesTotal int64 + Txs []InsightTx + type InsightBlockResult struct + Bits string + Confirmations int64 + Difficulty float64 + Hash string + Height int64 + IsMainChain bool + MerkleRoot string + NextHash string + Nonce uint32 + PreviousHash string + Reward float64 + Size int32 + Time int64 + Tx []string + Version int32 + type InsightBlocksSummaryResult struct + Blocks []dbtypes.BlockDataBasic + Length int + Pagination struct{ ... } + type InsightMultiAddrsTx struct + Addresses string + From json.Number + NoAsm json.Number + NoScriptSig json.Number + NoSpent json.Number + To json.Number + type InsightMultiAddrsTxOutput struct + From int + Items []InsightTx + To int + TotalItems int64 + type InsightPagination struct + IsToday string + Next string + Prev string + type InsightRawTx struct + Rawtx string + type InsightScriptPubKey struct + Addresses []string + Asm string + Hex string + Type string + type InsightScriptSig struct + Asm string + Hex string + type InsightTx struct + Blockhash string + Blockheight int64 + Blocktime int64 + Confirmations int64 + Fees float64 + IsCoinBase bool + Locktime uint32 + Size uint32 + Time int64 + Txid string + ValueIn float64 + ValueOut float64 + Version int32 + Vins []*InsightVin + Vouts []*InsightVout + type InsightVin struct + Addr string + CoinBase string + N int + ScriptSig *InsightScriptSig + Sequence uint32 + Txid string + Value float64 + ValueSat int64 + Vout uint32 + type InsightVout struct + N uint32 + ScriptPubKey InsightScriptPubKey + SpentHeight interface{} + SpentIndex interface{} + SpentTxID interface{} + Value float64 + type MempoolTicketDetails struct + Height uint32 + Length uint32 + Tickets TicketsDetails + Time int64 + Total uint32 + type MempoolTicketFeeInfo struct + Height uint32 + LowestMineable float64 + Time int64 + type MempoolTicketFees struct + FeeRates []float64 + Height uint32 + Length uint32 + Time int64 + Total uint32 + type OutPoint struct + Hash string + Index uint32 + Tree int8 + type PrevOut struct + Addresses []string + Value float64 + type ScriptPubKey struct + Addresses []string + Asm string + CommitAmt *float64 + Hex string + ReqSigs int32 + Type string + type ScriptSig struct + Asm string + Hex string + type SpendByFundingHash struct + BlockHeight interface{} + FundingTxVoutIndex uint32 + SpendingTxHash interface{} + SpendingTxVinIndex interface{} + type StakeDiff struct + Estimates hcjson.EstimateStakeDiffResult + IdxBlockInWindow int + PriceWindowNum int + type StakeInfoExtended struct + Feeinfo hcjson.FeeInfoBlock + IdxBlockInWindow int + PoolInfo *TicketPoolInfo + PriceWindowNum int + StakeDiff float64 + func NewStakeInfoExtended() *StakeInfoExtended + type StakeInfoExtendedEstimates struct + Feeinfo hcjson.FeeInfoBlock + IdxBlockInWindow int + PoolInfo *TicketPoolInfo + PriceWindowNum int + StakeDiff StakeDiff + type Status struct + APIVersion int + DBHeight uint32 + DBLastBlockTime int64 + HcrdataVersion string + Height uint32 + NetworkName string + NodeConnections int64 + Ready bool + type TicketDetails struct + Fee float64 + FeeRate float64 + Hash string + Height int64 + Size int32 + type TicketPoolInfo struct + Height uint32 + Size uint32 + ValAvg float64 + Value float64 + Winners []string + type TicketPoolValsAndSizes struct + EndHeight uint32 + Size []float64 + StartHeight uint32 + Value []float64 + type TicketsDetails []*TicketDetails + type TrimmedTx struct + Expiry uint32 + Locktime uint32 + TxID string + Version int32 + Vin []hcjson.Vin + Vout []Vout + type Tx struct + Block *BlockID + Confirmations int64 + type TxIn struct + BlockHeight uint32 + BlockIndex uint32 + PreviousOutPoint OutPoint + Sequence uint32 + SignatureScript string + ValueIn float64 + type TxInputID struct + Hash string + Index uint32 + type TxOut struct + Addresses []string + PkScript string + Value float64 + Version uint16 + type TxRawWithTxType struct + TxType string + type TxRawWithVoteInfo struct + VoteInfo VoteInfo + type TxShort struct + Expiry uint32 + Locktime uint32 + Size int32 + TxID string + Version int32 + Vin []hcjson.Vin + Vout []Vout + type Txns struct + Transactions []string + type VinPrevOut struct + AmountIn *float64 + BlockHeight *uint32 + BlockIndex *uint32 + Coinbase string + PrevOut *PrevOut + ScriptSig *ScriptSig + Sequence uint32 + Stakebase string + Tree int8 + Txid string + Vout uint32 + type VoteInfo struct + Bits uint16 + Choices []*txhelpers.VoteChoice + Validation BlockValidation + Version uint32 + type Vout struct + N uint32 + ScriptPubKeyDecoded ScriptPubKey + Spend *TxInputID + Value float64 + Version uint16 + type VoutMined struct + BestBlock string + Coinbase bool + Confirmations int64