Skip to main content
The solana.lending.repayments table contains Solana lending repayment events. This table tracks all loan repayment activities across supported lending protocols on Solana. Use this table to analyze repayment patterns, track loan closure rates, and understand the health of the lending ecosystem.

Table Columns

Unique Key: unique_id
Column NameData TypeDescription
projectVARCHARName of the lending project.
protocolVARCHARUnderlying protocol that the lending protocol is utilizing.
actionVARCHARType of lending action.
lending_idVARCHARAddress of the lending market or bank.
lending_reserve_idVARCHARAddress of the specific lending reserve.
from_addressVARCHARAddress of the token account from which tokens were transferred.
token_acc_fromVARCHARToken account address from which tokens were transferred.
to_addressVARCHARAddress of the token account to which tokens were transferred.
token_acc_toVARCHARToken account address to which tokens were transferred.
mintVARCHARAddress of the token being repaid.
nameVARCHARName of the token being repaid.
symbolVARCHARSymbol of the token being repaid.
decimalsNUMBERNumber of decimals of the token being repaid.
raw_amountVARCHARRaw amount of tokens repaid.
amountFLOATNormalized amount of tokens repaid.
usd_amountFLOATUSD value of the tokens repaid at the time of the transaction.
signerVARCHARAddress of the account that signed the transaction.
block_slotNUMBERSolana block slot number.
block_heightNUMBERBlock height of the transaction.
block_timestampTIMESTAMP_NTZ(9)Timestamp of the block.
block_hashVARCHARHash of the block.
txn_idVARCHARTransaction ID.
txn_indexNUMBERIndex of the transaction in the block.
instruction_indexNUMBERIndex of the instruction in the transaction.
inner_instruction_indexNUMBERIndex of the inner instruction.
pseudo_instruction_orderNUMBEROrder of the instruction for sorting purposes.
liquidity_vaultVARCHARAddress of the liquidity vault for the lending market.
unique_idVARCHARUnique identifier for the event.
_created_atTIMESTAMP_NTZ(9)Timestamp of when the event was created.
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the event was last updated.

Sample Query

  • Recent Repayments
  • Daily Repayment Volume
Get recent repayment events with essential details:
select
  project,
  protocol,
  symbol,
  amount,
  usd_amount,
  from_address,
  block_timestamp
from solana.lending.repayments
where block_timestamp >= current_timestamp - interval '7 days'
order by block_timestamp desc
limit 100