feat: add support for blockTime on confirmed block (#15968)
This commit is contained in:
@@ -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()),
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user