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.
| Action | Action type |
|---|---|
| Euler V2: Vault Deposit | euler-v2/vault-deposit |
| Euler V2: Vault Mint | euler-v2/vault-mint |
| Euler V2: Vault Withdraw | euler-v2/vault-withdraw |
| Euler V2: Vault Redeem | euler-v2/vault-redeem |
| Euler V2: Vault Underlying Asset | euler-v2/vault-asset |
| Euler V2: Vault Total Assets | euler-v2/vault-total-assets |
| Euler V2: Vault Total Supply | euler-v2/vault-total-supply |
| Euler V2: Vault Share Balance | euler-v2/vault-balance |
| Euler V2: Convert Shares to Assets | euler-v2/vault-convert-to-assets |
| Euler V2: Convert Assets to Shares | euler-v2/vault-convert-to-shares |
| Euler V2: Preview Vault Deposit | euler-v2/vault-preview-deposit |
| Euler V2: Preview Vault Mint | euler-v2/vault-preview-mint |
| Euler V2: Preview Vault Withdraw | euler-v2/vault-preview-withdraw |
| Euler V2: Preview Vault Redeem | euler-v2/vault-preview-redeem |
| Euler V2: Max Vault Deposit | euler-v2/vault-max-deposit |
| Euler V2: Max Vault Mint | euler-v2/vault-max-mint |
| Euler V2: Max Vault Withdraw | euler-v2/vault-max-withdraw |
| Euler V2: Max Vault Redeem | euler-v2/vault-max-redeem |
| Euler V2: Vault Decimals | euler-v2/get-vault-decimals |
| Euler V2: Available Cash | euler-v2/get-cash |
| Euler V2: Total Borrows | euler-v2/get-total-borrows |
| Euler V2: Borrow Interest Rate | euler-v2/get-interest-rate |
| Euler V2: Interest Accumulator | euler-v2/get-interest-accumulator |
| Euler V2: Accumulated Fees | euler-v2/get-accumulated-fees |
| Euler V2: Debt Of Account | euler-v2/get-debt-of |
| Euler V2: Vault Oracle | euler-v2/get-oracle |
| Euler V2: Unit Of Account | euler-v2/get-unit-of-account |
| Euler V2: Vault Connector | euler-v2/get-evc |
| Euler V2: Vault Creator | euler-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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | 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 | Euler V2 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. |
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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | 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 | Euler V2 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. |
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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | 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 | Euler V2 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. |
Euler V2: Vault Redeem
Action type: euler-v2/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 | chain ids 1, 8453 | 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 | Euler V2 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. |
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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Underlying Asset Address |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Total Assets (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Total Shares (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | Share Balance (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Asset Value (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Amount (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Received (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Assets Required (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Burned (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Assets Received (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Deposit (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Mint (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Withdraw (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Redeem (wei) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Decimals |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Available Cash |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Total Borrows |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Borrow Interest Rate |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Interest Accumulator |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Accumulated Fees |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. | ||
account | address | Yes | Account Address (address). |
Outputs
| Output | Description |
|---|---|
result | Debt |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Oracle |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Unit Of Account |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Vault Connector |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 8453 | Network. | |
contractAddress | string | Yes | Euler V2 Vault Address. |
Outputs
| Output | Description |
|---|---|
result | Creator |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Contracts
| Contract | Chain ids |
|---|---|
| Euler V2 Vault | any (the address is set on the node) |