WDK logoWDK documentation

Lend with Aave

Supply, withdraw, borrow, repay, and read Aave V3 account data from WDK EVM accounts.

Use the Aave lending module to supply, withdraw, borrow, repay, and read account data from WDK EVM accounts. It works with standard EVM wallets and ERC-4337 smart accounts.

Features

  • Supply/Withdraw: Add and remove supported assets from Aave pools
  • Borrow/Repay: Borrow assets and repay debt
  • Account Data: Read collateral, debt, health factor, and more
  • Quote System: Estimate fees before sending transactions
  • AA Support: Works with standard EVM and ERC‑4337 smart accounts
  • TypeScript Support: Full TypeScript definitions

Supported Networks

Works on Aave V3 supported EVM networks (e.g., Ethereum, Arbitrum, Base, Optimism, Polygon, Avalanche, BNB, Celo, Gnosis, Linea, Scroll, Soneium, Sonic, ZkSync, Metis). A working RPC provider and correct token addresses are required.

Wallet Compatibility

  • Standard EVM Wallets: @tetherto/wdk-wallet-evm
  • ERC‑4337 Smart Accounts: @tetherto/wdk-wallet-evm-erc-4337
  • Read‑Only Accounts: For quoting and reading account data without sending transactions

Key Components

  • Aave V3 Integration: Supply, withdraw, borrow, repay primitives
  • Quote Helpers: quoteSupply, quoteWithdraw, quoteBorrow, quoteRepay
  • Collateral Controls: Toggle collateral usage; set user eMode

Next Steps

On this page