forked from TrueCloudLab/frostfs-node
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
# FrostFS subnetwork creation
|
|
|
|
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
|
|
deployed and the sidechain contains a deployed `subnet` contract.
|
|
|
|
## Prerequisites
|
|
|
|
To follow this guide, you need:
|
|
- neo-go sidechain RPC endpoint;
|
|
- latest released version of [frostfs-adm](https://github.com/TrueCloudLab/frostfs-node/releases);
|
|
- wallet with FrostFS account.
|
|
|
|
## Creation
|
|
|
|
```shell
|
|
$ frostfs-adm morph subnet create \
|
|
-r <side_chain_RPC_endpoint> \
|
|
-w </path/to/owner/wallet> \
|
|
--notary
|
|
Create subnet request sent successfully. ID: 4223489767.
|
|
```
|
|
|
|
**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.
|
|
|
|
The default account in the wallet that has been passed with `-w` flag is the owner
|
|
of the just created subnetwork.
|
|
|
|
You can check if your subnetwork was created successfully:
|
|
|
|
```shell
|
|
$ frostfs-adm morph subnet get \
|
|
-r <side_chain_RPC_endpoint> \
|
|
--subnet <subnet_ID>
|
|
Owner: NUc734PMJXiqa2J9jRtvskU3kCdyyuSN8Q
|
|
```
|
|
Your owner will differ from the example.
|