Register a new loan
POST/loan
Register a loan for DLC oracle monitoring.
Creates two oracle events (funding and maturity) and returns announcements for DLC construction. Magnolia monitors the specified addresses for USDC transfers and attests to outcomes (funded, repaid, liquidated).
Poll GET /dlc/oracle-event with the returned event IDs to check for attestations.
Note: Magnolia is the oracle, not the lender.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
Loan created successfully
Bad Request - Invalid input data
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient permissions
Not Found - Resource not found
Conflict - Resource already exists or state conflict
Unprocessable Entity - Validation error
Environment: