getIdentity
https://api.triport.io/v1/solReturns the identity public key of the node currently serving your request.
getIdentity returns the identity public key for the node that handled the
request. It takes no parameters and is one of the cheapest read methods on the
Solana surface, which makes it useful as a connectivity / auth smoke-test: a
successful response confirms your key is valid and the endpoint is reachable.
Because requests are load-balanced across a pool of upstream nodes, the
identity value you receive may differ from one call to the next. Treat it as
the identity of whichever node served this particular request, not as a stable
identifier for your connection.
Parameters
This method takes no parameters. Send an empty params array.
——optionalResponse
Response fields
| Field | Type | Description |
|---|---|---|
result | object | Wrapper object for the result. |
result.identity | string (Pubkey) | Base-58 encoded public key (32–44 chars) of the node serving the request. |
Errors
| Code | Meaning | When it happens |
|---|---|---|
401 | Unauthorized | Missing or invalid Authorization: Bearer key. |
429 | Rate limited | More than your tier's RPS for sol_read_rpc (20 / 60 / 200 / 600). |
-32600 | Invalid Request | Malformed JSON-RPC envelope (e.g. missing jsonrpc/method). |
See the shared errors reference for the full error envelope and retry guidance.
Examples
JavaScript (fetch)
const res = await fetch("https://api.triport.io/v1/sol", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TRIPORT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "getIdentity",
params: [],
}),
});
const { result } = await res.json();
console.log(result.identity);TypeScript SDK (@triport/sdk)
import { TriportClient } from "@triport/sdk";
const client = new TriportClient({ apiKey: process.env.TRIPORT_API_KEY! });
const { identity } = await client.sol.getIdentity();
console.log(identity);Python (triport-sdk)
import os
from triport import TriportClient
client = TriportClient(api_key=os.environ["TRIPORT_API_KEY"])
result = client.sol.get_identity()
print(result["identity"])Notes
- The returned
identityreflects the node that served this request and is not guaranteed to be stable across calls. - For broader node and cluster information, see
getClusterNodes, and for liveness checks seegetHealth. - Rate limiting is per-second by tier with burst allowance; there is no daily quota. See rate limits and tiers.