Network

Get List of Available Networks

Changed on

This endpoint returns a list of NetworkIdentifiers that the Rosetta server supports.

post/network/list

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

MetadataRequest required

A MetadataRequest is utilized in any request where the only argument is optional metadata.

metadata, object

Response

Expected response to a valid request

NetworkListResponse required

A NetworkListResponse contains all NetworkIdentifiers that the node can serve information for.

network_identifiers, NetworkIdentifier[] required

Example response

{
  "network_identifiers": [
    {
      "blockchain": "bitcoin",
      "network": "mainnet",
      "sub_network_identifier": {
        "network": "shard 1",
        "metadata": {
          "producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
        }
      }
    }
  ]
}

Changes

    • breaking

      the network_identifiers/items response's property type changed from no type to object for status

    • info

      added the optional property network_identifiers/items/sub_network_identifier to the response with the status

    • info

      added the required property network_identifiers/items/blockchain to the response with the status

    1 more change in this revision