2023-01-11 14:26:49 +00:00
|
|
|
# FrostFS subnetwork creation
|
2021-12-07 13:37:42 +00:00
|
|
|
|
2023-03-02 10:56:11 +00:00
|
|
|
This is a short guide on how to create FrostFS subnetworks. This guide
|
|
|
|
considers that the sidechain and the inner ring (alphabet nodes) have already been
|
2022-04-21 11:28:05 +00:00
|
|
|
deployed and the sidechain contains a deployed `subnet` contract.
|
2021-12-07 13:37:42 +00:00
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
To follow this guide, you need:
|
|
|
|
- neo-go sidechain RPC endpoint;
|
2022-12-23 17:35:35 +00:00
|
|
|
- latest released version of [frostfs-adm](https://github.com/TrueCloudLab/frostfs-node/releases);
|
2023-01-11 14:26:49 +00:00
|
|
|
- wallet with FrostFS account.
|
2021-12-07 13:37:42 +00:00
|
|
|
|
|
|
|
## Creation
|
|
|
|
|
|
|
|
```shell
|
2022-12-23 17:35:35 +00:00
|
|
|
$ frostfs-adm morph subnet create \
|
2021-12-07 13:37:42 +00:00
|
|
|
-r <side_chain_RPC_endpoint> \
|
|
|
|
-w </path/to/owner/wallet> \
|
|
|
|
--notary
|
|
|
|
Create subnet request sent successfully. ID: 4223489767.
|
|
|
|
```
|
|
|
|
|
2022-06-02 14:28:01 +00:00
|
|
|
**NOTE:** in notary-enabled environment you should have a sufficient
|
|
|
|
notary deposit (not expired, with enough GAS balance). Your subnet ID
|
|
|
|
will differ from the example.
|
2021-12-07 13:37:42 +00:00
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
The default account in the wallet that has been passed with `-w` flag is the owner
|
2021-12-07 13:37:42 +00:00
|
|
|
of the just created subnetwork.
|
|
|
|
|
|
|
|
You can check if your subnetwork was created successfully:
|
|
|
|
|
|
|
|
```shell
|
2022-12-23 17:35:35 +00:00
|
|
|
$ frostfs-adm morph subnet get \
|
2021-12-07 13:37:42 +00:00
|
|
|
-r <side_chain_RPC_endpoint> \
|
|
|
|
--subnet <subnet_ID>
|
|
|
|
Owner: NUc734PMJXiqa2J9jRtvskU3kCdyyuSN8Q
|
|
|
|
```
|
|
|
|
Your owner will differ from the example.
|