Skip to Content

Aave V4 action reference

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

Aave V4 Hub-and-Spoke lending protocol - supply, borrow, repay and monitor positions via the Lido Spoke

For guidance and examples see the Aave V4 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 V4: Supply Assetaave-v4/supply
Aave V4: Withdraw Assetaave-v4/withdraw
Aave V4: Borrow Assetaave-v4/borrow
Aave V4: Repay Debtaave-v4/repay
Aave V4: Set Asset as Collateralaave-v4/set-collateral
Aave V4: Get Reserve IDaave-v4/get-reserve-id
Aave V4: Get User Supplied Assetsaave-v4/get-user-supplied-assets
Aave V4: Get User Debtaave-v4/get-user-debt
Aave V4: Get User Account Dataaave-v4/get-user-account-data

Aave V4: Supply Asset

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

Supply an asset to the Aave V4 Lido Spoke to earn interest. Amount is in the underlying asset’s smallest unit (wei for 18-decimal tokens).

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
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.
reserveIduint256YesReserve ID (uint256). Opaque uint256 identifier for a reserve within this Spoke. Use the Get Reserve ID action to resolve from (hub, assetId).
amountuint256YesAmount (wei) (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 V4: Withdraw Asset

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

Withdraw a supplied asset from the Aave V4 Lido Spoke

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
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.
reserveIduint256YesReserve ID (uint256).
amountuint256YesAmount (wei) (uint256).
onBehalfOfaddressYesRecipient 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 V4: Borrow Asset

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

Borrow an asset from the Aave V4 Lido Spoke against supplied collateral. V4 uses a single rate model (no stable/variable mode).

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
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.
reserveIduint256YesReserve ID (uint256).
amountuint256YesAmount (wei) (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 V4: Repay Debt

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

Repay a borrowed asset to the Aave V4 Lido Spoke

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
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.
reserveIduint256YesReserve ID (uint256).
amountuint256YesAmount (wei) (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 V4: Set Asset as Collateral

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

Enable or disable a supplied reserve as collateral in the Aave V4 Lido Spoke

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
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.
reserveIduint256YesReserve ID (uint256).
usingAsCollateralboolYesUse as Collateral (bool). Toggles the entire supplied balance of this reserve as collateral. There is no partial collateral in Aave V4.
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 V4: Get Reserve ID

Action type: aave-v4/get-reserve-id. Connection: not required.

Resolve an asset to its reserveId within this Spoke, given the Hub address and the Hub’s assetId for that asset

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
hubaddressYesHub Address (address).
assetIduint256YesHub Asset ID (uint256). Asset identifier within the Hub. Use the Hub’s getAssetId(underlying) to resolve from an ERC-20 address.

Outputs

OutputDescription
resultReserve ID
successWhether the operation succeeded
errorError message if the operation failed

Aave V4: Get User Supplied Assets

Action type: aave-v4/get-user-supplied-assets. Connection: not required.

Get the amount of underlying asset supplied by a user for a given reserve

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
reserveIduint256YesReserve ID (uint256).
useraddressYesUser Address (address).

Outputs

OutputDescription
resultSupplied Amount (underlying)
successWhether the operation succeeded
errorError message if the operation failed

Aave V4: Get User Debt

Action type: aave-v4/get-user-debt. Connection: not required.

Get the debt of a user for a given reserve, split into drawn debt and premium debt. Total debt = drawn + premium.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
reserveIduint256YesReserve ID (uint256).
useraddressYesUser Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.unnamedOutput0Drawn Debt (underlying)
result.unnamedOutput1Premium Debt (underlying)
successWhether the operation succeeded
errorError message if the operation failed

Aave V4: Get User Account Data

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

Get overall account health including collateral value, debt, health factor, and risk premium. Returns a struct - access individual fields via dotted path (e.g. result.healthFactor).

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
useraddressYesUser Address (address).

Outputs

OutputDescription
resultAccount Data (struct: riskPremium, avgCollateralFactor, healthFactor, totalCollateralValue, totalDebtValueRay, activeCollateralCount, borrowCount)
result.riskPremiumReturn value: uint256 (BigInt)
result.avgCollateralFactorReturn value: uint256 (BigInt)
result.healthFactorReturn value: uint256 (BigInt)
result.totalCollateralValueReturn value: uint256 (BigInt)
result.totalDebtValueRayReturn value: uint256 (BigInt)
result.activeCollateralCountReturn value: uint256 (BigInt)
result.borrowCountReturn value: uint256 (BigInt)
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
Aave V4 Lido Spoke1