NetworkParametersService
Keywords: net.corda.core.node.services.NetworkParametersService interface
Date: 2023-09-18

net.corda.core.node.services

## Interface NetworkParametersService

-     @DoNotImplement
      public NetworkParametersService

  Service for retrieving network parameters used for resolving transactions according to parameters that were historically in force in the network.

- - ### Constructor Detail

    - #### NetworkParametersService

          public NetworkParametersService()

  - ### Method Detail

    - #### getCurrentHash

          @NotNull
          SecureHash getCurrentHash()

      Hash of the current parameters for the network.

    - #### getDefaultHash

          @NotNull
          SecureHash getDefaultHash()

      For backwards compatibility, this parameters hash will be used for resolving historical transactions in the chain.

    - #### lookup

          @Nullable
          NetworkParameters lookup(@NotNull
                                             SecureHash hash)

      Return the network parameters with the given hash, or null if it doesn't exist.