Morpho Blue Supply Collateral
Lock collateral token in a Morpho Blue market to unlock borrow capacity. Automatically approves the collateral token to the Morpho singleton and supplies. Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: opening a Blue borrow position, increasing LTV headroom, leverage loops.
Catalog action EVM Onchain wallet Gas
Lock collateral token in a Morpho Blue market to unlock borrow capacity. Automatically approves the collateral token to the Morpho singleton and supplies. Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: opening a Blue borrow position, increasing LTV headroom, leverage loops.
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
| Field | Value |
|---|---|
| Action ID | morpho-blue-supply-collateral |
| Category | EVM Onchain |
| Connector | wallet |
| Requires gas | Yes |
| Funds movement | None declared |
| Tags | morpho, morpho-blue, lending, collateral, supply, write, defi |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
marketId | string | Yes | Morpho Blue market ID (bytes32 hex) |
chainId | number | Yes | Chain ID. Supported: Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161) |
amount | string | Yes | Amount of collateral token to supply in smallest unit (wei). E.g. "1000000000000000000" = 1 WETH. |
gasLimit | string | No | Optional gas limit as a positive integer string (e.g., "300000") |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | - |
transactionHash | string | Yes | - |
transactionUrl | string | No | Block explorer URL for the transaction (e.g. https://basescan.org/tx/0x...\) |
blockNumber | number | No | - |
collateralAfter | string | No | Raw collateral balance in the market after this supply |
collateralAfterFormatted | string | No | Human-readable collateral balance after this supply |
Examples
json{ "type": "morpho-blue-supply-collateral", "payload": { "marketId": "example-marketId", "chainId": 1, "amount": "1000000" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}
bashcurl -X POST "https://api.b3os.org/v1/actions/morpho-blue-supply-collateral/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "marketId": "example-marketId", "chainId": 1, "amount": "1000000" }}'
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.
