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"
}