-
Notifications
You must be signed in to change notification settings - Fork 72
feat: what is a node #1732
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
Open
delovoyhomie
wants to merge
9
commits into
main
Choose a base branch
from
docs/what-is-a-node
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: what is a node #1732
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4785bb0
feat: Add a high-level definition of workchains
delovoyhomie e528fac
Revert "feat: Add a high-level definition of workchains"
delovoyhomie 07c5aea
feat: new article what is a node
delovoyhomie a9b929d
node files
delovoyhomie bddfeef
Update what-is-a-node.mdx
delovoyhomie 2d31335
Update what-is-a-node.mdx
delovoyhomie 5e28c30
Update what-is-a-node.mdx
delovoyhomie 6927c27
docs: rename node section heading
delovoyhomie 9eec9bd
Merge branch 'main' into docs/what-is-a-node
delovoyhomie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| title: "What is a node?" | ||
| description: "Overview of TON nodes, validator roles, and how apps connect to the network." | ||
| --- | ||
|
|
||
| import { Image } from "/snippets/image.jsx"; | ||
|
|
||
| A node is a server running TON blockchain software. It stores the chain state, verifies blocks and transactions, and propagates new data to other nodes and clients. | ||
|
|
||
| This matters when deciding whether to rely on a public API or run infrastructure, and when tracing how a wallet action becomes an on-chain transaction. | ||
|
|
||
| ## What a node does | ||
|
|
||
| A _full node_ keeps the latest blockchain state and relays blocks and messages across the peer-to-peer network. A _validator_ is a full node that participates in consensus and produces blocks. Many full nodes also expose a _liteserver_ endpoint so wallets and apps can query data or submit messages without running a full node themselves. | ||
|
|
||
| TON also has _lite clients_. They do not store chain state locally. Instead, they request the data they need from liteserver-enabled full nodes. | ||
|
|
||
| ## Node types and roles | ||
|
|
||
| - **Full node** — stores the latest state and propagates blocks and messages. See [Node roles and modes](/ecosystem/node/overview). | ||
| - **Archive node** — a full node that keeps the entire history for analytics and explorers. See [Node roles and modes](/ecosystem/node/overview). | ||
| - **Validator node** — produces blocks and participates in consensus. See [Running a validator](/ecosystem/node/run-validator). | ||
| - **Liteserver** — a mode that exposes a gateway for lite clients and APIs. See [Interacting with TON nodes](/ecosystem/node/overview#interacting-with-ton-nodes). | ||
|
|
||
| ## Who runs nodes | ||
|
|
||
| - **Validators** — stake Toncoin, participate in consensus, and produce blocks. | ||
| - **Infrastructure providers** — run full nodes and liteservers to back APIs. | ||
| - **Explorers and indexers** — run archive nodes to serve historical data. | ||
| - **Community operators** — add connectivity and redundancy to the network. | ||
|
|
||
| ## How apps reach the network | ||
|
|
||
| Wallets and dApps act as lite clients: they do not keep chain state locally and instead connect to an [API provider](/ecosystem/api/overview) or a liteserver gateway. The gateway forwards requests to full nodes. Validators are the subset of nodes that finalize new blocks, and the results propagate back through the network. | ||
|
|
||
| <Image | ||
| src="/resources/images/nodes/node-flow.svg" | ||
| alt="Flow from a user wallet or dApp through an API or liteserver gateway to TON full nodes and validators." | ||
| /> | ||
|
|
||
| ## Run a node | ||
|
|
||
| Use public APIs for prototypes and light workloads. Full nodes typically back apps that require stricter uptime targets or direct access to the network. | ||
|
|
||
| - [Set up a node with MyTonCtrl](/ecosystem/node/setup-mytonctrl) | ||
| - [Set up a local network with MyLocalTon](/ecosystem/node/setup-mylocalton) | ||
|
|
||
| ## See also | ||
|
|
||
| - [Node roles and modes](/ecosystem/node/overview) | ||
| - [Running a validator](/ecosystem/node/run-validator) | ||
| - [Liteserver mode](/ecosystem/node/overview#interacting-with-ton-nodes) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.