# Functions
IsNullDataScript indicates if the script class name is a nulldata class.
IsValidScriptClass indicates the the provided string corresponds to a known ScriptClass (including "nonstandard").
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.
NewBlockDataBasic constructs a *BlockDataBasic with pointer fields allocated.
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.
NewStakeInfoExtended constructs a *StakeInfoExtended with pointer fields allocated.
NewStatus is the constructor for a new Status.
NewTimeAPI constructs a TimeAPI from the given time.Time.
NewTimeAPIFromUNIX constructs a TimeAPI from the given UNIX epoch time stamp in seconds.
ScriptClassFromName attempts to identify the ScriptClass for the given script class/type name.
TxOutFromDB converts a dbtypes.AddressTxnOutput to a api/types.AddressTxnOutput.
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
Classes of script payment known about in the blockchain.
Multi signature.
None of the recognized forms.
Empty data-only (provably prunable).
Pay pubkey.
Alternative signature pubkey.
Pay pubkey hash.
Alternative signature pubkey hash.
Pay to script hash.
Stake generation.
Stake revocation.
Change for stake submission tx.
Stake submission.
constants from time.
constants from time.
constants from time.
constants from time.
# Structs
Address models the address string with the transactions as AddressTxShort.
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.
AgendaAPIResponse holds two sets of AgendaVoteChoices charts data.
AgendasInfo holds the high level details about an agenda.
APICache maintains a fixed-capacity cache of CachedBlocks.
APIStatus is for the JSON-formatted response at /status.
BlockDataBasic models primary information about a block.
BlockDataWithTxType adds an array of TxRawWithTxType to chainjson.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.
BlockRaw contains the hexadecimal encoded bytes of a serialized block.
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.
Happy describes just how happy dcrdata is.
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 the POST request for the multi-address endpoints.
InsightMultiAddrsTxOutput models the response to the multi-address transactions POST request.
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.
PowerlessTicket is the purchase block height and value of a missed or expired ticket.
PowerlessTickets contains expired and missed tickets sorted into slices of unspent and revoked.
PrevOut represents previous output for an input Vin.
PriceCountTime is a basic set of information about ticket in the mempool.
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).
SpendByFundingHash models a return from SpendDetailsForFundingTx.
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.
SyncResponse contains sync status information.
TicketDetails models details about ticket Hash received at height Height.
TicketInfo combines spend and pool statuses and relevant block and spending transaction IDs.
TicketPoolChartsData is for data used to display ticket pool statistics at /ticketpool.
TicketPoolInfo models data about ticket pool.
TicketPoolValsAndSizes models two arrays, one each for ticket values and sizes for blocks StartHeight to EndHeight.
TimeAPI is a fall back dbtypes.TimeDef wrapper that allows API endpoints that previously returned a timestamp instead of a formatted string time to continue working.
TinyBlock is the hash and height of a block.
TrimmedTx models data to resemble to result of the decoderawtransaction RPC.
Tx models TxShort with the number of confirmations and block info Block.
TxIn defines a decred transaction input.
TxInputID specifies a transaction input as hash:vin_index.
Txns models the multi transaction post data structure.
TxOut defines a decred transaction output.
TxRawWithTxType adds the stake transaction type to chainjson.TxRawResult.
TxRawWithVoteInfo adds the vote info to chainjson.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.
StakeInfoSaver is likely to be required to be implemented by the type utilizing APICache.
# Type aliases
ScriptClass represent the type of a transaction output's pkscript.
TicketsDetails is an array of pointers of TicketDetails used in MempoolTicketDetails.