canine-docs/docs/nodes/providers/2_setting_up.md

107 lines
2.6 KiB
Markdown
Raw Normal View History

2022-10-27 13:35:06 +00:00
---
sidebar_position: 2
---
2022-12-08 04:31:53 +00:00
# Setting Up JProvd
2022-10-27 13:35:06 +00:00
2022-12-08 04:31:53 +00:00
## Pre-Requisites
See [Set-up](../1_install.md).
2022-10-27 13:35:06 +00:00
2022-12-08 04:31:53 +00:00
## Installing
2022-10-27 13:35:06 +00:00
2022-12-08 04:31:53 +00:00
:::tip
2022-10-27 13:35:06 +00:00
2022-12-08 04:31:53 +00:00
Check latest version [here](https://github.com/JackalLabs/canine-provider/releases).
2022-10-27 13:35:06 +00:00
:::
2023-01-05 23:33:02 +00:00
:::note
'Setting Up' instructions must be followed fully to add necessary golang path info to the current users ~/.profile. If these steps are skipped, 'make install' will not build jprovd--the provider daemon.
:::
2022-12-08 04:31:53 +00:00
```sh
git clone https://github.com/JackalLabs/canine-provider.git
2023-01-05 23:33:02 +00:00
cd canine-provider
2022-12-08 04:31:53 +00:00
git pull
git checkout {version}
make install
```
## Initializing
:::tip
Your keybase identity can be left as `""` if you don't want to link your provider to keybase.
:::
2022-10-29 00:22:23 +00:00
2023-01-27 05:26:07 +00:00
1. Export the path to your storage pool
2022-12-02 16:11:35 +00:00
```sh
2023-01-27 05:26:07 +00:00
export PHOME={path-to-pool-from-before}
```
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
2. Generate your provider's private key
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
```sh
jprovd client gen-key --home=$PHOME
```
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
3. Configure the chain-id
```sh
jprovd client config chain-id {chain-id} --home=$PHOME
```
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
4. Configure the rpc node your provider will use to connect to the chain
```sh
jprovd client config node {your node} --home=$PHOME
```
Some users may find it easier to complete steps 3 and 4 manually. Instructions for Ubuntu are below:
2023-01-06 19:44:09 +00:00
a. In your terminal, while inside of the PHOME directory, type 'nautilus'. This will open the nautilus file explorer
b. At the top right corner, make sure 'Show Hidden Files' is checked
c. Navigate to your '.jackal-storage' folder to access the config folder
d. Open the client.toml file to manually type in the 'chain-id' and 'node'
e. Save and close the client.toml file
2023-01-27 05:26:07 +00:00
Testnet and Mainnet chain-ids can be found here: https://github.com/JackalLabs/jackal-chain-assets.
If you are not running your own tendermint RPC node, Jackal Labs is currently hosting a testnet tendermint RPC node. Endpoint below:
2023-01-06 19:44:09 +00:00
https://testnet-rpc.jackalprotocol.com:443
2023-01-27 05:26:07 +00:00
We will also be hosting a tendermint rpc node for mainnet, which will be made accessible to the public at launch of Jackal Storage.
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
Before completing step 5 below, your account will need tokens.
Testnet tokens can be obtained at https://testnet-faucet.jackalprotocol.com/
Mainnet tokens can be purchased on https://frontier.osmosis.zone/
5. Initialize the provider
```sh
jprovd init {IP_ADDRESS} {STORAGE_IN_BYTES} {KEYBASE_IDENTITY} --home=$PHOME
```
example:
2023-01-06 19:44:09 +00:00
2023-01-27 05:26:07 +00:00
```sh
jprovd init "https://storagep1.chainstrategies.cloud" "9000" "" --home=$PHOME
```
Please note that 'https://' is required to be included in the ip or init will throw an error.
Link for TB to Bytes converter: https://www.convertunits.com/from/TB/to/byte
6. Start the provider
```sh
jprovd start --home=$PHOME
2022-12-02 16:11:35 +00:00
```
2022-10-27 13:35:06 +00:00