Skip to content

Commit d7065fd

Browse files
authored
Update docs with more detailed API versioning (#1346)
1 parent b8aec6a commit d7065fd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ After following these steps, Juno should be up and running on your machine, util
155155
## ✔ Supported Features
156156

157157
- Starknet [v0.12.2](https://docs.starknet.io/documentation/starknet_versions/version_notes/) support.
158-
- JSON-RPC [v0.5.0](https://github.com/starkware-libs/starknet-specs/releases/tag/v0.5.0):
158+
- JSON-RPC [v0.5.0](https://github.com/starkware-libs/starknet-specs/releases/tag/v0.5.0)(Available under `/v0_5` endpoint)
159159
- `starknet_chainId`
160160
- `starknet_blockNumber`
161161
- `starknet_blockHashAndNumber`

docs/versioned_docs/version-0.7.0/intro.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ For a complete list of options and their explanations, see the [Example Configur
3030
docker run nethermind/juno --help
3131
```
3232

33+
# Juno is compatible with the following Starknet API versions:
34+
35+
- **v0.5.0** (Endpoint: `/v0_5`)
36+
- **v0.4.0** (Endpoint: `/v0_4`)
37+
38+
To interact with a specific API version, you can specify the version endpoint in your RPC calls. For example:
39+
40+
```shell
41+
curl -X POST http://localhost:6060/v0_5 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"juno_version","id":1}'
42+
```
43+
3344
# Looking for a Starknet RPC Provider?
3445

3546
If you are looking for a Starknet RPC provider, Nethermind will offer a Starknet RPC service before the upcoming feeder gateway deprecation. You can register your interest on [this Google Form](https://docs.google.com/forms/d/e/1FAIpQLSf2Bl4fc9-38E-fpWf0tnMWc3jSeOFkpjSPMN_j1en1WmEgKg/viewform?usp=sf_link).

0 commit comments

Comments
 (0)