2021-12-07 13:37:42 +00:00
|
|
|
# NeoFS subnetwork creation
|
|
|
|
|
|
|
|
This is a short guide on how to create NeoFS subnetworks. This guide
|
2022-04-21 11:28:05 +00:00
|
|
|
considers that the sidechain and the inner ring (alphabet nodes) have already been
|
|
|
|
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;
|
2021-12-07 13:37:42 +00:00
|
|
|
- latest released version of [neofs-adm](https://github.com/nspcc-dev/neofs-node/releases);
|
|
|
|
- wallet with NeoFS account.
|
|
|
|
|
|
|
|
## Creation
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ neofs-adm morph subnet create \
|
|
|
|
-r <side_chain_RPC_endpoint> \
|
|
|
|
-w </path/to/owner/wallet> \
|
|
|
|
--notary
|
|
|
|
Create subnet request sent successfully. ID: 4223489767.
|
|
|
|
```
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
**NOTE:** use `--notary` only in a notary-enabled environment. You need to
|
|
|
|
have a sufficient notary deposit (not expired, with enough GAS balance). This
|
|
|
|
is the only command that requires an alphabet signature and, therefore,
|
|
|
|
the only command that needs `--notary` flag. Your subnet ID will differ
|
2021-12-07 13:37:42 +00:00
|
|
|
from the example.
|
|
|
|
|
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
|
|
|
|
$ neofs-adm morph subnet get \
|
|
|
|
-r <side_chain_RPC_endpoint> \
|
|
|
|
--subnet <subnet_ID>
|
|
|
|
Owner: NUc734PMJXiqa2J9jRtvskU3kCdyyuSN8Q
|
|
|
|
```
|
|
|
|
Your owner will differ from the example.
|