Skip to main content

Make offer (build typed-data)

GET 

/v1/actions/midnight/make

MAKE — step 1 of 2. Build the EIP-712 typed-data for a limit offer at your own rate.

Morpho Midnight is an order-book lender — liquidity is a book of maker offers, not a pool — so there are two ways to interact:

Make flow (worker-assisted signing):

  1. GET /v1/actions/midnight/make → returns typedData, the echoed inputs, and a one-time authorization tx.
  2. The maker signs typedData with their wallet (wallet.signTypedData).
  3. POST /v1/actions/midnight/finalize with { inputs, signature } → the on-chain transaction that publishes the offer to the Midnight mempool.

If authorization is present and the maker has not yet authorized the ratifier (read isAuthorized on-chain), send that one-time setIsAuthorized transaction before finalizing. The APR you request is snapped to an order-book tick — aprPctSnapped is the exact rate the offer will quote.

Request

Responses

Offer typed-data, echoed inputs, and one-time authorization