npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@velocity-bpa/n8n-nodes-aave-protocol

v1.0.0

Published

n8n community node for Aave Protocol - lending and borrowing operations

Downloads

24

Readme

n8n-nodes-aave-protocol

[Velocity BPA Licensing Notice]

This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).

Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.

For licensing information, visit https://velobpa.com/licensing or contact [email protected].

This n8n community node provides comprehensive integration with the Aave Protocol, enabling automated DeFi lending, borrowing, and liquidity operations. With 6 core resources covering lending pools, user accounts, flash loans, liquidations, staking, and governance, it empowers developers to build sophisticated DeFi workflows and automate complex financial strategies on the Aave ecosystem.

n8n Community Node License TypeScript DeFi Ethereum Web3

Features

  • Lending Pool Operations - Deposit, withdraw, borrow, and repay assets with real-time interest calculations
  • User Account Management - Monitor positions, health factors, and account data across multiple markets
  • Flash Loan Execution - Execute complex arbitrage and liquidation strategies with uncollateralized loans
  • Automated Liquidations - Monitor and execute liquidations with customizable health factor thresholds
  • AAVE Staking Integration - Stake AAVE tokens, claim rewards, and manage staking positions
  • Governance Participation - Submit proposals, vote on governance decisions, and track proposal status
  • Multi-Network Support - Compatible with Ethereum mainnet, Polygon, Avalanche, and other Aave markets
  • Real-time Market Data - Access current interest rates, reserve data, and protocol statistics

Installation

Community Nodes (Recommended)

  1. Open n8n
  2. Go to SettingsCommunity Nodes
  3. Click Install a community node
  4. Enter n8n-nodes-aave-protocol
  5. Click Install

Manual Installation

cd ~/.n8n
npm install n8n-nodes-aave-protocol

Development Installation

git clone https://github.com/Velocity-BPA/n8n-nodes-aave-protocol.git
cd n8n-nodes-aave-protocol
npm install
npm run build
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-aave-protocol
n8n start

Credentials Setup

| Field | Description | Required | |-------|-------------|----------| | API Key | Your Web3 provider API key (Infura, Alchemy, etc.) | Yes | | Network | Target network (mainnet, polygon, avalanche) | Yes | | Private Key | Wallet private key for transaction signing | Yes | | RPC URL | Custom RPC endpoint (optional) | No |

Resources & Operations

1. Lending Pool

| Operation | Description | |-----------|-------------| | Deposit | Supply assets to earn interest | | Withdraw | Withdraw supplied assets | | Borrow | Borrow assets against collateral | | Repay | Repay borrowed assets | | Set User E-Mode | Enable efficiency mode for correlated assets | | Swap Borrow Rate | Switch between stable and variable rates | | Get Reserve Data | Fetch reserve configuration and rates |

2. User Account

| Operation | Description | |-----------|-------------| | Get Account Data | Retrieve user's account summary | | Get User Reserves | List user's supply and borrow positions | | Get Health Factor | Check account's liquidation risk | | Get Collateral | View collateral positions | | Get Debt | View debt positions | | Calculate Borrow Power | Determine available borrowing capacity |

3. Flash Loan

| Operation | Description | |-----------|-------------| | Execute Flash Loan | Borrow assets without collateral | | Calculate Premium | Get flash loan fee | | Get Available Liquidity | Check borrowable amounts | | Validate Parameters | Pre-validate flash loan request |

4. Liquidation

| Operation | Description | |-----------|-------------| | Liquidate Call | Execute liquidation of underwater position | | Get Liquidation Data | Calculate liquidation parameters | | Check Liquidation Eligibility | Verify if position can be liquidated | | Calculate Liquidation Reward | Estimate liquidation bonus |

5. Staking

| Operation | Description | |-----------|-------------| | Stake AAVE | Stake AAVE tokens in Safety Module | | Unstake | Initiate unstaking process | | Claim Rewards | Claim staking rewards | | Get Staking Data | View staking position and rewards | | Activate Cooldown | Start unstaking cooldown period |

6. Governance

| Operation | Description | |-----------|-------------| | Create Proposal | Submit new governance proposal | | Vote | Cast vote on active proposal | | Get Proposal | Fetch proposal details | | List Proposals | Get all governance proposals | | Get Voting Power | Check user's voting power | | Delegate | Delegate voting power to another address |

Usage Examples

// Monitor lending pool reserves and interest rates
{
  "resource": "LendingPool",
  "operation": "Get Reserve Data",
  "asset": "USDC",
  "network": "mainnet"
}
// Execute automated liquidation when health factor drops
{
  "resource": "Liquidation",
  "operation": "Liquidate Call",
  "collateralAsset": "ETH",
  "debtAsset": "USDC",
  "user": "0x1234567890123456789012345678901234567890",
  "debtToCover": "1000000000",
  "receiveAToken": false
}
// Perform flash loan arbitrage
{
  "resource": "FlashLoan",
  "operation": "Execute Flash Loan",
  "assets": ["USDC", "DAI"],
  "amounts": ["1000000000", "1000000000000000000000"],
  "modes": [0, 0],
  "params": "0x"
}
// Stake AAVE tokens and claim rewards
{
  "resource": "Staking",
  "operation": "Stake AAVE",
  "amount": "100000000000000000000",
  "onBehalfOf": "0x1234567890123456789012345678901234567890"
}

Error Handling

| Error | Description | Solution | |-------|-------------|----------| | Insufficient Collateral | Not enough collateral for operation | Add collateral or reduce borrow amount | | Reserve Not Active | Asset reserve is paused or frozen | Wait for reserve activation or use different asset | | Health Factor Too Low | Account close to liquidation | Repay debt or add collateral | | Flash Loan Failed | Flash loan execution reverted | Check callback logic and gas limits | | Invalid Network | Unsupported network specified | Use supported networks (mainnet, polygon, avalanche) | | Governance Not Eligible | Insufficient voting power | Acquire more AAVE or receive delegation |

Development

npm install
npm run build
npm test
npm run lint
npm run dev

Author

Velocity BPA

Licensing

This n8n community node is licensed under the Business Source License 1.1.

Free Use

Permitted for personal, educational, research, and internal business use.

Commercial Use

Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.

For licensing inquiries: [email protected]

See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.

Contributing

Contributions are welcome! Please ensure:

  1. Code follows existing style conventions
  2. All tests pass (npm test)
  3. Linting passes (npm run lint)
  4. Documentation is updated for new features
  5. Commit messages are descriptive

Support