Deploy Root Contract
Deploys root contracts for the specified node.
Request
POST /v2/admin/nodes/{nodeID}/deploy/root/contracts
Parameters
| Name | Type | In | Description |
|---|---|---|---|
nodeID | string | path | Required. The ID of the node to deploy root contracts for |
Headers
| Name | Description |
|---|---|
Content-Type | application/json |
Authorization | Required. 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 Code | Description |
|---|---|
| 204 | No Content - Deployment started/accepted |
| 400 | Bad Request - Invalid node ID |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - Node does not exist |
| 500 | Internal Server Error |