TriportRPC

getIdentity

POSThttps://api.triport.io/v1/sol

Returns the identity public key of the node currently serving your request.

Solanasol_read_rpcfree+ — 20 / 60 / 200 / 600 RPS (free / basic / pro / business)

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.

optional
No parameters.

Response

Response fields

FieldTypeDescription
resultobjectWrapper object for the result.
result.identitystring (Pubkey)Base-58 encoded public key (32–44 chars) of the node serving the request.

Errors

CodeMeaningWhen it happens
401UnauthorizedMissing or invalid Authorization: Bearer key.
429Rate limitedMore than your tier's RPS for sol_read_rpc (20 / 60 / 200 / 600).
-32600Invalid RequestMalformed 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 identity reflects 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 see getHealth.
  • Rate limiting is per-second by tier with burst allowance; there is no daily quota. See rate limits and tiers.