You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/access-node.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ New developers on the Polygon network can use Alchemy as their node provider bec
8
8
9
9
:::
10
10
11
-
## Send Your First Blockchain Request
11
+
## Send your first blockchain request
12
12
13
13
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).
14
14
@@ -28,7 +28,7 @@ First, you'll need an Alchemy API key to authenticate your requests. You can [cr
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).
34
34
@@ -64,7 +64,7 @@ Results:
64
64
"result": "0x09184e72a000"// 10000000000000 }
65
65
```
66
66
67
-
## Set Up the Alchemy SDK
67
+
## Alchemy SDK setup
68
68
69
69
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.
70
70
@@ -125,13 +125,13 @@ main();
125
125
126
126
If you are unfamiliar with the async stuff, check out this [Medium post](https://betterprogramming.pub/understanding-async-await-in-javascript-1d81bb079b2c).
127
127
128
-
### Run `index.js`Using node
128
+
### Run `index.js`using node.js
129
129
130
130
```bash
131
131
node index.js
132
132
```
133
133
134
-
### Output in Your Console
134
+
### Console output
135
135
136
136
You should now see the latest block number output in your console.
137
137
@@ -147,15 +147,15 @@ The project associated with your API key should now look like this on the dashbo
Don't know where to start? Check out these tutorials to get more familiar with Alchemy and blockchain development:
153
153
154
154
1.[Examples of Common Queries Using the Alchemy SDK](https://docs.alchemy.com/reference/using-the-alchemy-sdk)
155
155
3. Learn [How to Send Transactions on Ethereum](https://docs.alchemy.com/docs/how-to-send-transactions-on-ethereum)
156
156
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!
157
157
158
-
### Other Web3 Libraries
158
+
### Other Web3 libraries
159
159
160
160
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:
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/archive-node.md
+20-23Lines changed: 20 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,17 @@
1
-
## Get access to an Archive Node with NodeReal
1
+
## Get access to an archive node with NodeReal
2
2
3
3
If you're new to Web3 development, [NodeReal](https://nodereal.io/) simplifies the process of setting up a full node on Polygon.
4
4
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
6
6
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.
8
12
9
-
:::
10
13
11
-
## Send Your First Blockchain API Request
14
+
## Send your first blockchain API request
12
15
13
16
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.
14
17
@@ -18,11 +21,9 @@ If you haven't signed up for a MegaNode account yet, you can find a step-by-step
18
21
19
22
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:
20
23
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.
26
27
27
28
**Get started →** Input an API **Key name** and leave any **notes** you prefer:
28
29
@@ -32,27 +33,23 @@ After you have created an API Key, you can find a dashboard on the main screen.
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.
38
39
39
-
:::
40
-
41
-
### Find Your API Key
40
+
### Find your API key
42
41
43
42
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.
44
43
45
44

46
45
47
-
## Make Your First RPC Request
46
+
## Make your first RPC request
48
47
49
48
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).
50
49
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?"
54
51
55
-
:::
52
+
Check out NodeReal [<ins>Privacy Policy</ins>](https://nodereal.io/privacy-policy).
56
53
57
54
We’ll be using [Web3.js](https://web3js.readthedocs.io/en/v1.8.2/) libraries to make our first RPC request.
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/full-node/ansible.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
-
## Overview of Ansible Playbook Utilization
2
-
3
1
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.
4
2
5
-
## Prerequisites for Ansible Setup
3
+
## Prerequisites
6
4
7
5
-**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/):
8
6
@@ -14,7 +12,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
14
12
15
13
-**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.
16
14
17
-
## Setting Up the Full Node
15
+
## Setting up the full node
18
16
19
17
-**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).
20
18
@@ -74,7 +72,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
74
72
sudo service bor start
75
73
```
76
74
77
-
## Managing Logs and Permissions
75
+
## Managing logs and permissions
78
76
79
77
-**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).
80
78
@@ -87,7 +85,7 @@ To configure and effectively manage a Polygon full node, we employ an [Ansible p
87
85
sudo chown bor /var/lib/bor
88
86
```
89
87
90
-
## Network Security and Port Configuration
88
+
## Network security and port configuration
91
89
92
90
-**Firewall Setup**: Open ports 22, 26656, and 30303 to all (0.
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/full-node/docker.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Summary:
15
15
- Have 2.5 TB to 5 TB of high-speed storage.
16
16
- Use a public IP and open ports 30303 and 26656.
17
17
18
-
## Initial Setup
18
+
## Initial setup
19
19
20
20
You should have root-level shell access to a Linux machine.
21
21
@@ -50,7 +50,7 @@ sudo usermod -aG docker $USER
50
50
51
51
Logout and log back in to apply these changes.
52
52
53
-
### Disk Setup
53
+
### Disk setup
54
54
55
55
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`.
56
56
@@ -77,7 +77,7 @@ To ensure the device mounts on reboot, add it to `/etc/fstab`:
77
77
78
78
Reboot to confirm the proper loading of your mount.
79
79
80
-
### Heimdall Setup
80
+
### Heimdall setup
81
81
82
82
With Docker running and storage prepared, it's time to set up Heimdall:
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/full-node/gcp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
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.
2
2
3
-
## Deploying a VM Instance on GCP
3
+
## Deploying a VM instance on Google Cloud Platform
4
4
5
5
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.
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/full-node/index.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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.
2
2
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?
6
4
7
5
Running a full PoS node on the Polygon network offers several benefits:
8
6
@@ -20,7 +18,7 @@ Before diving into the setup process, ensure you have the following:
20
18
- A stable and fast internet connection.
21
19
- Basic knowledge of command-line interface operations and software installation.
22
20
23
-
### Different Methods for Running a Node
21
+
### Different methods for running a node
24
22
25
23
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.
Copy file name to clipboardExpand all lines: docs/pos/howto/operating/full-node/manual-install.md
+8-18Lines changed: 8 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ In this section, we will guide you through a sequential process to ensure the su
26
26
27
27
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.
28
28
29
-
## Initial Setup: Installing Build Essentials
29
+
## Initial setup
30
30
31
31
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:
32
32
@@ -35,7 +35,7 @@ sudo apt-get update
35
35
sudo apt-get install build-essential
36
36
```
37
37
38
-
## Step-by-Step Installation of Polygon Node Components
38
+
## Installing Polygon node components
39
39
40
40
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.
41
41
@@ -57,7 +57,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
57
57
heimdalld version --long
58
58
```
59
59
60
-
### Configuring Heimdall Seeds
60
+
### Configuring Heimdall seeds
61
61
62
62
- For **Mainnet**, execute the following commands to configure seeds and set ownership:
63
63
@@ -91,7 +91,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
91
91
bor version
92
92
```
93
93
94
-
### Configuring Bor Seeds
94
+
### Configuring Bor seeds
95
95
96
96
-**Mainnet Configuration** involves setting bootnodes and ownership:
97
97
@@ -111,7 +111,7 @@ Polygon's node architecture is dual-layered, comprising Heimdall and Bor. Heimda
111
111
chown bor /var/lib/bor
112
112
```
113
113
114
-
## Update Service Configurations and User Permissions
114
+
## Updating service configuration and user permissions
115
115
116
116
Adjust user permissions for both Heimdall and Bor services by editing the respective service files:
117
117
@@ -122,7 +122,7 @@ sed -i 's/User=heimdall/User=root/g' /lib/systemd/system/heimdalld.service
122
122
sed -i 's/User=bor/User=root/g' /lib/systemd/system/bor.service
123
123
```
124
124
125
-
## Initiating Services
125
+
## Initiating services
126
126
127
127
Ensure Heimdall is fully synchronized before launching Bor. Use these commands to start and verify synchronization:
128
128
@@ -139,7 +139,7 @@ Once Heimdall is synced (catching_up: false), start Bor:
139
139
sudo service bor start
140
140
```
141
141
142
-
## Monitoring and Log Management
142
+
## Monitoring and log management
143
143
144
144
Utilize `journalctl` for log management. Here's how to access logs for Heimdall and Bor:
0 commit comments