From 01fe835e73f7bf052216d00bc34345e77650dea2 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 17 Dec 2020 10:04:39 -0800 Subject: [PATCH] fix: add transactionCount field to GetEpochInfo --- web3.js/src/connection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index a7a161e262..51047eee9f 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -276,6 +276,7 @@ const GetInflationGovernorResult = struct({ * @property {number} slotsInEpoch * @property {number} absoluteSlot * @property {number} blockHeight + * @property {number} transactionCount */ type EpochInfo = { epoch: number, @@ -283,6 +284,7 @@ type EpochInfo = { slotsInEpoch: number, absoluteSlot: number, blockHeight: number | null, + transactionCount: number | null, }; const GetEpochInfoResult = struct({ @@ -291,6 +293,7 @@ const GetEpochInfoResult = struct({ slotsInEpoch: 'number', absoluteSlot: 'number', blockHeight: 'number?', + transactionCount: 'number?', }); /**