network/list - Cardano

This endpoint returns the network identifiers the Rosetta server supports. It is the first call a client makes to discover which networks are available.

Parameters

The request body is a JSON object with the following fields.

FieldTypeRequiredDescription
metadataobjectNoOptional metadata object, usually empty

Request

bashcurl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/network/list' \
--header 'Content-Type: application/json' \
--data-raw '{
    "metadata": {}
}'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/network/list',
    {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({"metadata": {}})
    }
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.post(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/network/list',
    headers={'Content-Type': 'application/json'},
    json={"metadata": {}}
)

print(response.json())

Response

json{
    "network_identifiers": [
        {
            "blockchain": "cardano",
            "network": "mainnet"
        }
    ]
}

Response Parameters

FieldTypeDescription
network_identifiersarraySupported networks, each with a blockchain and network name

Use Cases

  • Discovery: Discover which networks the endpoint serves
  • Configuration: Confirm the mainnet identifier before other calls
  • Multi-Network Clients: Enumerate networks a client can target
  • Health Checks: Confirm the Rosetta server is responding

Error Handling

Error CodeMessageDescription
1Invalid requestThe request body is malformed or missing required fields
4Block not foundThe requested block does not exist on this node
5Internal errorThe node failed to answer the request