starknet_specVersion
Returns the version of the Starknet JSON-RPC specification that the client is using.
Parameters
None.
Returns
The current Starknet JSON-RPC specification version.
Example
Replace <YOUR-API-KEY>
with an API key from your Infura dashboard.
Request
- curl
curl https://starknet-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"starknet_specVersion","params":[],"id":1}'
Response
- JSON
{
"id": 1,
"jsonrpc": "2.0",
"result": "0.5.1"
}