Skip to main content

Deploy Root Contract

Deploys root contracts for the specified node.

Request

POST /v2/admin/nodes/{nodeID}/deploy/root/contracts

Parameters

NameTypeInDescription
nodeIDstringpathRequired. The ID of the node to deploy root contracts for

Headers

NameDescription
Content-Typeapplication/json
AuthorizationRequired. Bearer token for authentication

Body

No body.

Example

curl --location --request POST 'http://localhost:3453/v2/admin/nodes/:id/deploy/root/contracts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>'

Response

  • Status: 204 No Content
  • Body: none

Status Codes

Status CodeDescription
204No Content - Deployment started/accepted
400Bad Request - Invalid node ID
401Unauthorized - Invalid or missing authentication token
404Not Found - Node does not exist
500Internal Server Error