Deploying a node for Starknet.
Hi Retrohunter! I'd like to tell you about some unique and additional activities on Starknet. In touch with retrodrop.tools.We're taking off!
Why is it necessary to deploy Nodes for projects?
Drophunting has become the dominant activity in the crypto market in 2022-2023, but it is not the only way to interact with projects and generate income in crypto. Another promising niche in the market is nodrunning. Nodes can offer both beginners and experienced cryptans several tools for earning money at once and provide an experience incomparable to transactions in often slow testnet. As you know, decentralization is achieved by creating multiple copies of a database that are physically stored on different devices and in different geographic regions, but are synchronized and collaboratively add new information to the database. Blockchain is fundamentally different from centralized client-server networks. In our case, nodes are the very devices that store copies of blockchain data and add blocks with new transactions to the chain based on a consensus mechanism.
Technically, nodes consist of:
- Hard: a virtual or physical server + hardware for mining.
- Software: which allows the node to interact with other nodes in the network and properly perform the functions assigned to it.
Varieties of nodes
In addition to the basic functions listed above, nodes may have additional tasks that require special configuration or software, so the blockchain architecture is actually a network of interconnected nodes with different functions:
Depending on the tasks performed and the node configuration, they can be divided into several categories:
- Light nodes: They store only partial data about transactions, so they cannot independently verify blocks and rely on full nodes during database synchronization. Among the basic functions listed above, they can fully provide access to the blockchain, which is why they are often installed by users who do not want to rely on third-party infrastructure when interacting with the network. The main advantage lies in their low technical requirements and easy setup. Light nodes are supported by almost all blockchains.
- Full nodes: Unlike light nodes, full nodes store the entire history of transactions, which expands their capabilities for interacting with the blockchain. Full nodes, in turn, can be further divided into several subcategories:
- Pruned full nodes: They also store the transaction history, but only partially, for example, the last 20 GB. They can be used as a compromise by users who find light nodes inadequate but consider it too expensive to store the entire database. Full nodes with the pruned function are supported by Bitcoin, Ethereum, and many other networks.
- Archive full nodes: These nodes store the complete transaction history for the entire duration of the network's existence. Having access to the full database allows archive full nodes to take on additional functions, so they can be used to run:
- Mining nodes: Responsible for processing transactions and creating blocks in networks operating on the Proof of Work (PoW) consensus algorithm. Mining nodes, in addition to the standard configuration of a full node, also possess computational power required for processing and hashing transactions, for example, through ASICs (Application-Specific Integrated Circuits). The most popular networks for running mining nodes remain Bitcoin (with a high entry barrier), Dogecoin, or Litecoin (with a lower entry barrier).
- Staking nodes: They perform the same function as mining nodes, but in networks with a Proof of Stake (PoS) consensus algorithm. Technical requirements for staking nodes may be higher than those for basic full nodes, but the main difference is that launching them requires staking a certain amount of native tokens of the network. For example, anyone can launch a staking node on the Ethereum network by staking 32 ETH.
- Authority nodes: these are analogous to validators for networks with PoA (VeChain) or PoSA (Binance Smart Chain) concepts. Such nodes are allowed to process transactions only on the basis of reputation. In other words, it is not enough to simply buy hardware, as in Bitcoin, or make a deposit, as in Ethereum, you need to get approval from the community, for example, in the form of a vote.
- Masternodes: Unlike the examples mentioned above, masternodes do not create blocks but can perform other tasks. The specific rights and configuration of masternodes differ from blockchain to blockchain. For instance, in the Dash network, only masternodes can conduct InstantSend and PrivateSend transactions. Requirements for deploying masternodes are generally higher than for full nodes and may also involve staking a certain amount of tokens.
How do you raise a node for Starknet?
After the theory, we come to the main action in our introduction - raising your node. For it you need to
Buy or raise a server, which corresponds to the characteristics specified on node-guru or another source. I raised ubuntu server 22 lts.
Install our shell script - link.
Register in Alchemy and get API key.
Next, open your server and type in:
YOUR_ALCHEMY_HTTP_ADDRESS
- http address from alchemy, take on the site. Mainnet or testnet at your choice.
sudo apt update
sudo apt full-upgrade -y
ALCHEMY=YOUR_ALCHEMY_HTTP_ADDRESS
echo 'export ALCHEMY='$ALCHEMY >> $HOME/.bash_profile
Next, you need to download our script from GitHub. Don't be afraid, these are just automatic linux commands, you can check the code yourself.
git clone https://github.com/SYBIL-MAFIA/starknet-node.git
chmod +x starknet.sh
./starknet.sh
After that it will take quite a long time to load. If you have done everything correctly, you will see the following picture.
That's it! Well done for putting it up and don't forget to connect your wallet in Alchemy!
If you want to update it - use
chmod +x starknet_u.sh && ./starknet_u.sh
Channel - https://t.me/retrodropTools.
Github - https://github.com/SYBIL-MAFIA