# Proof of Stake(Pos)

***Proof of Stake (PoS)*** is a consensus mechanism utilized by the TAN blockchain to achieve agreement among network participants and validate transactions. In (PoS), validators are selected to create new blocks and secure the network based on the amount of native tokens (TAN) they hold and are willing to stake. Let's explore how (PoS) operates within the TAN ecosystem.

## Validator Selection <a href="#validator-selection" id="validator-selection"></a>

Validators play a crucial role in the (PoS)consensus mechanism by proposing and validating new blocks. In TAN, validators are selected from a pool of participants based on the number of TAN tokens they hold and are willing to stake as collateral. The probability of a validator being chosen to create a new block is directly proportional to the amount of TAN tokens they have staked.

## Staking Mechanism <a href="#staking-mechanism" id="staking-mechanism"></a>

Staking TAN tokens is a fundamental requirement for participation in the (PoS) consensus mechanism. By staking tokens, validators demonstrate their commitment to the network and are incentivized to act honestly to preserve the integrity and security of the blockchain. In return for their efforts, validators may receive rewards in the form of additional TAN tokens.

## Block Proposal and Validation <a href="#block-proposal-and-validation" id="block-proposal-and-validation"></a>

Once selected, validators propose new blocks by including a set of valid transactions and appending them to the blockchain. Other validators in the network then verify the proposed block's validity by checking the transactions and ensuring they adhere to the network's rules and consensus protocol. If the block is deemed valid by the majority of validators, it is added to the blockchain.

## Consensus Enforcement <a href="#consensus-enforcement" id="consensus-enforcement"></a>

Consensus rules are enforced by the collective agreement of validators in the network. Any attempt to propose invalid blocks or manipulate the blockchain is rejected by honest validators, preserving the integrity and security of the network. Validators who behave maliciously or attempt to subvert the consensus process may be penalized by having their staked tokens slashed.

## Advantages of (POS) <a href="#advantages-of-pos" id="advantages-of-pos"></a>

* **Energy Efficiency**: (PoS) consumes significantly less energy compared to Proof of Work (PoW) consensus mechanisms, making it more environmental friendly.
* **Decentralization**: (PoS) promotes decentralization by allowing anyone to become a validator by staking TAN tokens, rather than relying on computational power as in (PoW) .
* **Security**: (PoS) incentivizes validators to act honestly by requiring them to stake TAN tokens as collateral. This aligns their interests with the security and stability of the network.

## Conclusion <a href="#conclusion" id="conclusion"></a>

Proof of Stake (PoS) is a robust and efficient consensus mechanism employed by the TAN blockchain to achieve decentralized agreement and validate transactions. By leveraging the staking of TAN tokens,(PoS)ensures the security, efficiency, and decentralization of the network, paving the way for a scalable and sustainable blockchain ecosystem.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tan.live/getting-started/core-concepts/proof-of-stake-pos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
