{"uid":"cap_K2xgtD6LmfIDiLiKChcW-","slug":"ozmium-fixed-rate-borrow-calldata-morpho-midnight-e2bd6e08","name":"Ozmium Fixed-Rate Borrow Calldata (Morpho Midnight)","description":"Morpho Midnight FIXED-RATE borrow calldata: quotes the live bid book for your assets target and encodes the takes in order, clamped by the slippage-guarded worst price. Rate locks at execution to the market maturity. Collateral must already be supplied. POST /v1/tx/fixed/borrow { marketId, assets (atomic loan), owner }.","url":"https://ozmium.org/v1/tx/fixed/borrow","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string"}}}},"network":{"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_nzwglc6VcmgyGbCLy674P","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":"Quotes the live Morpho Midnight fixed-rate bid book for a given market and encodes slippage-guarded borrow transaction calldata, locking the rate at execution maturity.","exampleAgentPrompt":"I already have collateral supplied — can you generate the fixed-rate borrow calldata on Morpho Midnight for market 0xabc123, borrowing 500 USDC (in atomic units) from my wallet 0xMyWallet, with slippage protection?","exampleUseCases":[{"title":"Lock fixed rate on DeFi loan","prompt":"I've already deposited collateral on Morpho. Can you pull the live bid book for market 0xabc123 and encode me the borrow transaction to take a 1000 USDC fixed-rate loan from my wallet 0xMyWallet, guarded against slippage?"},{"title":"Automate fixed-rate borrow for treasury","prompt":"Our treasury wallet 0xTreasury has collateral on Morpho Midnight. Build me the calldata to borrow 50000 USDC atomically from market 0xdef456, locking the rate at the best available fixed price right now."},{"title":"Compare and execute best fixed borrow rate","prompt":"I want to borrow 2 ETH worth of stablecoins at a fixed rate. My wallet is 0xMyWallet and I'm using Morpho Midnight market 0x789abc — can you encode the transaction steps so I can broadcast them?"}],"resultDescription":"Returns an ordered array of transaction steps, each with a target contract address (to), encoded calldata (data), and ETH value (value), along with the target network identifier. Steps are ready to be signed and broadcast by the owner's wallet to execute the fixed-rate borrow.","failureModes":["Insufficient collateral supplied — borrow will revert on-chain if collateral hasn't been deposited first","Invalid or unknown marketId — returns error if market does not exist on Morpho Midnight","Slippage exceeded — if live bid book prices shift beyond the worst-price guard, calldata may be invalid at execution time","Assets value too large — if requested loan exceeds available liquidity in the bid book","Malformed owner address — returns error if wallet address is not a valid Ethereum address","Rate lock expiry — fixed rate is locked at execution time; delays between quote and broadcast may cause stale pricing"],"whenToPreferThis":"Use this endpoint when you need ready-to-broadcast calldata for a fixed-rate borrow on Morpho Midnight and your collateral is already supplied. It handles bid-book quoting, slippage guarding, and calldata encoding in a single call, saving you from manually interacting with the Morpho protocol. Prefer this over variable-rate alternatives when you want a predictable, locked borrowing cost for the market's maturity duration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:39.334Z","isFirstParty":false}