Skip to content

Commit aea8e14

Browse files
committed
PoS WIP
1 parent 1bf2f98 commit aea8e14

File tree

8 files changed

+65
-88
lines changed

8 files changed

+65
-88
lines changed

docs/pos/howto/operating/access-node.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ New developers on the Polygon network can use Alchemy as their node provider bec
88

99
:::
1010

11-
## Send Your First Blockchain Request
11+
## Send your first blockchain request
1212

1313
This guide assumes you already have an [Alchemy account](https://alchemy.com/?r=e68b2f77-7fc7-4ef7-8e9c-cdfea869b9b5) and access to the [Alchemy Dashboard](https://dashboard.alchemyapi.io).
1414

@@ -28,7 +28,7 @@ First, you'll need an Alchemy API key to authenticate your requests. You can [cr
2828

2929
![img](https://files.readme.io/f0dbb19-ezgif.com-gif-maker_1.gif)
3030

31-
### Make Your First CURL Request
31+
### Making a cURL request
3232

3333
You can interact with Alchemy's Polygon infrastructure provider using JSON-RPC and your [command line interface](https://www.computerhope.com/jargon/c/commandi.htm).
3434

@@ -64,7 +64,7 @@ Results:
6464
"result": "0x09184e72a000" // 10000000000000 }
6565
```
6666

67-
## Set Up the Alchemy SDK
67+
## Alchemy SDK setup
6868

6969
To make blockchain requests directly from your Javascript / Node.js dApp, you'll need to integrate the **Alchemy SDK**, the easiest and most powerful way to access the blockchain and Alchemy's suite of enhanced APIs.
7070

@@ -125,13 +125,13 @@ main();
125125

126126
If you are unfamiliar with the async stuff, check out this [Medium post](https://betterprogramming.pub/understanding-async-await-in-javascript-1d81bb079b2c).
127127

128-
### Run `index.js` Using node
128+
### Run `index.js` using node.js
129129

130130
```bash
131131
node index.js
132132
```
133133

134-
### Output in Your Console
134+
### Console output
135135

136136
You should now see the latest block number output in your console.
137137

@@ -147,15 +147,15 @@ The project associated with your API key should now look like this on the dashbo
147147

148148
![img](https://files.readme.io/bcfc9ff-Alchemy_Tutorial_Result2.png)
149149

150-
## Start Building
150+
## Start building
151151

152152
Don't know where to start? Check out these tutorials to get more familiar with Alchemy and blockchain development:
153153

154154
1. [Examples of Common Queries Using the Alchemy SDK](https://docs.alchemy.com/reference/using-the-alchemy-sdk)
155155
3. Learn [How to Send Transactions on Ethereum](https://docs.alchemy.com/docs/how-to-send-transactions-on-ethereum)
156156
4. Try deploying your first [Hello World Smart Contract](https://docs.alchemy.com/docs/hello-world-smart-contract) and get your hands dirty with some solidity programming!
157157

158-
### Other Web3 Libraries
158+
### Other Web3 libraries
159159

160160
There are a number of alternative Web3 libraries other than the Alchemy SDK you may already be using. See the documentation for these libraries below:
161161

docs/pos/howto/operating/archive-node.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
## Get access to an Archive Node with NodeReal
1+
## Get access to an archive node with NodeReal
22

33
If you're new to Web3 development, [NodeReal](https://nodereal.io/) simplifies the process of setting up a full node on Polygon.
44

5-
:::tip Simplify Polygon node usage with NodeReal and its quality assurance capabilities
5+
!!! tip Simplify Polygon node usage with NodeReal and its quality assurance capabilities
66

7-
Many developers prefer to use a node provider when getting started on Polygon, or any chain for that matter, as it offers a quick and easy way to handle requests and responses. NodeReal offers a range of features for developers looking for a node provider on the Polygon network. These features include a Standard Interface that simplifies node usage, as well as reliability and scalability for optimal performance. Additionally, NodeReal offers Archive Data for secure data storage, and an API Marketplace that provides additional resources for developers looking to build on Polygon.
7+
Many developers prefer to use a node provider when getting started on Polygon, or any chain for that matter, as it offers a quick and easy way to handle requests and responses.
8+
9+
NodeReal offers a range of features for developers looking for a node provider on the Polygon network. These features include a Standard Interface that simplifies node usage, as well as reliability and scalability for optimal performance.
10+
11+
Additionally, NodeReal offers Archive Data for secure data storage, and an API Marketplace that provides additional resources for developers looking to build on Polygon.
812

9-
:::
1013

11-
## Send Your First Blockchain API Request
14+
## Send your first blockchain API request
1215

1316
If you haven't signed up for a MegaNode account yet, you can find a step-by-step guide to getting started [here](https://docs.nodereal.io/docs/getting-started). Once you have a MegaNode account and access to the NodeReal Dashboard, you're ready to proceed.
1417

@@ -18,11 +21,9 @@ If you haven't signed up for a MegaNode account yet, you can find a step-by-step
1821

1922
To start sending RPC requests on MegaNode, you'll need to create an API Key. This project-based unit is used to manage your API requests, and requires you to input a name for the key and leave any notes you prefer for future reference. Here's how to get started:
2023

21-
:::tip One API key for all chains
22-
23-
With only one API Key, you can request all the chains and networks we support on NodeReal.
24-
25-
:::
24+
!!! tip One API key for all chains
25+
26+
With only one API Key, you can request all the chains and networks we support on NodeReal.
2627

2728
**Get started →** Input an API **Key name** and leave any **notes** you prefer:
2829

@@ -32,27 +33,23 @@ After you have created an API Key, you can find a dashboard on the main screen.
3233

3334
![MegaNode User's Dashboard](https://files.readme.io/b715e5a-Screen_Shot_2023-01-10_at_19.31.18.png)
3435

35-
:::info How many API Keys can I create?
36+
!!! question "How many API Keys can I create?"
3637

37-
The number of available API Keys is subjected to the pricing plan.
38+
The number of available API Keys is subjected to the pricing plan.
3839

39-
:::
40-
41-
### Find Your API Key
40+
### Find your API key
4241

4342
After you have successfully created an API Key, you can find the API endpoints on the API Key detail page. Please note that this API key is used to identify a particular user and should **NOT** be shared with anyone.
4443

4544
![Created Your First API key](https://files.readme.io/ce6a39d-Screen_Shot_2023-01-10_at_19.34.38.png)
4645

47-
## Make Your First RPC Request
46+
## Make your first RPC request
4847

4948
After you find the API Key, you can now start to send RPC requests on MegaNode. Please note that all usage will be calculated on an account basis. You can find our API docs [here](https://docs.nodereal.io/reference). Furthermore, you can find more information about the Compute Unit (CU) usage [here](https://docs.nodereal.io/docs/compute-units-cus) and the account Compute Unit Per Second (CUPS) rate limits [here](https://docs.nodereal.io/docs/cups-rate-limit).
5049

51-
:::info Any concern about your Privacy?
52-
53-
Check out NodeReal [<ins>Privacy Policy</ins>](https://nodereal.io/privacy-policy).
50+
!!! info "Any concern about your Privacy?"
5451

55-
:::
52+
Check out NodeReal [<ins>Privacy Policy</ins>](https://nodereal.io/privacy-policy).
5653

5754
We’ll be using [Web3.js](https://web3js.readthedocs.io/en/v1.8.2/) libraries to make our first RPC request.
5855

@@ -69,7 +66,7 @@ yarn init # (or yarn init --yes)
6966
yarn add web3
7067
```
7168

72-
With NPM:
69+
With npm:
7370

7471
```bash
7572
mkdir your-project-name
@@ -132,7 +129,7 @@ yarn add web3
132129
node index.js
133130
```
134131

135-
### Response in Your Terminal
132+
### Response in Your terminal
136133

137134
You should be able to see the latest block number and block details on your terminal.
138135

@@ -141,7 +138,7 @@ Latest block number: 40302452
141138
Latest block details: {.............}
142139
```
143140

144-
### Self-Service Troubleshooting for MegaNode users
141+
### Self-service troubleshooting for MegaNode users
145142

146143
Please refer to [MegaNode Errors](https://docs.nodereal.io/docs/support) for more information.
147144

docs/pos/howto/operating/full-node/ansible.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
## Overview of Ansible Playbook Utilization
2-
31
To configure and effectively manage a Polygon full node, we employ an [Ansible playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html). This tool streamlines the process, ensuring a consistent and error-free setup.
42

5-
## Prerequisites for Ansible Setup
3+
## Prerequisites
64

75
- **Ansible with Python 3.x**: Your local machine must have Ansible installed with Python version 3.x. Note that Python 2.x is incompatible with this setup. Use the following command to install Ansible using pip (Python's package installer). If pip is not installed, refer to [pip installation guidelines](https://pip.pypa.io/en/stable/):
86

@@ -14,7 +12,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
1412

1513
- **Environment Setup**: Ensure that Go is not installed on your environment. Ansible requires specific Go packages, and existing installations could lead to conflicts. Additionally, any pre-existing setups of Polygon Validator, Heimdall, or Bor on your VM/machine must be removed to avoid setup conflicts.
1614

17-
## Setting Up the Full Node
15+
## Setting up the full node
1816

1917
- **Remote Machine Access**: Confirm access to the VM or machine where the full node will be set up. Detailed setup instructions are available at the [node-ansible setup guide](https://github.com/maticnetwork/node-ansible#setup).
2018

@@ -74,7 +72,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
7472
sudo service bor start
7573
```
7674

77-
## Managing Logs and Permissions
75+
## Managing logs and permissions
7876

7977
- **Logs**: Use `journalctl` for log management. For advanced usage, refer to [this tutorial](https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs).
8078

@@ -87,7 +85,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
8785
sudo chown bor /var/lib/bor
8886
```
8987

90-
## Network Security and Port Configuration
88+
## Network security and port configuration
9189

9290
- **Firewall Setup**: Open ports 22, 26656, and 30303 to all (0.
9391

docs/pos/howto/operating/full-node/docker.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Summary:
1515
- Have 2.5 TB to 5 TB of high-speed storage.
1616
- Use a public IP and open ports 30303 and 26656.
1717

18-
## Initial Setup
18+
## Initial setup
1919

2020
You should have root-level shell access to a Linux machine.
2121

@@ -50,7 +50,7 @@ sudo usermod -aG docker $USER
5050

5151
Logout and log back in to apply these changes.
5252

53-
### Disk Setup
53+
### Disk setup
5454

5555
The specific steps for disk setup will vary. Typically, you'll have a root partition for the OS and separate devices for blockchain data. For this guide, we'll assume an additional device mounted at `/mnt/data`.
5656

@@ -77,7 +77,7 @@ To ensure the device mounts on reboot, add it to `/etc/fstab`:
7777

7878
Reboot to confirm the proper loading of your mount.
7979

80-
### Heimdall Setup
80+
### Heimdall setup
8181

8282
With Docker running and storage prepared, it's time to set up Heimdall:
8383

@@ -166,7 +166,7 @@ Check Bor's sync status with:
166166
curl 'localhost:8545/' --header 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
167167
```
168168

169-
### Seed Nodes and Bootnodes
169+
### Seed nodes and bootnodes
170170

171171
- **Heimdall Seed Nodes**:
172172

docs/pos/howto/operating/full-node/gcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Deploying Polygon nodes on a Virtual Machine (VM) instance in the Google Cloud Platform (GCP) is a straightforward process. This guide focuses on Ubuntu 20.04, a modern OS with long-term support, but the steps are adaptable to Debian 11 or other similar distributions.
22

3-
## Deploying a VM Instance on GCP
3+
## Deploying a VM instance on Google Cloud Platform
44

55
To create a VM instance on GCP, you can use either the Google Cloud CLI or the Web Console. This guide will detail the process using the Google Cloud CLI.
66

docs/pos/howto/operating/full-node/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Operating a Polygon Full PoS Node
1+
Welcome to the guide on setting up your own Polygon full Proof of Stake (PoS) node. Polygon, formerly known as Matic Network, represents a significant advancement in blockchain technology, offering a solution for Ethereum's scalability issues while maintaining its robust security features. By setting up a full PoS node on the Polygon network, you contribute to the network's decentralization, enhancing its security and efficiency.
22

3-
Welcome to the comprehensive guide on setting up your own Polygon full Proof of Stake (PoS) node. Polygon, formerly known as Matic Network, represents a significant advancement in blockchain technology, offering a solution for Ethereum's scalability issues while maintaining its robust security features. By setting up a full PoS node on the Polygon network, you contribute to the network's decentralization, enhancing its security and efficiency.
4-
5-
### Why Run a Polygon Full PoS Node?
3+
### Why run a full PoS node?
64

75
Running a full PoS node on the Polygon network offers several benefits:
86

@@ -20,7 +18,7 @@ Before diving into the setup process, ensure you have the following:
2018
- A stable and fast internet connection.
2119
- Basic knowledge of command-line interface operations and software installation.
2220

23-
### Different Methods for Running a Node
21+
### Different methods for running a node
2422

2523
This section includes guides for running the node via manual installation of binaries, Docker, Ansible, or Google Cloud Platform. Use the section navigation to peruse the method you prefer.
2624

docs/pos/howto/operating/full-node/manual-install.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this section, we will guide you through a sequential process to ensure the su
2626

2727
It is imperative to follow these steps in the given order. Deviating from this sequence can lead to complications and potential issues in the setup and operation of your full PoS node. By adhering to this structured approach, you will ensure a successful and efficient node setup, ready to contribute to the Polygon network.
2828

29-
## Initial Setup: Installing Build Essentials
29+
## Initial setup
3030

3131
To establish a robust foundation for your Polygon full node, begin by installing `build-essential`. This package is a prerequisite, containing essential tools for compiling and managing your node. Execute the following commands to install it:
3232

@@ -35,7 +35,7 @@ sudo apt-get update
3535
sudo apt-get install build-essential
3636
```
3737

38-
## Step-by-Step Installation of Polygon Node Components
38+
## Installing Polygon node components
3939

4040
Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimdall, a Tendermint-based layer, oversees Ethereum contracts, while Bor, derived from Geth, is responsible for block production.
4141

@@ -57,7 +57,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
5757
heimdalld version --long
5858
```
5959

60-
### Configuring Heimdall Seeds
60+
### Configuring Heimdall seeds
6161

6262
- For **Mainnet**, execute the following commands to configure seeds and set ownership:
6363

@@ -91,7 +91,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
9191
bor version
9292
```
9393

94-
### Configuring Bor Seeds
94+
### Configuring Bor seeds
9595

9696
- **Mainnet Configuration** involves setting bootnodes and ownership:
9797

@@ -111,7 +111,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
111111
chown bor /var/lib/bor
112112
```
113113

114-
## Update Service Configurations and User Permissions
114+
## Updating service configuration and user permissions
115115

116116
Adjust user permissions for both Heimdall and Bor services by editing the respective service files:
117117

@@ -122,7 +122,7 @@ sed -i 's/User=heimdall/User=root/g' /lib/systemd/system/heimdalld.service
122122
sed -i 's/User=bor/User=root/g' /lib/systemd/system/bor.service
123123
```
124124

125-
## Initiating Services
125+
## Initiating services
126126

127127
Ensure Heimdall is fully synchronized before launching Bor. Use these commands to start and verify synchronization:
128128

@@ -139,7 +139,7 @@ Once Heimdall is synced (catching_up: false), start Bor:
139139
sudo service bor start
140140
```
141141

142-
## Monitoring and Log Management
142+
## Monitoring and log management
143143

144144
Utilize `journalctl` for log management. Here's how to access logs for Heimdall and Bor:
145145

@@ -150,19 +150,9 @@ journalctl -u heimdalld.service -f
150150
journalctl -u bor.service -f
151151
```
152152

153-
## Firewall and Port Configuration
153+
## Firewall and port configuration
154154

155155
Ensure proper network configuration by opening ports 22, 26656, and 30303. Additionally, consider
156156

157157
VPN options for enhanced security.
158158

159-
## Documentation Summary
160-
161-
This guide provides a structured approach for:
162-
163-
- Preparing your full node machine.
164-
- Sequential installation and configuration of Heimdall and Bor.
165-
- Essential post-installation steps and synchronization checks.
166-
- Best practices for monitoring and maintaining node health.
167-
168-
**Important Reminder**: Adhering to the outlined sequence is critical to avoid potential issues.

0 commit comments

Comments
 (0)