net.corda.node.services.network / InMemoryNetworkMapCache / getRecommended

getRecommended

open fun getRecommended(type: ServiceType, contract: Contract, vararg party: Party): NodeInfo?
Overrides NetworkMapCache.getRecommended

Get a recommended node that advertises a service, and is suitable for the specified contract and parties. Implementations might understand, for example, the correct regulator to use for specific contracts/parties, or the appropriate oracle for a contract.