Definition

DeFi Transaction features provide in-depth views of lending protocols and the way they operate. Protocol: Shows what is happening in the protocol over a fixed period. This may include:
  • Protocol actions (collateral, deposits, repays, borrows, withdraws, liquidations)
  • Asset IDs, asset symbols, or markets
  • Borrow Rates or Debts
  • Wallet addresses of the user or repayer.
Asset/Pool: Retrieves information about all of the actions that occurred for a specific asset on a protocol within a certain period. This may include:
  • Asset actions (collateral, deposits, repays, borrows, withdraws, liquidations)
  • User
  • Swaps or mints
  • Amount of token(s)

Wallet: Retrieves information about the actions taken by a specific wallet/user on the protocol within a certain period. This may include:
  • Wallet actions (collateral, deposits, repays, borrows, withdraws, liquidations)
  • Borrow Rates or Debts
  • Transaction amounts
  • Asset IDs, asset symbols, or markets

Governance: Retrieves information about the governance actions that occurred for the protocol within a period. This may include:
  • Vote support (true or false)
  • Voting Power
  • User
  • Proposal ID or description

Details

Not every lending protocol has every lens, and different exchanges may use differing terminology. For example, the Asset lens for Aave is the structural equivalent of the Pool lens for Uniswap v2, since Uniswap uses asset pairs (asset_asset) to create a pool.

API Endpoints

/defi/lending/{protocolId}/protocol /defi/lending/{protocolId}/assets/{asset} /defi/lending/{protocolId}/wallets/{walletAddress} /defi/lending/{protocolId}/governance

Availability

DeFi Lens endpoints are available via REST API for historical (time series) data, which goes back to the creation date of the lending protocol.