Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/build/tools/other-paratimes/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<chain-context>` with the value obtained in the previous step:
replacing the `<chain-context>` 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": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading