Skip to Content

Euler V2 action reference

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

Euler V2 lending vaults: modular ERC-4626 markets built on the Euler Vault Kit, each pairing a supply-side vault with its own oracle and risk configuration

For guidance and examples see the Euler V2 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
Euler V2: Vault Depositeuler-v2/vault-deposit
Euler V2: Vault Minteuler-v2/vault-mint
Euler V2: Vault Withdraweuler-v2/vault-withdraw
Euler V2: Vault Redeemeuler-v2/vault-redeem
Euler V2: Vault Underlying Asseteuler-v2/vault-asset
Euler V2: Vault Total Assetseuler-v2/vault-total-assets
Euler V2: Vault Total Supplyeuler-v2/vault-total-supply
Euler V2: Vault Share Balanceeuler-v2/vault-balance
Euler V2: Convert Shares to Assetseuler-v2/vault-convert-to-assets
Euler V2: Convert Assets to Shareseuler-v2/vault-convert-to-shares
Euler V2: Preview Vault Depositeuler-v2/vault-preview-deposit
Euler V2: Preview Vault Minteuler-v2/vault-preview-mint
Euler V2: Preview Vault Withdraweuler-v2/vault-preview-withdraw
Euler V2: Preview Vault Redeemeuler-v2/vault-preview-redeem
Euler V2: Max Vault Depositeuler-v2/vault-max-deposit
Euler V2: Max Vault Minteuler-v2/vault-max-mint
Euler V2: Max Vault Withdraweuler-v2/vault-max-withdraw
Euler V2: Max Vault Redeemeuler-v2/vault-max-redeem
Euler V2: Vault Decimalseuler-v2/get-vault-decimals
Euler V2: Available Casheuler-v2/get-cash
Euler V2: Total Borrowseuler-v2/get-total-borrows
Euler V2: Borrow Interest Rateeuler-v2/get-interest-rate
Euler V2: Interest Accumulatoreuler-v2/get-interest-accumulator
Euler V2: Accumulated Feeseuler-v2/get-accumulated-fees
Euler V2: Debt Of Accounteuler-v2/get-debt-of
Euler V2: Vault Oracleeuler-v2/get-oracle
Euler V2: Unit Of Accounteuler-v2/get-unit-of-account
Euler V2: Vault Connectoreuler-v2/get-evc
Euler V2: Vault Creatoreuler-v2/get-creator

Euler V2: Vault Deposit

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

Deposit assets into the ERC-4626 vault and receive shares

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
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.
contractAddressstringYesEuler V2 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.

Euler V2: Vault Mint

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

Mint exact vault shares by depositing the required amount of assets

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
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.
contractAddressstringYesEuler V2 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.

Euler V2: Vault Withdraw

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
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.
contractAddressstringYesEuler V2 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.

Euler V2: Vault Redeem

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

Redeem shares from the ERC-4626 vault for underlying assets

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
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.
contractAddressstringYesEuler V2 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.

Euler V2: Vault Underlying Asset

Action type: euler-v2/vault-asset. Connection: not required.

Get the address of the underlying asset token for this vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultUnderlying Asset Address
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Total Assets

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

Get the total amount of underlying assets held by the vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultTotal Assets (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Total Supply

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

Get the total supply of vault shares

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultTotal Shares (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Share Balance

Action type: euler-v2/vault-balance. Connection: not required.

Get the vault share balance of an address

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultShare Balance (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Convert Shares to Assets

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultAsset Value (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Convert Assets to Shares

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultShares Amount (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Preview Vault Deposit

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

Preview how many shares a given asset deposit would yield

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultShares Received (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Preview Vault Mint

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultAssets Required (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Preview Vault Withdraw

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
assetsuint256YesAsset Amount (wei) (uint256).

Outputs

OutputDescription
resultShares Burned (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Preview Vault Redeem

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

Preview how many assets a given share redemption would yield

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
sharesuint256YesShares Amount (wei) (uint256).

Outputs

OutputDescription
resultAssets Received (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Max Vault Deposit

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
receiveraddressYesReceiver Address (address).

Outputs

OutputDescription
resultMax Deposit (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Max Vault Mint

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
receiveraddressYesReceiver Address (address).

Outputs

OutputDescription
resultMax Mint (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Max Vault Withdraw

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
owneraddressYesOwner Address (address).

Outputs

OutputDescription
resultMax Withdraw (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Max Vault Redeem

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

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

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
owneraddressYesOwner Address (address).

Outputs

OutputDescription
resultMax Redeem (wei)
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Decimals

Action type: euler-v2/get-vault-decimals. Connection: not required.

Get the number of decimals the vault share token uses, which mirrors the underlying asset

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultDecimals
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Available Cash

Action type: euler-v2/get-cash. Connection: not required.

Get the amount of underlying asset held by the vault and available to withdraw or borrow

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultAvailable Cash
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Total Borrows

Action type: euler-v2/get-total-borrows. Connection: not required.

Get the total amount of underlying asset currently borrowed from the vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultTotal Borrows
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Borrow Interest Rate

Action type: euler-v2/get-interest-rate. Connection: not required.

Get the current borrow interest rate as a yield per second, scaled by 10^27

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultBorrow Interest Rate
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Interest Accumulator

Action type: euler-v2/get-interest-accumulator. Connection: not required.

Get the vault’s monotonically increasing interest accumulator, used to derive realised interest between two points in time

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultInterest Accumulator
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Accumulated Fees

Action type: euler-v2/get-accumulated-fees. Connection: not required.

Get the shares accrued to the protocol and vault governor as fees but not yet converted

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultAccumulated Fees
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Debt Of Account

Action type: euler-v2/get-debt-of. Connection: not required.

Get the amount of underlying asset an account currently owes the vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.
accountaddressYesAccount Address (address).

Outputs

OutputDescription
resultDebt
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Oracle

Action type: euler-v2/get-oracle. Connection: not required.

Get the address of the price oracle this vault prices collateral and liabilities with

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultOracle
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Unit Of Account

Action type: euler-v2/get-unit-of-account. Connection: not required.

Get the unit of account the vault denominates risk calculations in. Often a token address, but USD-denominated EVK markets return the ISO-4217 code as an address (0x348 is 840, USD), which is not a contract

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultUnit Of Account
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Connector

Action type: euler-v2/get-evc. Connection: not required.

Get the address of the Ethereum Vault Connector this vault is bound to

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultVault Connector
successWhether the operation succeeded
errorError message if the operation failed

Euler V2: Vault Creator

Action type: euler-v2/get-creator. Connection: not required.

Get the address that deployed this vault

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 8453Network.
contractAddressstringYesEuler V2 Vault Address.

Outputs

OutputDescription
resultCreator
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
Euler V2 Vaultany (the address is set on the node)