> For the complete documentation index, see [llms.txt](https://prizm.gitbook.io/pzm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prizm.gitbook.io/pzm/wp/forging.md).

# Forging

![Forging - Creation of blocks](/files/-MSLYrdJ4wiOgsjq-8eq)

The three values are the key to determine which account has the right to generate a block, which account is entitled to create unit and what the unit is considered to be authoritative in times of conflict: underlying target value, target value and cumulative difficulty.

### The reference target value

To win the right to forge (generate) block, all active Prizm accounts "compete" by trying to create a hash value that is lower than the specified base target value. This base target value changes from block to block and is derived from the base target value of the previous block multiplied by the amount of time it took to generate that block.

## Target value

Each account calculates its own target value based on the current effective rate.

**This value is equal:**

{% hint style="info" %}

### T = Tb х S х Be

{% endhint %}

**Where Be is:**&#x20;

* **T** - the new target value&#x20;
* **Tb** - the reference target value
* **S** - the elapsed time since the last block in seconds
* **Be** - the effective account balance

### As you can see from the formula, the target value increases with every second that has passed since the previous block.

{% hint style="info" %}
The maximum target value is **1,53722867 x 1017**, and the minimum target value is half the base target value of the previous block. This target value and the base target value are the same for all accounts that are trying to to forge on top of a particular block. The only defined account parameter is an effective balance parameter.
{% endhint %}

## The total complexity

**The total value of complexity obtained from the reference target value according to the formula:**

{% hint style="info" %}

### Dcb = Dpb + 264 / Tb

{% endhint %}

**Where Be is:**

* **Dcb** - the complexity of the current block
* **Dpb** - the complexity of the previous block
* **Tb** - the base target value of the current block


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://prizm.gitbook.io/pzm/wp/forging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
