I'm working on a Substrate-based blockchain network. I need to verify if a user with a specific address (e.g., 5XDDFFDF...) has added a node to the network. Depending on the verification, I want to either allow or reject certain actions.
How can I programmatically check if an address has added a node to the network in Substrate?