TriportRPC

web3_clientVersion

POSThttps://triport.io/rpc/tron

Returns the implementation-defined client version of the selected Tron node.

Tron mainnettron:rpcfree+; tron_read_rpc: 15 / 20 / 100 / 250 RPS (free / basic / pro / business; default, unmeasured)

web3_clientVersion returns the software version string reported by whichever eligible Tron node serves the request. The captured response identifies a java-tron implementation.

Use the value for diagnostics and compatibility logging. Do not branch product behavior on the exact string: routing can select another eligible node and the schema deliberately leaves the format implementation-defined.

Parameters

JSON-RPC params must be an empty array.

paramsarrayrequired
Empty array; this method accepts no positional parameters.

Response

Response fields

FieldTypeDescription
jsonrpcstringJSON-RPC protocol version.
idnumberCorrelates the response with the request.
resultstringImplementation-defined upstream client version.

Errors

See Tron errors for the shared envelope.

CodeMeaningWhen it happens
-32602Invalid paramsA positional parameter was supplied.
-32601Method not foundThe method is outside the published catalog.
401UnauthorizedThe API key is missing or invalid.
429Rate limitedThe tron_read_rpc budget is exceeded.

Examples

const response = await fetch("https://triport.io/rpc/tron", {
  method: "POST",
  headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "web3_clientVersion", params: [] }),
});
console.log((await response.json()).result);

Notes

  • The example is a measured response, not a pinned version guarantee.
  • Node identity, peer lists, and mempool access are not exposed by this method.
  • Related: getnodeinfo is the native wallet status call.