# OScore

**OScore** is an on-chain credit score for programmable creditworthiness which is designed based on the Orange protocol. Its workflow illustrates how an **MP** and a **DP** work together in the Orange system.

## OScore Model

OScore can represent one's credit standing in DeFi systems. It is calculated using many different pieces of transaction data, including:&#x20;

* Payment history
* Liquidation history
* Amounts owed and repaid
* Credit mix
* Length of credit history&#x20;

It implements a customized model and quantification of on-chain behavior and interactions with existing DeFi protocols using Orange. This ensures the scoring methodology remains empirically sound and statistically valid.

## Data Synchronization

Consider the following diagram illustrating OScore's transaction data synchronization flow from **Ethereum,** which is the **DP** in this context.&#x20;

![](/files/-MhBy8v-2OiBKdezunaC)

#### Geth Node

* An Ethereum sync node

#### ETH Sync Service

* Synchronization service that listens and monitors transactions via the sync node
* Stores the relevant transaction data in a database
* Stores block data for contract executor to fetch

#### Contract Executor

* Listens to contract events via the sync node
* Logs relevant event data in a database

#### Database

* Stores transaction and event data

This data is stored in the database and fetched via an interface by the Orange system when the OScore model is invoked. Applications send invocation requests using an SDK. You can refer to the [**example here**](/developers/within-your-system.md#5-send-a-request-to-run-the-algorithm-with-selected-data)**.**


---

# 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://docs.orangeprotocol.io/case-studies/get-an-oscore.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.
