---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/blockchainNodes"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/blockchainNodes"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/blockchainNodes

`POST /v1/projects/{projectsId}/locations/{locationsId}/blockchainNodes`

## Request

- Base URL: `https://blockchainnodeengine.googleapis.com`
- URL: `https://blockchainnodeengine.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/blockchainNodes`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Creates a new blockchain node in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `blockchainNodeId` string
- `requestId` string

## Request body

- BlockchainNode: A representation of a blockchain node.
  - `blockchainType` 'BLOCKCHAIN_TYPE_UNSPECIFIED' | 'ETHEREUM': Immutable. The blockchain type of the node.
  - `connectionInfo` ConnectionInfo: The connection information through which to interact with a blockchain node.
    - `endpointInfo` EndpointInfo: Contains endpoint information through which to interact with a blockchain node.
      - `jsonRpcApiEndpoint` string: Output only. The assigned URL for the node JSON-RPC API endpoint.
      - `websocketsApiEndpoint` string: Output only. The assigned URL for the node WebSockets API endpoint.
    - `serviceAttachment` string: Output only. A service attachment that exposes a node, and has the following format: projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
  - `createTime` string, google-datetime: Output only. The timestamp at which the blockchain node was first created.
  - `ethereumDetails` EthereumDetails: Ethereum-specific blockchain node details.
    - `additionalEndpoints` EthereumEndpoints: Contains endpoint information specific to Ethereum nodes.
      - `beaconApiEndpoint` string: Output only. The assigned URL for the node's Beacon API endpoint.
      - `beaconPrometheusMetricsApiEndpoint` string: Output only. The assigned URL for the node's Beacon Prometheus metrics endpoint. See [Prometheus Metrics](https://lighthouse-book.sigmaprime.io/advanced_metrics.html) for more details.
      - `executionClientPrometheusMetricsApiEndpoint` string: Output only. The assigned URL for the node's execution client's Prometheus metrics endpoint.
    - `apiEnableAdmin` boolean: Immutable. Enables JSON-RPC access to functions in the `admin` namespace. Defaults to `false`.
    - `apiEnableDebug` boolean: Immutable. Enables JSON-RPC access to functions in the `debug` namespace. Defaults to `false`.
    - `consensusClient` 'CONSENSUS_CLIENT_UNSPECIFIED' | 'LIGHTHOUSE' | 'ERIGON_EMBEDDED_CONSENSUS_LAYER': Immutable. The consensus client.
    - `executionClient` 'EXECUTION_CLIENT_UNSPECIFIED' | 'GETH' | 'ERIGON': Immutable. The execution client
    - `gethDetails` GethDetails: Options for the Geth execution client. See [Command-line Options](https://geth.ethereum.org/docs/fundamentals/command-line-options) for more details.
      - `garbageCollectionMode` 'GARBAGE_COLLECTION_MODE_UNSPECIFIED' | 'FULL' | 'ARCHIVE': Immutable. Blockchain garbage collection mode.
    - `network` 'NETWORK_UNSPECIFIED' | 'MAINNET' | 'TESTNET_GOERLI_PRATER' | 'TESTNET_SEPOLIA' | 'TESTNET_HOLESKY': Immutable. The Ethereum environment being accessed.
    - `nodeType` 'NODE_TYPE_UNSPECIFIED' | 'LIGHT' | 'FULL' | 'ARCHIVE': Immutable. The type of Ethereum node.
    - `validatorConfig` ValidatorConfig: Configuration for validator-related parameters on the beacon client, and for any GCP-managed validator client.
      - `beaconFeeRecipient` string: An Ethereum address which the beacon client will send fee rewards to if no recipient is configured in the validator client. See https://lighthouse-book.sigmaprime.io/suggested-fee-recipient.html or https://docs.prylabs.network/docs/execution-node/fee-recipient for examples of how this is used. Note that while this is often described as "suggested", as we run the execution node we can trust the execution node, and therefore this is considered enforced.
      - `managedValidatorClient` boolean: Immutable. When true, deploys a GCP-managed validator client alongside the beacon client.
      - `mevRelayUrls` string[]: URLs for MEV-relay services to use for block building. When set, a GCP-managed MEV-boost service is configured on the beacon client.
  - `labels` object: User-provided key-value pairs.
  - `name` string: Output only. The fully qualified name of the blockchain node. e.g. `projects/my-project/locations/us-central1/blockchainNodes/my-node`.
  - `privateServiceConnectEnabled` boolean: Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: These nodes are deprecated, please use public endpoints instead.
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'DELETING' | 'RUNNING' | 'ERROR' | 'UPDATING' | 'REPAIRING' | 'RECONCILING' | 'SYNCING': Output only. A status representing the state of the node.
  - `updateTime` string, google-datetime: Output only. The timestamp at which the blockchain node was last updated.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/blockchainnodeengine.md) - [All operations](https://skmtc.dev/google/apis/blockchainnodeengine/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/blockchainnodeengine/revisions/4b0883d76bba?raw)
