# Gas Fee Billing

It should be noted at the outset that the TEA Project’s billing and settlements happen at different times. The billing record is kept in real time while the settlement of the billing cycle occurs every \~ 5 minutes (subject to change).

Let’s first focus on how payments are routed for the gas fee. In graphical form:

![Gas Fee (in depth)](https://user-images.githubusercontent.com/86096370/218186875-93b7aaa8-3194-4a43-8f1b-8572e77dec04.png)

1. The end-user’s gas payment to miners actually goes to an accrued account.
2. (Optional) A system expense that some CML pay to receive faster state updates is the **state subscription fee.** If the miner has a state subscription, then the system will pull from the accrued balance whenever this fee is due. If there’s no funds in the accrued balance when the fee is due, then some of the CML’s bonding curve tokens will be liquidated to pay for the charge.
3. If there’s funds in the accrued balance, then at regular intervals (currently anywhere between 5–20 minutes) they will be swept and paid out as dividends to CML bonding curve token holders.

More information is available in our [billing-faq](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/030_billing/t-rust/obsidian/_gitbook-dev-docs/030_billing/billing-faq.md).


---

# 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://dev.teaproject.org/030_billing/gas-fee-billing.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.
