Index more data using getblockstats core RPC

This commit is contained in:
nymkappa
2022-03-09 19:18:51 +01:00
parent 942e7acfa1
commit 950be63da0
4 changed files with 67 additions and 27 deletions

View File

@@ -79,7 +79,7 @@ export interface TransactionStripped {
export interface BlockExtension {
totalFees?: number;
medianFee?: number;
medianFee?: number; // Actually the median fee rate that we compute ourself
feeRange?: number[];
reward?: number;
coinbaseTx?: TransactionMinerInfo;
@@ -87,7 +87,15 @@ export interface BlockExtension {
pool?: {
id: number;
name: string;
}
};
avgFee?: number;
avgFeeRate?: number;
maxFee?: number;
maxFeeRate?: number;
minFee?: number;
minFeeRate?: number;
subsidy?: number;
medianFeeValue?: number; // The actual median fee amount from getblockstats RPC
}
export interface BlockExtended extends IEsploraApi.Block {