You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/api/websocket.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1400,7 +1400,8 @@ identity is no longer in these three data sources, it will be removed.
1400
1400
"gossip": "93.119.195.160:8001",
1401
1401
"tpu": "192.64.85.26:8000",
1402
1402
// ... other sockets ...
1403
-
}
1403
+
},
1404
+
"country_code": "CN"
1404
1405
},
1405
1406
"vote": [
1406
1407
{
@@ -1438,6 +1439,7 @@ identity is no longer in these three data sources, it will be removed.
1438
1439
| version |`string\|null`| Software version being advertised by the validator. Might be `null` if the validator is not gossiping a version, or we have received the contact information but not the version yet. The version string, if not null, will always be formatted like `major`.`minor`.`patch` where `major`, `minor`, and `patch` are `u16`s |
1439
1440
| feature_set |`number\|null`| First four bytes of the `FeatureSet` hash interpreted as a little endian `u32`. Might be `null` if the validator is not gossiping a feature set, or we have received the contact information but not the feature set yet |
1440
1441
| sockets |`[key: string]: string`| A dictionary of sockets that are advertised by the validator. `key` will be one of gossip `serve_repair_quic`, `rpc`, `rpc_pubsub`, `serve_repair`, `tpu`, `tpu_forwards`, `tpu_forwards_quic`, `tpu_quic`, `tpu_vote`, `tvu`, `tvu_quic`, `tpu_vote_quic`, or `alpenglow`. The value is an address like `<addr>:<port>`: the location to send traffic to for this validator with the given protocol. Address might be either an IPv4 or an IPv6 address |
1442
+
| country_code |`string\|null`| ISO 3166-1 alpha-2 country code of where the validator is located, determined by GeoIP lookup on the gossip IP address. Country code may not be correct and is a best estimate. If no country code could be determined, will be `null`. |
0 commit comments