Skip to Content

Morpho action reference

This page is generated from the plugin registry. Do not edit it by hand.

Trustless lending protocol: overcollateralized borrowing and lending of ERC-20 tokens via a singleton contract

For guidance and examples see the Morpho guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.

ActionAction type
Morpho: Get Positionmorpho/get-position
Morpho: Get Marketmorpho/get-market
Morpho: Get Market Paramsmorpho/get-market-params
Morpho: Check Authorizationmorpho/is-authorized
Morpho: Set Authorizationmorpho/set-authorization
Morpho: Flash Loanmorpho/flash-loan
Morpho: Supplymorpho/supply
Morpho: Withdrawmorpho/withdraw
Morpho: Supply Collateralmorpho/supply-collateral
Morpho: Borrowmorpho/borrow
Morpho: Repaymorpho/repay
Morpho: Withdraw Collateralmorpho/withdraw-collateral
Morpho: Liquidatemorpho/liquidate
Morpho: Accrue Interestmorpho/accrue-interest
Morpho: Vault Depositmorpho/vault-deposit
Morpho: Vault Mintmorpho/vault-mint
Morpho: Vault Withdrawmorpho/vault-withdraw
Morpho: Vault Redeemmorpho/vault-redeem
Morpho: Vault Underlying Assetmorpho/vault-asset
Morpho: Vault Total Assetsmorpho/vault-total-assets
Morpho: Vault Total Supplymorpho/vault-total-supply
Morpho: Vault Share Balancemorpho/vault-balance
Morpho: Convert Shares to Assetsmorpho/vault-convert-to-assets
Morpho: Convert Assets to Sharesmorpho/vault-convert-to-shares
Morpho: Preview Vault Depositmorpho/vault-preview-deposit
Morpho: Preview Vault Mintmorpho/vault-preview-mint
Morpho: Preview Vault Withdrawmorpho/vault-preview-withdraw
Morpho: Preview Vault Redeemmorpho/vault-preview-redeem
Morpho: Max Vault Depositmorpho/vault-max-deposit
Morpho: Max Vault Mintmorpho/vault-max-mint
Morpho: Max Vault Withdrawmorpho/vault-max-withdraw
Morpho: Max Vault Redeemmorpho/vault-max-redeem

Morpho: Get Position

Action type: morpho/get-position. Connection: not required.

Check a user’s supply shares, borrow shares, and collateral in a Morpho market

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
idbytes32YesMarket ID (bytes32).
useraddressYesUser Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.supplySharesSupply Shares
result.borrowSharesBorrow Shares
result.collateralCollateral
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Get Market

Action type: morpho/get-market. Connection: not required.

Check total supply, borrows, last update time, and fee for a Morpho market

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
idbytes32YesMarket ID (bytes32).

Outputs

OutputDescription
resultThe contract function return value
result.totalSupplyAssetsTotal Supply Assets
result.totalSupplySharesTotal Supply Shares
result.totalBorrowAssetsTotal Borrow Assets
result.totalBorrowSharesTotal Borrow Shares
result.lastUpdateLast Update Timestamp
result.feeFee
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Get Market Params

Action type: morpho/get-market-params. Connection: not required.

Resolve a market ID to its parameters: loan token, collateral token, oracle, IRM, and LLTV

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
idbytes32YesMarket ID (bytes32).

Outputs

OutputDescription
resultThe contract function return value
result.loanTokenLoan Token
result.collateralTokenCollateral Token
result.oracleOracle
result.irmInterest Rate Model
result.lltvLiquidation LTV
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Check Authorization

Action type: morpho/is-authorized. Connection: not required.

Check if an address is authorized to act on behalf of another in Morpho

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
authorizeraddressYesAuthorizer Address (address).
authorizedaddressYesAuthorized Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.isAuthorizedIs Authorized
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Set Authorization

Action type: morpho/set-authorization. Connection: required (web3).

Grant or revoke authorization for another address to act on your behalf in Morpho

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
authorizedaddressYesAuthorized Address (address).
newIsAuthorizedboolYesAuthorize (bool).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Flash Loan

Action type: morpho/flash-loan. Connection: required (web3).

Borrow tokens and repay within the same transaction via Morpho flash loan

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
tokenaddressYesToken Address (address).
assetsuint256YesAmount (wei) (uint256).
databytesNo0xCallback Data (bytes).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Supply

Action type: morpho/supply. Connection: required (web3).

Supply loan tokens to a Morpho market. Specify amount in assets or shares (set the other to 0)

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesAsset Amount (uint256).
sharesuint256No0Share Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
databytesNo0xCallback Data (bytes).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Withdraw

Action type: morpho/withdraw. Connection: required (web3).

Withdraw supplied loan tokens from a Morpho market. Specify amount in assets or shares (set the other to 0)

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesAsset Amount (uint256).
sharesuint256No0Share Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
receiveraddressYesReceiver Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Supply Collateral

Action type: morpho/supply-collateral. Connection: required (web3).

Deposit collateral tokens into a Morpho market for borrowing

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesCollateral Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
databytesNo0xCallback Data (bytes).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Borrow

Action type: morpho/borrow. Connection: required (web3).

Borrow loan tokens from a Morpho market against deposited collateral

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesAsset Amount (uint256).
sharesuint256No0Share Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
receiveraddressYesReceiver Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Repay

Action type: morpho/repay. Connection: required (web3).

Repay borrowed loan tokens to a Morpho market. Specify amount in assets or shares (set the other to 0)

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesAsset Amount (uint256).
sharesuint256No0Share Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
databytesNo0xCallback Data (bytes).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Withdraw Collateral

Action type: morpho/withdraw-collateral. Connection: required (web3).

Remove collateral tokens from a Morpho market position

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
assetsuint256YesCollateral Amount (uint256).
onBehalfaddressYesOn Behalf Of (address).
receiveraddressYesReceiver Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Liquidate

Action type: morpho/liquidate. Connection: required (web3).

Liquidate an undercollateralized position in a Morpho market

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
borroweraddressYesBorrower Address (address).
seizedAssetsuint256YesSeized Collateral Amount (uint256).
repaidSharesuint256No0Repaid Shares (uint256).
databytesNo0xCallback Data (bytes).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Accrue Interest

Action type: morpho/accrue-interest. Connection: required (web3).

Trigger interest accrual for a Morpho market to update supply and borrow indices

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
loanTokenaddressYesLoan Token Address (address).
collateralTokenaddressYesCollateral Token Address (address).
oracleaddressYesOracle Address (address).
irmaddressYesIRM Address (address).
lltvuint256YesLiquidation LTV (uint256).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Vault Deposit

Action type: morpho/vault-deposit. Connection: required (web3).

Deposit assets into the ERC-4626 vault and receive shares

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesMetaMorpho Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).
receiveraddressYesReceiver Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Vault Mint

Action type: morpho/vault-mint. Connection: required (web3).

Mint exact vault shares by depositing the required amount of assets

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesMetaMorpho Vault Address.
sharesuint256YesShares Amount (wei) (uint256).
receiveraddressYesReceiver Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Vault Withdraw

Action type: morpho/vault-withdraw. Connection: required (web3).

Withdraw assets from the ERC-4626 vault by specifying asset amount

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesMetaMorpho Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).
receiveraddressYesReceiver Address (address).
owneraddressYesShare Owner Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Vault Redeem

Action type: morpho/vault-redeem. Connection: required (web3).

Redeem shares from the ERC-4626 vault for underlying assets

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesMetaMorpho Vault Address.
sharesuint256YesShares Amount (wei) (uint256).
receiveraddressYesReceiver Address (address).
owneraddressYesShare Owner Address (address).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

Morpho: Vault Underlying Asset

Action type: morpho/vault-asset. Connection: not required.

Get the address of the underlying asset token for this vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.

Outputs

OutputDescription
resultThe contract function return value
result.assetUnderlying Asset Address
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Vault Total Assets

Action type: morpho/vault-total-assets. Connection: not required.

Get the total amount of underlying assets held by the vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.

Outputs

OutputDescription
resultThe contract function return value
result.totalAssetsTotal Assets (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Vault Total Supply

Action type: morpho/vault-total-supply. Connection: not required.

Get the total supply of vault shares

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.

Outputs

OutputDescription
resultThe contract function return value
result.totalSupplyTotal Shares (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Vault Share Balance

Action type: morpho/vault-balance. Connection: not required.

Get the vault share balance of an address

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.balanceShare Balance (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Convert Shares to Assets

Action type: morpho/vault-convert-to-assets. Connection: not required.

Convert a vault share amount to its underlying asset value at the current rate

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.assetsAsset Value (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Convert Assets to Shares

Action type: morpho/vault-convert-to-shares. Connection: not required.

Convert an asset amount to the equivalent vault shares at the current rate

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.sharesShares Amount (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Preview Vault Deposit

Action type: morpho/vault-preview-deposit. Connection: not required.

Preview how many shares a given asset deposit would yield

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.sharesShares Received (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Preview Vault Mint

Action type: morpho/vault-preview-mint. Connection: not required.

Preview how many assets are needed to mint a given number of shares

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.assetsAssets Required (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Preview Vault Withdraw

Action type: morpho/vault-preview-withdraw. Connection: not required.

Preview how many shares must be burned to withdraw a given asset amount

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.sharesShares Burned (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Preview Vault Redeem

Action type: morpho/vault-preview-redeem. Connection: not required.

Preview how many assets a given share redemption would yield

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultThe contract function return value
result.assetsAssets Received (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Max Vault Deposit

Action type: morpho/vault-max-deposit. Connection: not required.

Get the maximum amount of assets that can be deposited for a receiver

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
receiveraddressYesReceiver Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.maxAssetsMax Deposit (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Max Vault Mint

Action type: morpho/vault-max-mint. Connection: not required.

Get the maximum number of shares that can be minted for a receiver

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
receiveraddressYesReceiver Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.maxSharesMax Mint (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Max Vault Withdraw

Action type: morpho/vault-max-withdraw. Connection: not required.

Get the maximum amount of assets that can be withdrawn by an owner

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
owneraddressYesOwner Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.maxAssetsMax Withdraw (wei)
successWhether the operation succeeded
errorError message if the operation failed

Morpho: Max Vault Redeem

Action type: morpho/vault-max-redeem. Connection: not required.

Get the maximum number of shares that can be redeemed by an owner

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYesa chain idNetwork.
contractAddressstringYesMetaMorpho Vault Address.
owneraddressYesOwner Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.maxSharesMax Redeem (wei)
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
Morpho Blue1, 8453, 11155111
MetaMorpho Vaultany (the address is set on the node)