Versions in this module Expand all Collapse all v8 v8.0.2 Jun 27, 2022 v8.0.1 Jun 27, 2022 Changes in this version + const APIVersion + var CommitHash string + func DisableLog() + func NewAPIRouter(app *appContext, JSONIndent string, 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 + DataSource DataSource + IsPiparserDisabled bool + MaxAddrs int + Params *chaincfg.Params + XcBot *exchanges.ExchangeBot + type DataSource 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) + CurrentCoinSupply func() *apitypes.CoinSupply + FillAddressTransactions func(addrInfo *dbtypes.AddressInfo) error + GetAddressTransactionsRawWithSkip func(addr string, count, skip int) []*apitypes.AddressTxRaw + 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) + GetBlockVerboseByHash func(hash string, verboseTx bool) *chainjson.GetBlockVerboseResult + GetHeader func(idx int) *chainjson.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) + 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, []uint32) + GetRawAPITransaction func(txid *chainhash.Hash) *apitypes.Tx + 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 + GetStakeVersionsLatest func() (*chainjson.StakeVersions, error) + GetSummary func(idx int) *apitypes.BlockDataBasic + GetSummaryByHash func(hash string, withTxTotals bool) *apitypes.BlockDataBasic + GetSummaryRange func(idx0, idx1 int) []*apitypes.BlockDataBasic + GetSummaryRangeStepped func(idx0, idx1, step int) []*apitypes.BlockDataBasic + GetTicketInfo func(txid string) (*apitypes.TicketInfo, error) + GetTransactionHex func(txid *chainhash.Hash) string + 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) (*chainjson.GetVoteInfoResult, 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) Other modules containing this package github.com/Decred-Next/dcrndata