WDK logoWDK documentation

Get Started

Install the package, create AaveProtocolEvm, and review prerequisites.

This guide covers installation, creating the lending client, and prerequisites. Use Node.js and npm on your machine.

Installation

Run the following to install @tetherto/wdk-protocol-lending-aave-evm:

Install with npm
npm install @tetherto/wdk-protocol-lending-aave-evm

Create the lending client

You can attach Aave V3 actions to an EVM account from WalletAccountEvm with new AaveProtocolEvm(account) on AaveProtocolEvm:

Create AaveProtocolEvm
import AaveProtocolEvm from '@tetherto/wdk-protocol-lending-aave-evm'
import { WalletAccountEvm } from '@tetherto/wdk-wallet-evm'

const account = new WalletAccountEvm(seedPhrase, "0'/0/0", {
  provider: 'https://ethereum-rpc.publicnode.com'
})

const aave = new AaveProtocolEvm(account)

Prerequisites

Token balance: To supply or repay, hold the ERC-20 in the wallet. Gas: Keep native balance (ETH on Ethereum, and so on) for transaction fees unless you use sponsored ERC-4337 flows. Networks: This module targets mainnet deployments; confirm your RPC matches supported networks.

Use contract addresses for Aave-supported reserves. On Ethereum mainnet, USD₮ uses 0xdAC17F958D2ee523a2206206994597C13D831ec7 (use USDT in code identifiers and literals).

Next Steps

On this page