Only header.Number is used, while the block number can be extracted either from the input in block number case or from BlockHeaderNumbersByHash bucket in block hash case.
https://github.com/NethermindEth/juno/blob/v0.15.10/rpc/v9/transaction.go#L552-L557