Skip to main content

Parameters

This method does not require any parameters.

Response

object

Code Examples

Basic Request

Using web3.js

Using Python

Notes

  1. Returns the identity public key of the validator node you’re connected to
  2. Useful for identifying which node you’re communicating with
  3. The response is immediate as it reads from the node’s configuration
  4. Can be used to verify you’re connected to the expected node

Best Practices

  1. Use this method when troubleshooting node connectivity issues
  2. Compare returned identity with expected node identity for validation
  3. Handle network errors and retry when appropriate