> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbitflare.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getIdentity

> Returns the identity pubkey for the current node

## Parameters

This method does not require any parameters.

## Response

<ResponseField name="result" type="object">
  <Expandable title="result fields">
    <ResponseField name="identity" type="string">
      The identity pubkey of the current node (base-58 encoded)
    </ResponseField>
  </Expandable>
</ResponseField>

## Code Examples

### Basic Request

```bash theme={null}
curl http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getIdentity"
}'
```

### Using web3.js

```typescript theme={null}
import { Connection } from '@solana/web3.js';

const connection = new Connection('http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY');
const identity = await connection.getIdentity();
console.log(identity);
```

### Using Python

```python theme={null}
from solana.rpc.api import Client

client = Client("http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY")
response = client.get_identity()
print(response)
```

## 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
