{"uid":"cap_SBlcjE_hmD3_t1w0yhzPS","slug":"ozmium-morpho-blue-loan-repay-94f0fb08","name":"Ozmium Morpho Blue Loan Repay","description":"Morpho Blue repay calldata with verified MarketParams; loan-asset approve step included when needed. POST /v1/tx/loan/repay { marketId, assets (atomic), owner }.","url":"https://ozmium.org/v1/tx/loan/repay","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string"},"assets":{"type":"string"},"marketId":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PxznLShjG1Rf1k77BwVxN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates verified Morpho Blue repay calldata (with optional loan-asset approve step) for repaying a borrow position on Base mainnet.","exampleAgentPrompt":"Repay 500000000 atomic units of my Morpho Blue loan in market 0xabc123...def for owner address 0x742d35Cc6634C0532925a3b8D4C9C3B4a1234567 — include the loan-asset approve step if needed.","exampleUseCases":null,"resultDescription":"Returns unsigned Morpho Blue repay calldata with verified MarketParams, plus an ERC-20 approve calldata step when the loan asset spending allowance is insufficient. The agent can sign and broadcast these transactions to execute the repayment on Base mainnet.","failureModes":["Invalid or unrecognized marketId returns an error or empty MarketParams","Malformed owner address (not a valid Ethereum address) causes a validation error","Assets value of zero or negative triggers a bad-request error","Market not found on Base mainnet returns a 404 or descriptive error","Network or RPC unavailability causes a 5xx server error","Payment not included or insufficient USDC fee returns a 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an AI agent needs to repay an active Morpho Blue borrow position on Base mainnet and requires ready-to-sign calldata with verified MarketParams. Prefer this over manually constructing Morpho Blue repay calldata, especially when the approve step logic needs to be handled automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:28.414Z","isFirstParty":false}