> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Deposits

> Deposit events for BSC liquid staking

The `bsc.liquid_staking.deposits` table captures when users deposit ETH (Binance-Peg Ethereum) into Binance liquid staking and receive wBETH tokens in return.

<Note>
  The deposited asset is ETH (Binance-Peg Ethereum), not BNB.
</Note>

Each row represents a single deposit event with token metadata, normalized amounts, and USD prices.

### Table Columns

Unique Key: `transaction_hash, log_index`

| Column Name                 | Data Type         | Description                                                           |
| --------------------------- | ----------------- | --------------------------------------------------------------------- |
| project                     | VARCHAR           | Name of the liquid staking protocol (binance)                         |
| action\_type                | VARCHAR           | Type of action (always 'user\_deposit' for this table)                |
| contract\_type              | VARCHAR           | Type of staking token received (wBETH)                                |
| depositor                   | VARCHAR           | Address of the user who made the deposit                              |
| native\_token\_address      | VARCHAR           | Address representing the deposited asset (ETH)                        |
| native\_token\_name         | VARCHAR           | Name of the native token (Ether)                                      |
| native\_token\_symbol       | VARCHAR           | Symbol of the native token (ETH)                                      |
| native\_token\_decimals     | INTEGER           | Number of decimals for the native token (18)                          |
| native\_token\_amount\_raw  | VARCHAR           | Amount of ETH deposited (raw wei amount)                              |
| native\_token\_amount       | FLOAT             | Amount of ETH deposited (normalized)                                  |
| native\_token\_amount\_usd  | FLOAT             | USD value of ETH deposited (amount × price)                           |
| native\_token\_price\_usd   | FLOAT             | Price of native token in USD at block timestamp (hourly granularity)  |
| staking\_token\_address     | VARCHAR           | Contract address of the liquid staking token received (wBETH)         |
| staking\_token\_name        | VARCHAR           | Name of the liquid staking token                                      |
| staking\_token\_symbol      | VARCHAR           | Symbol of the liquid staking token (wBETH)                            |
| staking\_token\_decimals    | INTEGER           | Number of decimals for the staking token                              |
| staking\_token\_amount\_raw | VARCHAR           | Amount of liquid staking tokens received (raw wei amount)             |
| staking\_token\_amount      | FLOAT             | Amount of liquid staking tokens received (normalized)                 |
| staking\_token\_amount\_usd | FLOAT             | USD value of staking tokens received (amount × price)                 |
| staking\_token\_price\_usd  | FLOAT             | Price of staking token in USD at block timestamp (hourly granularity) |
| block\_timestamp            | TIMESTAMP\_NTZ(9) | Timestamp of the block when the deposit occurred                      |
| block\_number               | INTEGER           | Block number when the deposit occurred                                |
| transaction\_hash           | VARCHAR           | Hash of the transaction containing the deposit                        |
| log\_index                  | INTEGER           | Index of the log within the transaction                               |
| contract\_address           | VARCHAR           | Address of the contract that processed the deposit                    |
| \_created\_at               | TIMESTAMP\_NTZ(9) | Timestamp when the record was first created                           |
| \_updated\_at               | TIMESTAMP\_NTZ(9) | Timestamp when the record was last updated                            |

***

### Sample Query

Last 7 days deposits:

```sql theme={null}
SELECT *
FROM bsc.liquid_staking.deposits
WHERE block_timestamp >= CURRENT_DATE - INTERVAL '7 days'
ORDER BY block_timestamp DESC
```
