Get protocol config
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the configuration for a protocol version. Omit version to use the current version. Without a read mask, only the protocol version is returned. A future version or an unavailable skipped version returns NOT_FOUND.
Fullnodes compute configurations up to their current protocol version; kv-rpc uses the version at its indexed checkpoint and may not have configurations for skipped versions.
gRPC method: sui.rpc.v2.LedgerService.GetProtocolConfig (unary).
This is a gRPC method (HTTP/2, Protocol Buffers), not a REST endpoint. The request and response bodies below are shown in the proto3 JSON form that tools such as grpcurl and Postman accept and print. Pass your NOWNodes API key as the api-key gRPC metadata header. Proto files: sui/rpc/v2/ledger_service.proto.
Use proto files that include the Sui v1.85.2 API changes (MystenLabs/sui-apis commit 680d19c).
Example grpcurl request:
grpcurl \
-H 'api-key: YOUR_API_KEY' \
-emit-defaults \
-proto './sui-apis-grpc/proto/sui/rpc/v2/ledger_service.proto' \
-import-path './sui-apis-grpc/proto' \
-d '{"readMask": "protocolVersion,configs"}' \
'sui-grpc.nownodes.io:443' \
sui.rpc.v2.LedgerService.GetProtocolConfigBody
versionstring<uint64>Requested protocol version. Omit for the current version.
readMaskstringComma-separated protobuf FieldMask in lowerCamelCase, e.g. objectId,version,digest. Nested paths use dots. Fields to read. Defaults to protocol_version. Select configs for the configuration map.
Response
Successful response.
gRPC error. The status code (e.g. UNAUTHENTICATED, INVALID_ARGUMENT, NOT_FOUND) is returned in the grpc-status trailer, details in grpc-message. NOT_FOUND: requested protocol version is unavailable (version 144 returned NOT_FOUND in the captured test). UNIMPLEMENTED (NOT_SERVED_HERE): the server does not serve this method. A node that does not support the requested operation returns UNIMPLEMENTED (NOT_SERVED_HERE); a node not ready to serve it returns UNAVAILABLE (NOT_READY). A future or skipped version not served by the node returns NOT_FOUND.