Installation and usage of the platform

REST API: node licenses

The Waves Enterprise blockchain platform has a group of licenses methods to work with licenses:

GET /licenses

The method returns information about all loaded licenses.

The response for each license includes a license dataset, which contains the parameters specified in the license file received from Waves Enterprise.

Response example for one license:

GET /licenses/status

The method returns the activation status of the node license.

The response includes the following data:

  • status - license activation status: * TRIAL - trial license active (maximum blockchain height - 30000 blocks), no valid licenses at the end of the trial period; * TRIAL_EXPIRED - trial license expired, no valid licenses; * ACTIVE - valid license active at the request; * PENDING - no active license at the request, a valid license starting at a later date: this status arrives at the end of the trial period if there is a valid license with a later start date; * EXPIRED - there is a valid license with a later start date at the time of the request has expired, there are no valid licenses with a later start date.

  • description - a brief description of the status, the remaining number of blocks or the expiration date of the active license.

Response example:

POST /licenses/upload

The method adds a new license for the node. The parameters that are passed in JSON format in the request are specified in the file provided by Waves Enterprise specialists when executing the license.

Query example:

Response example:

DELETE ​/licenses​/{license_id}

The method deletes the loaded license by its identifier {license_id}. The license identifier is specified in the license file that you will receive from the Waves Enterprise specialists and in the response of the GET /licenses method.

Response example: