-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Polkadot WIki Migration] Set up a RPC node #32
base: master
Are you sure you want to change the base?
Conversation
CrackTheCode016
commented
Sep 17, 2024
Scan for Vale false positives. Resolved convos = made it on the update list and should go away now. I left comments for the legit flags with suggested edits. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine. Just check the last comment I left
@@ -1,3 +1,4 @@ | |||
title: General Infrastructure | |||
nav: | |||
- index.md | |||
- setup-rpc.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- setup-rpc.md | |
- 'Set Up an RPC Node': setup-rpc.md |
@@ -0,0 +1,66 @@ | |||
--- | |||
title: Set Up an RPC Node | |||
description: Learn how to securely configure, connect to, and maintain a Polkadot SDK-based RPC node in an archival or pruned state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Learn how to securely configure, connect to, and maintain a Polkadot SDK-based RPC node in an archival or pruned state. | |
description: Learn how to securely configure, connect to, and maintain an RPC node for a Polkadot SDK-based blockchain in an archival or pruned state. |
This was a tad bit short
For an externally accessible Polkadot archive RPC node: | ||
|
||
```config | ||
polkadot --chain polkadot --name myrpc --state-pruning archive --blocks-pruning archive --rpc-max-connections 100 --rpc-cors all --rpc-methods Safe --rpc-port 9944 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polkadot --chain polkadot --name myrpc --state-pruning archive --blocks-pruning archive --rpc-max-connections 100 --rpc-cors all --rpc-methods Safe --rpc-port 9944 | |
polkadot --chain polkadot \ | |
--name INSERT_YOUR_NODE_NAME \ | |
--state-pruning archive \ | |
--blocks-pruning archive \ | |
--rpc-cors all \ | |
--rpc-methods safe |
I just removed the few that were set to default values
For a Polkadot pruned RPC node: | ||
|
||
```config | ||
polkadot --chain polkadot --name myrpc --state-pruning 1000 --blocks-pruning archive --rpc-max-connections 100 --rpc-cors all --rpc-methods Safe --rpc-port 9944 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polkadot --chain polkadot --name myrpc --state-pruning 1000 --blocks-pruning archive --rpc-max-connections 100 --rpc-cors all --rpc-methods Safe --rpc-port 9944 | |
polkadot --chain polkadot \ | |
--name INSERT_YOUR_NODE_NAME \ | |
--state-pruning 1000 \ | |
--blocks-pruning archive \ | |
--rpc-cors all \ | |
--rpc-methods safe |
- You can limit the methods to use with `--rpc-methods`, an easy way to set this to a safe | ||
mode is `--rpc-methods Safe` | ||
- You can set your maximum connections through `--rpc-max-connections`, for example | ||
`--rpc-max-connections 100` | ||
- By default, localhost and Polkadot.js can access the RPC server. You can change this by setting `--rpc-cors`. To allow access from everywhere you can use `--rpc-cors all` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You can limit the methods to use with `--rpc-methods`, an easy way to set this to a safe | |
mode is `--rpc-methods Safe` | |
- You can set your maximum connections through `--rpc-max-connections`, for example | |
`--rpc-max-connections 100` | |
- By default, localhost and Polkadot.js can access the RPC server. You can change this by setting `--rpc-cors`. To allow access from everywhere you can use `--rpc-cors all` | |
- You can limit the methods to use with `--rpc-methods`; an easy way to set this to a safe mode is `--rpc-methods safe` | |
- You can set your maximum connections through `--rpc-max-connections`, for example, `--rpc-max-connections 200` | |
- By default, localhost and Polkadot.js can access the RPC server. You can change this by setting `--rpc-cors`. To allow access from everywhere, you can use `--rpc-cors all` |
100 is the default so just changed it to another value