Reporting Credit Outcomes
Reporting outcomes is a powerful way to contribute to the Localcredit ecosystem while improving the accuracy of the shared scoring model. When lenders report anonymized results (repaid, default, partial), the system learns which signals best predict reliability – making scores more predictive for everyone.
Why Report Outcomes?
Improve the Model: Your data helps refine weights and pattern detection, reducing defaults across the network.
Build Trust: Transparent reporting demonstrates your commitment to fair lending.
Potential Benefits: Accurate reporters may receive boosted visibility in the Opportunities feed or governance perks (DAO-decided).
Fully Anonymized: Borrower identity is never revealed – only aggregated, proof-backed outcomes are used.
How Reporting Works
After a loan completes (o
rreaches a milestone), submit the result via the API.The report is validated and linked to the borrower’s abstract identity via ZK proof.
Data is used in periodic model retraining (federated, privacy-preserving).
REST API ReportingUse the /reportOutcome endpoint.Request Examplejson
{
"loanHash": "0xabc123...", // Unique identifier for the loan
"outcome": "repaid", // "repaid" | "default" | "partial"
"amountUsd": 2500, // Original loan amount in USD equivalent
"timestamp": 1736100000, // Unix timestamp of outcome
"details": { // Optional enriched data
"daysLate": 0,
"recoveredAmountUsd": 2500,
"partialRecoveryPercent": 100
}
}JavaScript/TypeScript SDK Exampletypescript
On-Chain Reporting (Advanced)For fully decentralized protocols, report directly via the oracle contract (callback pattern similar to score queries).
Solidity Example
Best Practices
Report as soon as the outcome is final (full repayment, charge-off, etc.).
Use consistent loanHash format across your system for easier tracking.
Include details when available – richer data improves model learning.
Never include borrower PII – the API will reject any personal data.
Reported data is aggregated and used only for model improvement. Individual reports are never exposed to other parties.Thank you for reporting – every accurate outcome makes Localcredit smarter and the entire ecosystem safer for lenders and borrowers alike.
Last updated