Skip to content

Commit

Permalink
Merge pull request #33 from rubixchain/ashi/testnet-steps
Browse files Browse the repository at this point in the history
checking out to development branch
  • Loading branch information
thewebchap authored Dec 24, 2024
2 parents 76e4d51 + 00b7804 commit 5d5a1ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions content/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ Any computer or personal laptop with 8GB of RAM and a stable internet connection
git clone https://github.com/rubixchain/rubixgoplatform.git
```

- Navigate to the repository directory
- Navigate to the repository directory and checkout to the development branch
```bash
cd rubixgoplatform
git checkout development
```

### 4. Build the RubixGoPlatform Executable
Expand Down Expand Up @@ -95,6 +96,7 @@ Ensure the following files are in the build directory:
```bash
./rubixgoplatform run -s -testNet -p node0 -n 0 -grpcPort 10500
```
This will start the node in port 20000. The port number where the node starts will be 20000+(node_number)

Replace the placeholders:

Expand All @@ -111,11 +113,16 @@ Ensure the following files are in the build directory:

### Create a DID (Decentralized Identifier) for the Node and register the DID

1. Once the node is running, create a DID by executing:
1. Once the node is running, open a new tab in terminal while being in the same build path, create a DID by executing:

```bash
./rubixgoplatform createdid -didType 4 -port <port_number>
```
Example
```bash
./rubixgoplatform createdid -didType 4 -port 20000
```
![DID Creation](/images/didcreate.png)

Copy the mnemonic file somewhere safe. This will help with node recovery. To get the mnemonic file, go to below location:
```bash
Expand All @@ -126,6 +133,10 @@ Ensure the following files are in the build directory:
```bash
./rubixgoplatform registerdid -did <did_created> -port <port_number>
```
Example
```bash
./rubixgoplatform registerdid -did bafybmicfvpln2j5yfjeokmafjsefz7ykibvtsg2swxmnr6nhvflj6qvo34 -port 20000
```

### Generate Test RBT Tokens
To get test RBTs (Rubix Blockchain Test Tokens):
Expand All @@ -139,6 +150,12 @@ To check balance of a particular DID:
```bash
./rubixgoplatform getaccountinfo -did <did> -port <port_number>
```
Example
```bash
./rubixgoplatform getaccountinfo -did bafybmicfvpln2j5yfjeokmafjsefz7ykibvtsg2swxmnr6nhvflj6qvo34 -port 20000
```
You should see one RBT as below.
![Account Info](/images/getaccountinfo.png)
Congratulations! You have successfully joined the Rubix testnet. You can now use the node for testing and development purposes.

## Next Steps
Expand Down
Binary file added static/images/didcreate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/getaccountinfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d5a1ec

Please sign in to comment.