nearprotocolnearprotocol-validator

How to setup near node without validating blocks?


I want to setup a near mainnet node.
I don't want be part of validation process, I just to want to maintain a copy of mainnet.
This copy should have complete history of all the blocks and transactions.

Being validator it will require more resources.

How to setup a mainnet near node which only sync to mainnet without participating in the validation process?

Thanks.


Solution

  • You can run an indexing node that tracks one or more shards and gives you access to the stream of transactions. You can save them to your own database for querying, for example

    https://docs.near.org/docs/tools/near-indexer

    You can also run an archival node, similar to above but you're just tracking and storing without transforming the data in any way

    https://docs.near.org/docs/roles/integrator/exchange-integration#running-an-archival-node