feat: add support for blockTime on confirmed block (#15968)

This commit is contained in:
Josh
2021-03-18 07:10:48 -07:00
committed by GitHub
parent 689e03d341
commit 0988c2f1d6
2 changed files with 7 additions and 0 deletions

View File

@@ -602,6 +602,7 @@ export type ParsedConfirmedTransaction = {
* @property {number} parentSlot Slot index of this block's parent
* @property {Array<object>} transactions Vector of transactions and status metas
* @property {Array<object>} rewards Vector of block rewards
* @property {number|null} blockTime The unix timestamp of when the block was processed
*/
export type ConfirmedBlock = {
blockhash: Blockhash;
@@ -617,6 +618,7 @@ export type ConfirmedBlock = {
postBalance: number | null;
rewardType: string | null;
}>;
blockTime: number | null;
};
/**
@@ -1247,6 +1249,7 @@ export const GetConfirmedBlockRpcResult = jsonRpcResult(
}),
),
),
blockTime: nullable(number()),
}),
),
);