JSON-RPC API supports finalized as a block parameter

Background

I need to get the latest solidified/finalized block number through jsonrpc, but this method doesn't support yet.

Rationale

Why should this feature exist?
For many developers, they need to get the latest solidified/finalized block number, then fetch other data by this number.

What are the use-cases?
For example, I want to fetch the specific events by eth_getLogs, I should get the latest solidified/finalized block number, then using the eth_getLogs to fetch the logs.

Specification

The api eth_getBlockByNumber, eth_getBlockTransactionCountByNumber and eth_getLogs will support the parameter finalized, treating it the same as the solid block in java-tron.
The other jsonrpc api will not support this parameter, just returns message as TAG [earliest | pending | finalized] not supported.

Test Specification

Scope Of Impact

Implementation

Do you have ideas regarding the implementation of this feature?
Yes.
Actually, we can get the current solidified block number by chainBaseManager.getDynamicPropertiesStore().getLatestSolidifiedBlockNum();.

Are you willing to implement this feature?
Yes