> For the complete documentation index, see [llms.txt](https://docs.teaproject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teaproject.org/_5_tapps/tea-billing.md).

# TEA Billing

## TEA Project’s Billing System in Detail

The TEA Project has two types of billing: charges to end-users who use the TApps and charges the billing to the TApp that uses TEA’s state machine. The description of the billing charges and the revenue destination is as follows.

#### End-user Billing

* Gas fee: End-user pays to the hosting miner(s).
* TApp usage fee: End-user pays to the app.

![](https://cdn-images-1.medium.com/max/1200/1*46Xlfv85s3Z9BAFLcTpxuw.png)

The gas fee technically goes to the accrued balance before hitting the bonding curves of all the CML miners who were utilized during the transaction. And the TApp usage fee goes to the accrued balance before being sent to the TApp’s bonding curve. If the accrued balance is positive, all of its TApp token holders receive token dividends at the next distribution. If the accrued balance is negative, then al TApp token holders will have their token amounts reduced according to the balance owned.

#### TApp Billing

The following two types of billing are charged to the TApp, specifically to the TApp’s bonding curve.

* Txn fee: TApp pays to the state machine maintainers.
* Memory tax: TApp pays to the state machine maintainers. This payment is based on computing resources consumed as well as state storage used.

![](https://cdn-images-1.medium.com/max/1200/1*wxNpLNZXyeVivToQOO3FGw.png)

The above txn fee and memory tax are the fees paid by the TApp to use the state machine. These two payments go into a collection pool that are paid out at regular intervals to the state maintainers.

* The unit of billing and frequency of billing are covered more in [TEA-Billing-Rate-Time](https://github.com/tearust/teaproject/blob/master/docs/_5_tapps/TEA-Billing-Rate-Time.md).


---

# 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.teaproject.org/_5_tapps/tea-billing.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.
