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.
| Action | Action type |
|---|---|
| Morpho: Get Position | morpho/get-position |
| Morpho: Get Market | morpho/get-market |
| Morpho: Get Market Params | morpho/get-market-params |
| Morpho: Check Authorization | morpho/is-authorized |
| Morpho: Set Authorization | morpho/set-authorization |
| Morpho: Flash Loan | morpho/flash-loan |
| Morpho: Supply | morpho/supply |
| Morpho: Withdraw | morpho/withdraw |
| Morpho: Supply Collateral | morpho/supply-collateral |
| Morpho: Borrow | morpho/borrow |
| Morpho: Repay | morpho/repay |
| Morpho: Withdraw Collateral | morpho/withdraw-collateral |
| Morpho: Liquidate | morpho/liquidate |
| Morpho: Accrue Interest | morpho/accrue-interest |
| Morpho: Vault Deposit | morpho/vault-deposit |
| Morpho: Vault Mint | morpho/vault-mint |
| Morpho: Vault Withdraw | morpho/vault-withdraw |
| Morpho: Vault Redeem | morpho/vault-redeem |
| Morpho: Vault Underlying Asset | morpho/vault-asset |
| Morpho: Vault Total Assets | morpho/vault-total-assets |
| Morpho: Vault Total Supply | morpho/vault-total-supply |
| Morpho: Vault Share Balance | morpho/vault-balance |
| Morpho: Convert Shares to Assets | morpho/vault-convert-to-assets |
| Morpho: Convert Assets to Shares | morpho/vault-convert-to-shares |
| Morpho: Preview Vault Deposit | morpho/vault-preview-deposit |
| Morpho: Preview Vault Mint | morpho/vault-preview-mint |
| Morpho: Preview Vault Withdraw | morpho/vault-preview-withdraw |
| Morpho: Preview Vault Redeem | morpho/vault-preview-redeem |
| Morpho: Max Vault Deposit | morpho/vault-max-deposit |
| Morpho: Max Vault Mint | morpho/vault-max-mint |
| Morpho: Max Vault Withdraw | morpho/vault-max-withdraw |
| Morpho: Max Vault Redeem | morpho/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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
id | bytes32 | Yes | Market ID (bytes32). | ||
user | address | Yes | User Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.supplyShares | Supply Shares |
result.borrowShares | Borrow Shares |
result.collateral | Collateral |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
id | bytes32 | Yes | Market ID (bytes32). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.totalSupplyAssets | Total Supply Assets |
result.totalSupplyShares | Total Supply Shares |
result.totalBorrowAssets | Total Borrow Assets |
result.totalBorrowShares | Total Borrow Shares |
result.lastUpdate | Last Update Timestamp |
result.fee | Fee |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
id | bytes32 | Yes | Market ID (bytes32). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.loanToken | Loan Token |
result.collateralToken | Collateral Token |
result.oracle | Oracle |
result.irm | Interest Rate Model |
result.lltv | Liquidation LTV |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
authorizer | address | Yes | Authorizer Address (address). | ||
authorized | address | Yes | Authorized Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.isAuthorized | Is Authorized |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
authorized | address | Yes | Authorized Address (address). | ||
newIsAuthorized | bool | Yes | Authorize (bool). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
token | address | Yes | Token Address (address). | ||
assets | uint256 | Yes | Amount (wei) (uint256). | ||
data | bytes | No | 0x | Callback Data (bytes). | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Asset Amount (uint256). | ||
shares | uint256 | No | 0 | Share Amount (uint256). | |
onBehalf | address | Yes | On Behalf Of (address). | ||
data | bytes | No | 0x | Callback Data (bytes). | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Asset Amount (uint256). | ||
shares | uint256 | No | 0 | Share Amount (uint256). | |
onBehalf | address | Yes | On Behalf Of (address). | ||
receiver | address | Yes | Receiver Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Collateral Amount (uint256). | ||
onBehalf | address | Yes | On Behalf Of (address). | ||
data | bytes | No | 0x | Callback Data (bytes). | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Asset Amount (uint256). | ||
shares | uint256 | No | 0 | Share Amount (uint256). | |
onBehalf | address | Yes | On Behalf Of (address). | ||
receiver | address | Yes | Receiver Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Asset Amount (uint256). | ||
shares | uint256 | No | 0 | Share Amount (uint256). | |
onBehalf | address | Yes | On Behalf Of (address). | ||
data | bytes | No | 0x | Callback Data (bytes). | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
assets | uint256 | Yes | Collateral Amount (uint256). | ||
onBehalf | address | Yes | On Behalf Of (address). | ||
receiver | address | Yes | Receiver Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
borrower | address | Yes | Borrower Address (address). | ||
seizedAssets | uint256 | Yes | Seized Collateral Amount (uint256). | ||
repaidShares | uint256 | No | 0 | Repaid Shares (uint256). | |
data | bytes | No | 0x | Callback Data (bytes). | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
loanToken | address | Yes | Loan Token Address (address). | ||
collateralToken | address | Yes | Collateral Token Address (address). | ||
oracle | address | Yes | Oracle Address (address). | ||
irm | address | Yes | IRM Address (address). | ||
lltv | uint256 | Yes | Liquidation LTV (uint256). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
owner | address | Yes | Share Owner Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
owner | address | Yes | Share Owner Address (address). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.asset | Underlying Asset Address |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.totalAssets | Total Assets (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.totalSupply | Total Shares (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.balance | Share Balance (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.assets | Asset Value (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.shares | Shares Amount (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.shares | Shares Received (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.assets | Assets Required (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.shares | Shares Burned (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.assets | Assets Received (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.maxAssets | Max Deposit (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.maxShares | Max Mint (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.maxAssets | Max Withdraw (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | a chain id | Network. | |
contractAddress | string | Yes | MetaMorpho Vault Address. | ||
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.maxShares | Max Redeem (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Contracts
| Contract | Chain ids |
|---|---|
| Morpho Blue | 1, 8453, 11155111 |
| MetaMorpho Vault | any (the address is set on the node) |