diff --git a/src/connection.ts b/src/connection.ts index 950a4a808f2..8dba0e852e8 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -1294,6 +1294,8 @@ export type ParsedTransactionWithMeta = { * A processed block fetched from the RPC API */ export type BlockResponse = { + /** Block height of this block */ + blockHeight: number | null; /** Blockhash of this block */ blockhash: Blockhash; /** Blockhash of this block's parent */ @@ -1410,6 +1412,8 @@ export type ParsedNoneModeBlockResponse = Omit< * A processed block fetched from the RPC API */ export type VersionedBlockResponse = { + /** Block height of this block */ + blockHeight: number | null; /** Blockhash of this block */ blockhash: Blockhash; /** Blockhash of this block's parent */ @@ -1995,6 +1999,7 @@ const GetConfirmedSignaturesForAddress2RpcResult = jsonRpcResult( err: TransactionErrorResult, memo: nullable(string()), blockTime: optional(nullable(number())), + blockHeight: nullable(number()), }), ), ); @@ -2010,6 +2015,7 @@ const GetSignaturesForAddressRpcResult = jsonRpcResult( err: TransactionErrorResult, memo: nullable(string()), blockTime: optional(nullable(number())), + blockHeight: nullable(number()), }), ), ); @@ -2550,6 +2556,7 @@ const GetConfirmedBlockRpcResult = jsonRpcResult( ), rewards: optional(array(RewardsResult)), blockTime: nullable(number()), + blockHeight: nullable(number()), }), ), ); @@ -2565,6 +2572,7 @@ const GetBlockSignaturesRpcResult = jsonRpcResult( parentSlot: number(), signatures: array(string()), blockTime: nullable(number()), + blockHeight: nullable(number()), }), ), );