NetworkMapCache.getNodeByLegalIdentity - corda

corda / net.corda.core.node.services / NetworkMapCache / getNodeByLegalIdentity

# getNodeByLegalIdentity

`abstract fun getNodeByLegalIdentity(party: AbstractParty): NodeInfo?`

Look up the node info for a specific party. Will attempt to de-anonymise the party if applicable; if the party is anonymised and the well known party cannot be resolved, it is impossible ot identify the node and therefore this returns null. Notice that when there are more than one node for a given party (in case of distributed services) first service node found will be returned. See also: NetworkMapCache.getNodesByLegalIdentityKey.

### Parameters

`party` - party to retrieve node information for.

Return
the node for the identity, or null if the node could not be found. This does not necessarily mean there is no node for the party, only that this cache is unaware of it.