Parameters
chainId
string
default: "sui"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default: "2.0"
required
JSON-RPC version.
method
string
default: "sui_getProtocolConfig"
required
JSON-RPC method name.
Optional array with a single protocol version to fetch configuration for. Positional parameters for sui_getProtocolConfig:
Returns
Protocol configuration response for the given or latest protocol version. Attributes field indicates protocol configuration attributes exist.
Whether protocol-level feature flags are supported in this version.
maxSupportedProtocolVersion
Maximum supported protocol version for this node.
minSupportedProtocolVersion
Minimum supported protocol version for this node.
Protocol version number being used.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "sui_getProtocolConfig",
"params": [
"6"
]
}'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"attributes" : true ,
"featureFlags" : true ,
"maxSupportedProtocolVersion" : "24" ,
"minSupportedProtocolVersion" : "1" ,
"protocolVersion" : "6"
}
}