Validators
How to create, manage or delete a validator on the NodeHub.io platform via API.
Get all validators
GET
https://api.nodehub.io/v1/nodes
This endpoint returns list of your nodes including validators with their related information.
Headers
Authorization*
string
Authentication token you've generated in your account
Get a specific validator
GET
https://api.nodehub.io/v1/nodes/:id
This endpoint returns information about the validator that you've specified.
Path Parameters
id*
string
ID of the validator
Headers
Authorization*
string
Authentication token you've generated in your account
Create a validator
POST
https://api.nodehub.io/v1/validators
This endpoint allows you to create a validator.
Headers
Authorization*
string
Authentication token you've generated in your account
Content-Type
multipart/form-data
Content-Type must be multipart/form-data.
Request Body
currency*
string
NodeHub ID of the project
keystores*
list of .json files
List of validator keystore json files. Up to 20 files at a time can be uploaded at the same payload.
password*
string
Password for the keystore json files. All files in the same payload must have the same password.
fee_recipient*
string
Fee recipient for the validator
package*
string
Dedicated or Cloud plan.
Change fee recipient
POST
https://api.nodehub.io/v1/validators/:id/fee
This endpoint allows you to change your validator's fee recipient.
Headers
Authorization*
string
Authentication token you've generated in your account
Path Parameters
id*
string
ID of the node
Request Body
fee_recipient*
string
Sign message
change_for
string
Optional. Acceptable values: only_this
to change for this validator only, same_fee
to apply the change to all validators with the same fee recipient and same_payee
to apply the change to all validators with the same validator address. Default: only_this
.
Delete a validator
DELETE
https://api.nodehub.io/v1/nodes/:id
This endpoint deletes your specified validator.
Headers
Authorization*
string
Authentication token you've generated in your account
Path Parameters
id*
string
ID of the validaator
Last updated