> For the complete documentation index, see [llms.txt](https://conblox.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://conblox.gitbook.io/docs/scam-address-api/publish-your-docs.md).

# How does it work

The prediction modules attempt to provide an estimation of the likelihood that an ethereum address is involved in scam activities. The result is the average of 2 sub-models (=modules) that analyze the same data from a different perspective.&#x20;

Each module is trained on the same input data on the assumption that scammers will leave recognizable on-chain footprints compared to genuine users.&#x20;

<figure><img src="/files/gh3m2dIeYNDM34GAomsD" alt=""><figcaption><p>Scammers leave distinguishable on-chain footprints</p></figcaption></figure>

The entire blockchain history of transactions, traces and ERC20 transfers for an address is provided as inputs to the model. We relied on external scam reports and other manual observations for our training set labeling.

Each module has a prediction accuracy of >95%. It is possible for the user to customize the predicted class of the model by changing the prediction threshold for scam/no-scam (default threshold is set at `.50`).\
\
Our research has shown that accuracy tends to be maximized for threshold values between `.39` and `.59`.

* Below `.39`: Recall is maximized at the expense of accuracy. There are less false negatives but much more false positives;
* Above `.59`: Precision is maximized at the expense of accuracy. There are less false positives but much more false negatives.

These thresholds can be modified to satisfy your end need. For example:

* Case 1: Flag scammers with very high confidence and give the benefit of the doubt to those that are not clear: in this case you'll want to set a higher threshold and thus get a higher precision;
* Case 2: Err on the side of safety, even if it means wrongly flagging a few legit users as scammers: in this case you can lower the threshold and thus get a higher recall and minimize the false negatives generated by the model.

<figure><img src="/files/IqByHDmiyOh8fCMVpggB" alt=""><figcaption></figcaption></figure>


---

# 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://conblox.gitbook.io/docs/scam-address-api/publish-your-docs.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.
