Skip to Content

Aave V3 action reference

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

Aave V3 lending and borrowing protocol: supply, borrow, repay, and monitor account health

For guidance and examples see the Aave V3 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
Aave V3: Supply Assetaave-v3/supply
Aave V3: Withdraw Assetaave-v3/withdraw
Aave V3: Borrow Assetaave-v3/borrow
Aave V3: Repay Debtaave-v3/repay
Aave V3: Set Asset as Collateralaave-v3/set-collateral
Aave V3: Get User Account Dataaave-v3/get-user-account-data
Aave V3: Get User Reserve Dataaave-v3/get-user-reserve-data

Aave V3: Supply Asset

Action type: aave-v3/supply. Connection: required (web3).

Supply an asset to the Aave V3 lending pool to earn interest

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
assetaddressYesAsset Token Address (address).
amountuint256YesAmount (wei) (uint256).
onBehalfOfaddressYesOn Behalf Of Address (address).
referralCodeuint16No0Referral Code (uint16).
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.

Aave V3: Withdraw Asset

Action type: aave-v3/withdraw. Connection: required (web3).

Withdraw a supplied asset from the Aave V3 lending pool

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
assetaddressYesAsset Token Address (address).
amountuint256YesAmount (wei) (uint256).
toaddressYesRecipient 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.

Aave V3: Borrow Asset

Action type: aave-v3/borrow. Connection: required (web3).

Borrow an asset from the Aave V3 lending pool against supplied collateral

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
assetaddressYesAsset Token Address (address).
amountuint256YesAmount (wei) (uint256).
interestRateModeuint256No2Interest Rate Mode (2=Variable) (uint256).
referralCodeuint16No0Referral Code (uint16).
onBehalfOfaddressYesOn Behalf Of 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.

Aave V3: Repay Debt

Action type: aave-v3/repay. Connection: required (web3).

Repay a borrowed asset to the Aave V3 lending pool

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
assetaddressYesAsset Token Address (address).
amountuint256YesAmount (wei) (uint256).
interestRateModeuint256No2Interest Rate Mode (2=Variable) (uint256).
onBehalfOfaddressYesOn Behalf Of 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.

Aave V3: Set Asset as Collateral

Action type: aave-v3/set-collateral. Connection: required (web3).

Enable or disable a supplied asset as collateral in Aave V3

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
assetaddressYesAsset Token Address (address).
useAsCollateralboolYesUse as Collateral (bool). Toggles the entire supplied balance of this asset as collateral. There is no partial collateral in Aave V3.
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.

Aave V3: Get User Account Data

Action type: aave-v3/get-user-account-data. Connection: not required.

Get overall account health including collateral, debt, borrow power, and health factor

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
useraddressYesUser Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.totalCollateralBaseTotal Collateral (base currency)
result.totalDebtBaseTotal Debt (base currency)
result.availableBorrowsBaseAvailable Borrows (base currency)
result.currentLiquidationThresholdLiquidation Threshold (basis points)
result.ltvLoan-to-Value (basis points)
result.healthFactorHealth Factor
successWhether the operation succeeded
errorError message if the operation failed

Aave V3: Get User Reserve Data

Action type: aave-v3/get-user-reserve-data. Connection: not required.

Get per-asset position data including supplied balance, debt, and rates

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 84532, 11155111Network.
assetaddressYesAsset Token Address (address).
useraddressYesUser Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.currentATokenBalanceSupplied Balance (aToken)
result.currentStableDebtTokenBalanceStable Debt Balance
result.currentVariableDebtTokenBalanceVariable Debt Balance
result.principalStableDebtPrincipal Stable Debt
result.scaledVariableDebtScaled Variable Debt
result.stableBorrowRateStable Borrow Rate (ray)
result.liquidityRateSupply APY (ray)
result.stableRateLastUpdatedStable Rate Last Updated (timestamp)
result.usageAsCollateralEnabledUsed as Collateral
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
Aave V3 Pool1, 10, 8453, 42161, 84532, 11155111
Aave V3 Pool Data Provider1, 10, 8453, 42161, 84532, 11155111