Skip to main content
POST
Plan Borrow

Plan Borrow

Creates a plan to borrow assets from a lending protocol using collateral. Returns a plan ID and an EIP-712 digest that must be signed to authorize execution.

Request

Path parameters

Body parameters

Examples

Compound

Morpho

Response (201 Created)

Response fields

Errors

Notes

  • Plans expire after 2 minutes. Sign and execute via Execute Plan before expiry.
  • The market parameter is required for Morpho and must be a valid 32-byte market ID.
  • The resulting activity will have action_type: "COMET_BORROW" (Compound) or "MORPHO_BORROW" (Morpho) in its metadata.