Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page explique comment afficher une liste des nœuds Blockchain Node Engine à l'aide de la console ou d'un appel d'API.
Utiliser la console
La liste Nœuds affiche la liste des nœuds existants dans Blockchain Node Engine.
Si aucun nœud n'a été créé, vous êtes invité à en créer un, comme décrit dans la section Créer un nœud de blockchain.
Dans la console Google Cloud , accédez à la page Blockchain Node Engine.
Cliquez dans la zone de filtre. Un menu de sélection des noms de colonnes s'affiche.
Sélectionnez un nom de colonne. (par exemple, État). Un menu de sélection des états s'affiche.
Sélectionnez un État. (par exemple, Running [En cours d'exécution]).
Vous pouvez également ajouter un opérateur OU, puis sélectionner d'autres options pour modifier davantage votre requête. Par exemple, Status: RUNNING OR Location: us-central1.
Vous pouvez également modifier la requête:
Cliquez sur le symbole X sur le chip de requête pour la supprimer.
Cliquez sur le X dans la zone Filtre pour effacer toutes les requêtes.
Modifier les colonnes
Pour afficher ou masquer des colonnes:
Cliquez sur view_columnOptions d'affichage des colonnes. Un menu de sélection des colonnes possibles s'affiche.
Sélectionnez les éléments à afficher ou désélectionnez ceux à masquer.
Cliquez sur OK.
Tri
Pour réorganiser la liste des API affichées, cliquez sur un en-tête de colonne.
La flèche indique la priorité de tri actuelle.
Une flèche vers le bas arrow_downward indique l'ordre décroissant.
Une flèche vers le haut arrow_upward indique l'ordre croissant.
Utiliser une API
Pour répertorier tous les nœuds de blockchain avec ListBlockchainNodes, envoyez la requête suivante:
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis page outlines the process of viewing a list of Blockchain Node Engine nodes using either the Google Cloud console or through an API call.\u003c/p\u003e\n"],["\u003cp\u003eThe console method displays a "Nodes" list, which shows information such as node name, status, chain, node type, location, and JSON-RPC and WebSocket endpoints.\u003c/p\u003e\n"],["\u003cp\u003eIn the console, the list of nodes can be refined using filter options, customized columns, and sorting capabilities.\u003c/p\u003e\n"],["\u003cp\u003eUsing an API call with \u003ccode\u003eListBlockchainNodes\u003c/code\u003e allows users to retrieve a list of nodes by sending a request to a specific endpoint with their project ID and location.\u003c/p\u003e\n"],["\u003cp\u003eThe API call response provides detailed information about each node, including its name, creation time, blockchain type, connection info, and current state.\u003c/p\u003e\n"]]],[],null,["# List blockchain nodes\n\nThis page describes how to view a list of Blockchain Node Engine nodes using the\n[console](#using-the-console) or an [API](#using-an-api) call.\n\nUsing the console\n-----------------\n\nThe **Nodes** list displays a list of nodes that exist in Blockchain Node Engine.\nIf no nodes have been created, you are prompted to create one as described in\n[Create a blockchain node](/blockchain-node-engine/docs/create-node).\n\nIn the Google Cloud console, go to the **Blockchain Node Engine** page.\n\n\n[Go to Blockchain Node Engine](https://console.cloud.google.com/blockchain-node-engine)\n\n\u003cbr /\u003e\n\nThe **Nodes** list page is displayed by default.\n\n[](/static/blockchain-node-engine/images/nodes-list.png)\n\nHere's what you can do on this page:\n\n### Filter\n\nTo refine the list of nodes displayed:\n\n1. Create a filter query:\n\n 1. Click in the filter box. A selection menu of the column names is displayed.\n 2. Select a column name. For example, **Status**. A selection menu of the states is displayed.\n 3. Select a state. For example, **Running**.\n 4. Optionally, add an OR operator and then select other options to further modify your query. For example, `Status: RUNNING OR Location: us-central1`.\n2. Optionally, modify the query:\n\n - Click the X on the query chip to remove the query.\n - Click the X on the **Filter** box to clear all queries.\n\n### Edit columns\n\nTo show or hide columns:\n\n1. Click view_column **Column display options**. A selection menu of possible columns is displayed.\n2. Select items to display, or clear items to hide.\n3. Click **OK**.\n\n### Sort\n\nTo reorder the list of APIs displayed, click a column heading.\n\nThe arrow indicates the current sort priority.\nA arrow_downward down arrow indicates\ndescending order.\nAn arrow_upward up arrow indicates\nascending order.\n\nUsing an API\n------------\n\nTo list all Blockchain nodes with\n[ListBlockchainNodes](/blockchain-node-engine/docs/reference/rest/v1/projects.locations.blockchainNodes/list),\nsend the following request: \n\n curl \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"Content-Type: application/json\" \\\n https://blockchainnodeengine.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/\\\n locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/blockchainNodes\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e is your Google Cloud project ID. For example, `my-project-id`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e is the [location](/blockchain-node-engine/docs/terms#location) you selected in [Create a node](/blockchain-node-engine/docs/create-node). For example, `us-central1`.\n\nHere is a sample response to this command: \n\n {\n \"blockchainNodes\": [\n {\n \"name\": \"projects/my-project-id/locations/us-central1/blockchainNodes/my-new-node-2\",\n \"createTime\": \"2023-05-05T21:19:33.308756Z\",\n \"updateTime\": \"2023-05-05T21:58:44.513286Z\",\n \"labels\": {\n \"my-label-key\": \"my-label-value\"\n },\n \"blockchainType\": \"ETHEREUM\",\n \"connectionInfo\": {\n \"ipInfo\": {\n \"rpcIpv4Address\": \"203.0.113.1\"\n },\n \"endpointInfo\": {\n \"jsonRpcApiEndpoint\": \"json-rpc.4amkczs2vkh8hjtghcipu7y2t.blockchainnodeengine.com\",\n \"websocketsApiEndpoint\": \"ws.4amkczs2vkh8hjtghcipu7y2t.blockchainnodeengine.com\"\n }\n },\n \"ethereumDetails\": {\n \"network\": \"MAINNET\",\n \"nodeType\": \"FULL\",\n \"executionClient\": \"GETH\",\n \"consensusClient\": \"LIGHTHOUSE\",\n \"apiEnableAdmin\": false,\n \"apiEnableDebug\": false,\n \"additionalEndpoints\": {\n \"beaconApiEndpoint\": \"beacon.4amkczs2vkh8hjtghcipu7y2t.blockchainnodeengine.com\",\n \"beaconPrometheusMetricsApiEndpoint\": \"bc-mc.4amkczs2vkh8hjtghcipu7y2t.blockchainnodeengine.com\"\n }\n },\n \"state\": \"RUNNING\"\n },\n {\n \"name\": \"projects/my-project-id/locations/us-central1/blockchainNodes/my-new-node\",\n \"createTime\": \"2023-05-05T21:03:14.002367Z\",\n \"updateTime\": \"2023-05-05T21:42:28.131570Z\",\n \"blockchainType\": \"ETHEREUM\",\n \"connectionInfo\": {\n \"ipInfo\": {\n \"rpcIpv4Address\": \"203.0.113.2\"\n },\n \"endpointInfo\": {\n \"jsonRpcApiEndpoint\": \"json-rpc.8t4jplvidg0v6nsjgqfwok6it.blockchainnodeengine.com\",\n \"websocketsApiEndpoint\": \"ws.8t4jplvidg0v6nsjgqfwok6it.blockchainnodeengine.com\"\n }\n },\n \"ethereumDetails\": {\n \"network\": \"MAINNET\",\n \"nodeType\": \"FULL\",\n \"executionClient\": \"GETH\",\n \"consensusClient\": \"LIGHTHOUSE\",\n \"apiEnableAdmin\": true,\n \"apiEnableDebug\": true,\n \"additionalEndpoints\": {\n \"beaconApiEndpoint\": \"beacon.8t4jplvidg0v6nsjgqfwok6it.blockchainnodeengine.com\",\n \"beaconPrometheusMetricsApiEndpoint\": \"bc-mc.8t4jplvidg0v6nsjgqfwok6it.blockchainnodeengine.com\"\n }\n },\n \"state\": \"RUNNING\"\n }\n ]\n }"]]