package
2.1.3+incompatible
Repository: https://github.com/decred-next/dcrndata.git
Documentation: pkg.go.dev
# Functions
LessByAccessCount defines higher priority CachedBlock as having been accessed more often.
LessByAccessCountThenHeight compares access count with LessByAccessCount if the blocks have different accessTime values, otherwise it compares height with LessByHeight.
LessByAccessTime defines higher priority CachedBlock as having a more recent access time.
LessByHeight defines a higher priority CachedBlock as having a higher height.
MakeLessByAccessTimeThenCount will create a CachedBlock comparison function given the specified time resolution in milliseconds.
NewAPICache creates an APICache with the specified capacity.
NewBlockPriorityQueue is the constructor for BlockPriorityQueue that initializes an empty heap with the given capacity, and sets the default LessFn as a comparison by access time with 1 day resolution (blocks accessed within the 24 hours are considered to have the same access time), followed by access count.
WatchPriorityQueue is a hack since the priority of a CachedBlock is modified (if access or access time is in the LessFn) without triggering a reheap.
# Constants
constants from time.
constants from time.
constants from time.
constants from time.
# Structs
Address models the address string with the transactions as AddressTxShort.
AddressSpendByFunHash models a return from GetAddressSpendByFunHash.
AddressTotals represents the number and value of spent and unspent outputs for an address.
AddressTxnOutput models an address transaction outputs.
AddressTxRaw is modeled from SearchRawTransactionsResult but with size in place of hex.
AddressTxShort is a subset of AddressTxRaw with just the basic tx details pertaining the particular address.
APICache maintains a fixed-capacity cache of CachedBlocks.
BlockDataBasic models primary information about block at height Height.
BlockDataWithTxType adds an array of TxRawWithTxType to dcrjson.GetBlockVerboseResult to include the stake transaction type.
BlockExplorerBasic models primary information about block at height Height for the block explorer.
BlockExplorerExtraInfo contains supplemental block metadata used by the explorer.
BlockID models very basic info about a block.
BlockPriorityQueue implements heap.Interface and holds CachedBlocks.
BlockSubsidies contains the block reward proportions for a certain block height.
BlockTransactionCounts contains the regular and stake transaction counts for a block.
BlockTransactions models an array of stake and regular transactions for a block.
BlockValidation models data about a vote's decision on a block.
CachedBlock represents a block that is managed by the cache.
CoinSupply models the coin supply at a certain best block.
InsightAddr models the multi address post data structure.
InsightAddress models an address transactions
.
InsightAddressInfo models basic information about an address.
InsightBlockAddrTxSummary models the data required by addrtx json return for Insight API.
InsightBlockResult models the data required by a block json return for Insight API.
InsightBlocksSummaryResult models data required by blocks json return for Insight API.
InsightMultiAddrsTx models multi address post data structure.
No description provided by the author
InsightPagination models basic pagination output for a result.
InsightRawTx contains the raw transaction string of a transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MempoolTicketDetails models basic mempool info with ticket details Tickets.
MempoolTicketFeeInfo models statistical ticket fee info at block height Height.
MempoolTicketFees models info about ticket fees at block height Height.
OutPoint is used to track previous transaction outputs.
PrevOut represents previous output for an input Vin.
ScriptPubKey is the result of decodescript(ScriptPubKeyHex).
ScriptSig models the signature script used to redeem the origin transaction as a JSON object (non-coinbase txns only).
StakeDiff represents data about the evaluated stake difficulty and estimates.
StakeInfoExtended models data about the fee, pool and stake difficulty.
StakeInfoExtendedEstimates is similar to StakeInfoExtended but includes stake difficulty estimates with the stake difficulty.
Status indicates the state of the server, including the API version and the software version.
TicketDetails models details about ticket Hash received at height Height.
TicketPoolInfo models data about ticket pool.
TicketPoolValsAndSizes models two arrays, one each for ticket values and sizes for blocks StartHeight to EndHeight.
TrimmedTx models data to resemble to result of the decoderawtransaction call.
Tx models TxShort with the number of confirmations and block info Block.
TxIn defines a decred transaction input.
Txns models the multi transaction post data structure.
TxOut defines a decred transaction output.
TxRawWithTxType adds the stake transaction type to dcrjson.TxRawResult.
TxRawWithVoteInfo adds the vote info to dcrjson.TxRawResult.
TxShort models info about transaction TxID.
VinPrevOut is like Vin except it includes PrevOut.
VoteInfo models data about a SSGen transaction (vote).
Vout defines a transaction output.
VoutMined appends a best block hash, number of confimations and if a transaction is a coinbase to a transaction output.
# Interfaces
BlockSummarySaver is likely to be required to be implemented by the type utilizing APICache.
# Type aliases
TicketsDetails is an array of pointers of TicketDetails used in MempoolTicketDetails.