Skip to main content

starknet_specVersion

Returns the version of the Starknet JSON-RPC specification being used

Parameters#

This method does not accept parameters.

Request#

{
"jsonrpc": "2.0",
"method": "starknet_specVersion",
"params": [],
"id": 1
}

Returns#

Semver of Starknet's JSON-RPC spec being used

JSON-RPC specification version (string)

Examples#

curl -X POST https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_specVersion",
"params": [],
"id": 1
}'