Morpho Vault Deposit logo

Catalog action EVM Onchain wallet Gas send

Deposit tokens into a MetaMorpho vault (ERC-4626) on the Morpho Blue protocol. Automatically approves the underlying token and deposits into the vault. Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: yield farming, earning lending interest, DeFi deposits, automated savings.

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-vault-deposit
CategoryEVM Onchain
Connectorwallet
Requires gasYes
Funds movementsend
Tagsmorpho, defi, vault, deposit, erc4626, yield, lending, write

Payload Schema

FieldTypeRequiredDescription
vaultAddressstringYesThe MetaMorpho vault (ERC-4626) contract address to deposit into
tokenAddressstringYesERC20 underlying token address of the vault. Must match vault.asset() — action errors with VAULT_ASSET_MISMATCH if they differ.
amountstringYesAmount of underlying tokens to deposit in smallest unit (wei) as string (e.g., "1000000" for 1 USDC). Must be a positive integer.
chainIdnumberYesChain ID. Supported: Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161)
gasLimitstringNoOptional gas limit as a positive integer string (e.g., "300000")
slippageBpsnumberNoSlippage tolerance in basis points (1 bp = 0.01%). Default: 100 (1%). Protects against share price changes between preview and execution.

Result Schema

FieldTypeRequiredDescription
statusstringYes-
transactionHashstringYes-
chainIdnumberNoThe chain ID the transaction was executed on
blockNumbernumberNoBlock number where the transaction was confirmed
estimatedSharesReceivedstringNoAmount of vault shares received (preview estimate)
estimatedSharesReceivedFormattedstringNoHuman-readable vault shares received (e.g., '1.5' instead of '1500000')
assetAddressstringNoUnderlying asset token address
assetSymbolstringNoUnderlying asset token symbol (e.g., 'USDC')
assetDecimalsnumberNoUnderlying asset token decimals
chainNamestringNoHuman-readable chain name (e.g., 'Base', 'Ethereum')
networkIdstringNoChain network identifier (e.g., 'base', 'ethereum') — use for Coinbase and other APIs that accept network names

Examples

json
{ "type": "morpho-vault-deposit", "payload": { "vaultAddress": "0x0000000000000000000000000000000000000000", "tokenAddress": "0x0000000000000000000000000000000000000000", "amount": "1000000", "chainId": 1 }, "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