Documentation Repayment proof
Repayment proof
A lender should not have to take the borrower's word, or the inspector's, that a repayment happened. Here a payment on the XRP Ledger testnet is credited to a loan on Coston2 from a proof agreed by Flare's data providers.
The same flow in words
- The borrower pays on the XRP Ledger testnet. The payment’s memo carries the loan’s 32-byte reference.
- The client prepares a request of type
Payment. It only reads, and handles no key. - The request and its fee go to FdcHub on Coston2.
- Flare’s data providers check the payment and agree on it in a voting round.
- After the round the proof is fetched and handed to
creditRepayment. Anyone may do this. - The ledger checks the proof with Flare’s verification contract, checks the receiving address and the reference, and credits the loan once.
- The vault counts only repayments the ledger has credited. The borrower cannot report one.
The pieces#
| Piece | What it does |
|---|---|
RepaymentLedger | The owner registers a loan. Anyone hands in a proof of type Payment. The ledger checks it and adds the amount to the loan's repaid total, once |
RepaymentAwareVault | The loan vault with one change: the borrower cannot report a repayment. Only repayments the ledger has credited count |
| FDC client | Prepares the request, works out the voting round, waits, fetches the proof. It only reads and handles no key |
Flare calls the request an attestation request, and Payment is one of its types. The word is Flare's term for a fact its data providers agree on. It is not a description of the inspection service.
What was run#
On 22 November 2026, on Coston2 and the XRP Ledger testnet, with an invented loan:
| Item | Value |
|---|---|
| Loan (invented) | loan-demo-0001, principal 250,000 drops |
| Payment | 100,000 drops, with the loan's reference in its memo |
| Voting round | 1521785 |
| Result | Credited 100,000; outstanding 150,000 |
| The same proof again | Refused with AlreadyCredited |
The payment was made from two throwaway XRP Ledger testnet accounts that existed for that one run.
What a credited repayment proves#
- A transaction with that hash on the XRP Ledger testnet is a successful payment.
- It delivered that amount to the address registered for the loan.
- Its memo carried the loan's 32-byte reference.
- It was credited once.
What it does not prove#
- That the address belongs to the lender. The owner of the ledger registers it.
- That the payment was owed, or who sent it. Anyone may pay a loan.
- Anything about a real loan or a real lender. The loan is invented and test XRP has no value.
- That real GPU lenders take repayment this way. Most are repaid in dollars through a bank, which the Data Connector cannot see.
Trust that remains: Flare's data providers, Flare's governance of its verification contracts, and the ledger's owner.
Flare's own page: FDC overview.