Morpho Blue Borrow logo

Catalog action EVM Onchain wallet Gas

Borrow loan token against existing collateral in a Morpho Blue market. Optional maxLtvPercent safety cap prevents accidentally borrowing to dangerous LTV. Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: opening leverage positions, cash-out against collateral, automated borrowing.

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

At a Glance

FieldValue
Action IDmorpho-blue-borrow
CategoryEVM Onchain
Connectorwallet
Requires gasYes
Funds movementNone declared
Tagsmorpho, morpho-blue, lending, borrow, write, defi

Payload Schema

FieldTypeRequiredDescription
marketIdstringYesMorpho Blue market ID (bytes32 hex)
chainIdnumberYesChain ID. Supported: Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161)
amountstringYesAmount of loan token to borrow in smallest unit (wei). E.g. "50000000" = 50 USDC.
maxLtvPercentnumberNoOptional safety cap. Reject the borrow if the resulting LTV would exceed this percentage. Example: 75 = cap at 75%.
gasLimitstringNoOptional gas limit as a positive integer string (e.g., "300000")

Result Schema

FieldTypeRequiredDescription
statusstringYes-
transactionHashstringYes-
transactionUrlstringNoBlock explorer URL for the transaction (e.g. https://basescan.org/tx/0x...\)
blockNumbernumberNo-
borrowedAmountstringNoRaw amount of loan token borrowed in this call (wei)
borrowedAmountFormattedstringNoHuman-readable borrowed amount in loan token units
resultingLtvPercentnumberNoPosition LTV (%) after this borrow, computed from oracle price

Examples

json
{ "type": "morpho-blue-borrow", "payload": { "marketId": "example-marketId", "chainId": 1, "amount": "1000000" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I