File tree 2 files changed +45
-0
lines changed
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,25 @@ curl -X POST -k http://localhost:8081/v1/control/listsubnets
186
186
avalanche-network-runner control list-subnets
187
187
```
188
188
189
+ To add a node as a validator to a Subnet:
190
+
191
+ ``` sh
192
+ curl -X POST -k http://localhost:8081/v1/control/addsubnetvalidators -d ' [{"subnetId": "' $SUBNET_ID ' ", "nodeNames":["node1"]}]'
193
+
194
+ # or
195
+ avalanche-network-runner control add-subnet-validators ' [{"subnet_id": "' $SUBNET_ID ' ", "node_names":["node1"]}]'
196
+ ```
197
+
198
+ To remove a node as a validator from a Subnet:
199
+
200
+ ``` sh
201
+ curl -X POST -k http://localhost:8081/v1/control/removesubnetvalidator -d ' [{"subnetId": "' $SUBNET_ID ' ", "nodeNames":["node1"]}]'
202
+
203
+ # or
204
+ avalanche-network-runner control remove-subnet-validator ' [{"subnet_id": "' $SUBNET_ID ' ", "node_names":["node1"]}]'
205
+ ```
206
+
207
+
189
208
## Operating with blockchains
190
209
191
210
** Note** : To create a blockchain, the vm binary for it should be present under the plugin dir, with a filename equal to the vm id. The plugin dir
Original file line number Diff line number Diff line change @@ -172,6 +172,32 @@ curl --location 'http://localhost:8081/v1/control/addpermissionlessvalidator' \
172
172
]}'
173
173
```
174
174
175
+ ## ` add-subnet-validators `
176
+
177
+ Adds subnet validators
178
+
179
+ ### Usage
180
+
181
+ ``` sh
182
+ avalanche-network-runner control add-subnet-validators validatorsSpec [options] [flags]
183
+ ```
184
+
185
+ ### Example
186
+
187
+ cli
188
+
189
+ ``` sh
190
+ avalanche-network-runner control add-subnet-validators ' [{"subnet_id": "p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz", "node_names":["node1"]}]'
191
+ ```
192
+
193
+ curl
194
+
195
+ ``` sh
196
+ curl --location ' http://localhost:8081/v1/control/addsubnetvalidators' \
197
+ --header ' Content-Type: application/json' \
198
+ --data ' [{"subnetId": "p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz", "nodeNames":["node1"]}]'
199
+
200
+
175
201
# # `attach-peer`
176
202
177
203
Attaches a peer to the node.
You can’t perform that action at this time.
0 commit comments