From a3569fd5169bdcdc60d12a69bf7c71aef27ee34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C5=BEe=20Luzar?= Date: Wed, 9 Sep 2026 16:29:31 +0200 Subject: [PATCH] docs: Update Rosetta Gateway endpoints The Rosetta Gateway moved to new SimplyVC endpoints, with Testnet now served from its own testnet.rosetta.oasis.io hostname. Document the new base URLs and note that the previous ones keep working. Also point the state sync example at /v1/block and say which hostname to use for Testnet, since each gateway only serves its own network. --- docs/build/tools/other-paratimes/network.md | 13 ++++++++++--- .../advanced/sync-node-using-state-sync.md | 9 ++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/build/tools/other-paratimes/network.md b/docs/build/tools/other-paratimes/network.md index 2c87c6daed..2c4c490521 100644 --- a/docs/build/tools/other-paratimes/network.md +++ b/docs/build/tools/other-paratimes/network.md @@ -57,9 +57,16 @@ Public gRPC endpoints (in alphabetic order): ## Rosetta Endpoints -| Provider | Mainnet URL | Testnet URL | -|----------|-------------------------------------------|-------------------------------------------| -| [Oasis] | `https://rosetta.oasis.io/api/mainnet/v1` | `https://rosetta.oasis.io/api/testnet/v1` | +| Provider | Mainnet URL | Testnet URL | +|----------|-------------------------------|---------------------------------------| +| [Oasis] | `https://rosetta.oasis.io/v1` | `https://testnet.rosetta.oasis.io/v1` | + +:::info + +The previous URLs, `https://rosetta.oasis.io/api/mainnet/v1` and +`https://rosetta.oasis.io/api/testnet/v1`, keep working and need no change. + +::: :::note diff --git a/docs/node/run-your-node/advanced/sync-node-using-state-sync.md b/docs/node/run-your-node/advanced/sync-node-using-state-sync.md index 3d37866607..77e5c085f2 100644 --- a/docs/node/run-your-node/advanced/sync-node-using-state-sync.md +++ b/docs/node/run-your-node/advanced/sync-node-using-state-sync.md @@ -176,10 +176,13 @@ First obtain the network's Genesis document's hash (e.g. from the Networks Param - [Testnet](https://docs.oasis.io/node/testnet/): `0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76` Query our public Rosetta Gateway instance and obtain the latest height by -replacing the `` with the value obtained in the previous step: +replacing the `` with the value obtained in the previous step. +The examples below use the Mainnet gateway; for Testnet, replace +`https://rosetta.oasis.io/v1` with `https://testnet.rosetta.oasis.io/v1`, since +each gateway only serves its own network: ```bash -curl -X POST https://rosetta.oasis.io/api/block \ +curl -X POST https://rosetta.oasis.io/v1/block \ -H "Content-Type: application/json" \ -d '{ "network_identifier": { @@ -210,7 +213,7 @@ Assuming blocks happen every 6 seconds, subtract around `140_000` blocks to get the height that is around 10 days old and query again: ```bash -curl -X POST https://rosetta.oasis.io/api/block \ +curl -X POST https://rosetta.oasis.io/v1/block \ -H "Content-Type: application/json" \ -d '{ "network_identifier": {