TriportRPC

eth_protocolVersion

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

eth_protocolVersion returns the protocol version advertised by the Polygon execution layer. On Polygon mainnet (chain ID 0x89 / 137) the underlying client is Bor, which reports a small hex constant — typically 0x42 (66) or 0x41 (65).

The value is effectively static: it only changes across a node software upgrade, so clients may cache it indefinitely after the first successful response. It is most often used as a lightweight capability/identity check during connection setup, not on a hot path.

This is a free-tier read method (polygon_read_rpc) and takes no parameters. One quirk worth knowing: this method is noticeably slower than its sibling network-state reads (eth_chainId, net_version) — the backend recomputes the value rather than serving it from cache — so prefer to call it once and reuse the result.

Parameters

This method takes no parameters.

Returns

eth_protocolVersion return value
FieldType
resultobject

Examples

curl https://triport.io/polygon \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_protocolVersion","params":[]}'
const res = await fetch("https://triport.io/polygon", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_protocolVersion",
  "params": []
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/polygon",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_protocolVersion","params":[]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Polygon.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_protocolVersion do?
Returns the current EVM protocol version of the Polygon node as a hex string constant.
How many credits does eth_protocolVersion cost?
eth_protocolVersion costs 1 credit(s) per call on Triport by default.
Is eth_protocolVersion available over WebSocket?
eth_protocolVersion is an HTTP JSON-RPC method.