L&B Events
What is this endpoint for?
This endpoint returns transactions (borrows, repayments, withdrawals, deposits and liquidations) registered on-chain, for the main L&B protocols.
Endpoint
Parameters
Parameter | Required | Description | Example |
---|---|---|---|
| No | Should be one or several of the currently supported blockchain. |
|
| No | Should be one or several of the currently supported L&B protocols. |
|
| No | Filter on a specific wallet addresses (comma separated). |
|
| No | Shows the data as soon as the block is validated.
(Default: |
|
| No | Filter on a specific transaction hash. |
|
| No | L&B events including the requested token. Default: all available tokens. |
|
| No | Event type: borrow, deposit, withdraw, repayment or liquidation. |
|
| No | Block height. |
|
| No | Starting block height (inclusive). |
|
| No | Ending block height (inclusive). |
|
| No | Starting time in ISO 8601 (inclusive). |
|
| No | Ending time in ISO 8601 (inclusive). |
|
| No | Returns the data in ascending or descending order.
Default: |
|
| No |
|
Fields
Field | Description | Example |
---|---|---|
| The blockchain on which the transaction happened. |
|
| The height of the block in which the transaction happened. |
|
| The timestamp of the block in which the transaction happened. |
|
| Transaction hash | --- |
| Log index of the transaction |
|
| Code of the L&B protocol. |
|
| Event type: Borrow, deposit, withdraw, repayment or liquidation. |
|
| Address of the user. |
|
| Symbol of the underlying asset. |
|
| Address of the underlying asset. |
|
| Decimals of the underlying asset. |
|
| Symbol of the receipt asset. |
|
| Address of the receipt asset. |
|
| Decimals of the receipt asset. |
|
| Amounts of the borrowed token. |
|
| Metadata linked to the event type and protocol. | More information below. |
Metadata information
Borrow event:
Field | Description | Example |
---|---|---|
| Amounts of the receipt token. |
|
| Borrow rate (at the event level or at the contract level depending on the protocol). |
|
| Stable (1) or Variable (2) |
|
| The address of user who will incur the debt. |
|
Deposit event:
Field | Description | Example |
---|---|---|
| Amounts of the receipt token. |
|
| Supply rate of the overall lending pool. |
|
| The address that will receive the receipt tokens. |
|
Withdraw event:
Field | Description | Example |
---|---|---|
| Amounts of the receipt token. |
|
| The address that will receive the underlying token. |
|
Repayment event
Field | Description | Example |
---|---|---|
| Amounts of the receipt token. |
|
| The address of user who will incur the debt. |
|
| Stable (1) or Variable (2) |
|
Liquidation event
Field | Description | Example |
---|---|---|
| Symbol of the debt asset. |
|
| Address of the debt asset. |
|
| Decimals of the debt asset. |
|
| Amount of the debt asset. |
|
| The address that triggered the liquidation transaction. |
|
| The liquidator chooses to receive the collateral's asset (False) or recept token (True). |
|
| Debt (1) or Collateral (2) |
|
Request examples
Response example
Last updated