Versions in this module Expand all Collapse all v5 v5.1.1 Aug 19, 2019 v5.0.1 Jul 19, 2019 Changes in this version + const APIVersion + var CommitHash string + func DisableLog() + func NewAPIRouter(app *appContext, useRealIP, compressLarge bool) apiMux + func NewContext(cfg *AppContextConfig) *appContext + func NewFileRouter(app *appContext, useRealIP bool) fileMux + func UseLogger(logger slog.Logger) + type AppContextConfig struct + AgendasDBInstance *agendas.AgendaDB + Charts *cache.ChartData + Client *rpcclient.Client + DBSource DataSourceAux + DataSource DataSourceLite + IsPiparserDisabled bool + JsonIndent string + MaxAddrs int + Params *chaincfg.Params + XcBot *exchanges.ExchangeBot + type DataSourceAux interface + AddressHistory func(address string, N, offset int64, txnType dbtypes.AddrTxnViewType) ([]*dbtypes.AddressRow, *dbtypes.AddressBalance, error) + AddressTotals func(address string) (*apitypes.AddressTotals, error) + AddressTransactionDetails func(addr string, count, skip int64, txnType dbtypes.AddrTxnViewType) (*apitypes.Address, error) + AddressTxIoCsv func(address string) ([][]string, error) + AgendaVotes func(agendaID string, chartType int) (*dbtypes.AgendaVoteChoices, error) + AllAgendas func() (map[string]dbtypes.MileStone, error) + FillAddressTransactions func(addrInfo *dbtypes.AddressInfo) error + GetTicketInfo func(txid string) (*apitypes.TicketInfo, error) + Height func() int64 + PowerlessTickets func() (*apitypes.PowerlessTickets, error) + ProposalVotes func(proposalToken string) (*dbtypes.ProposalChartsData, error) + SpendingTransaction func(fundingTx string, vout uint32) (string, uint32, int8, error) + SpendingTransactions func(fundingTxID string) ([]string, []uint32, []uint32, error) + TicketPoolVisualization func(interval dbtypes.TimeBasedGrouping) (*dbtypes.PoolTicketsData, *dbtypes.PoolTicketsData, *dbtypes.PoolTicketsData, ...) + TxHistoryData func(address string, addrChart dbtypes.HistoryChart, ...) (*dbtypes.ChartsData, error) + VotesInBlock func(hash string) (int16, error) + type DataSourceLite interface + CoinSupply func() *apitypes.CoinSupply + GetAddressTransactions func(addr string, count int) *apitypes.Address + GetAddressTransactionsRaw func(addr string, count int) []*apitypes.AddressTxRaw + GetAddressTransactionsRawWithSkip func(addr string, count, skip int) []*apitypes.AddressTxRaw + GetAddressTransactionsWithSkip func(addr string, count, skip int) *apitypes.Address + GetAllTxIn func(txid *chainhash.Hash) []*apitypes.TxIn + GetAllTxOut func(txid *chainhash.Hash) []*apitypes.TxOut + GetBestBlockHash func() (string, error) + GetBestBlockSummary func() *apitypes.BlockDataBasic + GetBlockByHash func(string) (*wire.MsgBlock, error) + GetBlockHash func(idx int64) (string, error) + GetBlockHeaderByHash func(hash string) (*wire.BlockHeader, error) + GetBlockHeight func(hash string) (int64, error) + GetBlockSize func(idx int) (int32, error) + GetBlockSizeRange func(idx0, idx1 int) ([]int32, error) + GetBlockVerbose func(idx int, verboseTx bool) *dcrjson.GetBlockVerboseResult + GetBlockVerboseByHash func(hash string, verboseTx bool) *dcrjson.GetBlockVerboseResult + GetExplorerAddress func(address string, count, offset int64) (*dbtypes.AddressInfo, txhelpers.AddressType, txhelpers.AddressError) + GetFeeInfo func(idx int) *dcrjson.FeeInfoBlock + GetHeader func(idx int) *dcrjson.GetBlockHeaderVerboseResult + GetHeight func() (int64, error) + GetMempoolPriceCountTime func() *apitypes.PriceCountTime + GetMempoolSSTxDetails func(N int) *apitypes.MempoolTicketDetails + GetMempoolSSTxFeeRates func(N int) *apitypes.MempoolTicketFees + GetMempoolSSTxSummary func() *apitypes.MempoolTicketFeeInfo + GetPool func(idx int64) ([]string, error) + GetPoolByHash func(hash string) ([]string, error) + GetPoolInfo func(idx int) *apitypes.TicketPoolInfo + GetPoolInfoByHash func(hash string) *apitypes.TicketPoolInfo + GetPoolInfoRange func(idx0, idx1 int) []apitypes.TicketPoolInfo + GetPoolValAndSizeRange func(idx0, idx1 int) ([]float64, []float64) + GetRawTransaction func(txid *chainhash.Hash) *apitypes.Tx + GetRawTransactionWithPrevOutAddresses func(txid *chainhash.Hash) (*apitypes.Tx, [][]string, []int64) + GetSDiff func(idx int) float64 + GetSDiffRange func(idx0, idx1 int) []float64 + GetStakeDiffEstimates func() *apitypes.StakeDiff + GetStakeInfoExtendedByHash func(hash string) *apitypes.StakeInfoExtended + GetStakeInfoExtendedByHeight func(idx int) *apitypes.StakeInfoExtended + GetStakeVersions func(txHash string, count int32) (*dcrjson.GetStakeVersionsResult, error) + GetStakeVersionsLatest func() (*dcrjson.StakeVersions, error) + GetSummary func(idx int) *apitypes.BlockDataBasic + GetSummaryByHash func(hash string, withTxTotals bool) *apitypes.BlockDataBasic + GetTransactionHex func(txid *chainhash.Hash) string + GetTransactionsForBlock func(idx int64) *apitypes.BlockTransactions + GetTransactionsForBlockByHash func(hash string) *apitypes.BlockTransactions + GetTrimmedTransaction func(txid *chainhash.Hash) *apitypes.TrimmedTx + GetVoteInfo func(txid *chainhash.Hash) (*apitypes.VoteInfo, error) + GetVoteVersionInfo func(ver uint32) (*dcrjson.GetVoteInfoResult, error) + SendRawTransaction func(txhex string) (string, error) + UpdateChan func() chan uint32 Other modules containing this package github.com/decred/dcrdata github.com/decred/dcrdata/v3 github.com/decred/dcrdata/v4 github.com/decred/dcrdata/v6 github.com/decred/dcrdata/v7