> For the complete documentation index, see [llms.txt](https://docs.ternoa.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ternoa.network/getting-started/networks/substrate-layer-1/chain-fees/fees-calculation.md).

# Fees calculation

Here’s how the fees are calculated:&#x20;

*WEIGHT + BYTES\_LENGTH\_FEE*

### Example for a 100K CAPS balance transfer

The signed transaction is 152 bytes:

> `0x590284001a40e806c28a32dbac60f2b088c77a9ac3d3702011ac0e13579402ddcc21430801065848e44986dfdd3c82c45915650d2ea8b29a934c3578069a1f19ec3c1d530452c04bc8b3a4c4b02f831ee743cf1d696660ab3ea4fe82aea23a3c25c3f31a8a6502e50a00040000cc8c895b436901396bd1d43adb8fdd33e29da56765fe460eac9d9c7f027bff021b000080f64ae1c7022d15`

{% hint style="success" %}
*BYTES\_LENGTH\_FEE is calculated as 152 \* PER\_BYTES\_FEE (where PER\_BYTES\_FEE is fixed by the chain at 10^14).*&#x20;
{% endhint %}

BYTES\_LENGTH\_FEE = 152\*10^14 and a WEIGHT of 223,375,000.&#x20;

The total fees are therefore 152,000,000,223,375,000. (*Approximately **0.152 CAPS***)


---

# 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://docs.ternoa.network/getting-started/networks/substrate-layer-1/chain-fees/fees-calculation.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.
