> For the complete documentation index, see [llms.txt](https://docs.tryflox.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryflox.xyz/using-flox/credits.md).

# Buying credits

Fresh assessments are metered through the `FloxCredits` contract. You deposit ETH, spend credits per assessment, and withdraw anything unspent at any time.

## How it works

Credits are per-address and asset-agnostic — one balance covers assessments on any token in the watchlist.

Authentication is a signature, not a bearer token. When you run an assessment, your wallet signs a short message containing a nonce. The server recovers your address from the signature and reads that address's on-chain balance. There are no accounts, no passwords, and no user database.

## Depositing

From the console: connect your wallet, open **Add credits**, choose an amount, and confirm. At the default price of 0.00001 ETH per query, roughly 0.001 ETH buys 100 assessments.

Under the hood this is a plain ETH transfer to the `FloxCredits` contract, which credits the sender automatically.

## Withdrawing

Unspent credits are withdrawable at any time. There is no lockup and no admin freeze. The operator can only ever withdraw revenue it has already settled — never your unspent balance.

## Verifiable billing

Every settlement carries the log head it covers. That means you can confirm you were charged for assessments that actually exist in the public record, rather than taking the operator's word for it.


---

# 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.tryflox.xyz/using-flox/credits.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.
