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

# ren_v1_ethereum

> Tables in tt-contracts.ren_v1_ethereum

## Tables

### BTCGateway\_LogBurn\_event

Burn events emitted by RenVM's BTC Gateway contract when wrapped Bitcoin (renBTC) is burned to initiate cross-chain transfers back to the Bitcoin network. Records the amount burned, destination Bitcoin address, and nonce for tracking redemption operations.

<Accordion title="Columns">
  | Column             | Type        | Description                                                                                                                                                   |
  | ------------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `block_timestamp`  | `TIMESTAMP` | Timestamp when the block was produced. UTC timezone, millisecond precision.                                                                                   |
  | `block_number`     | `INT64`     | Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block's position in the blockchain.          |
  | `transaction_hash` | `STRING`    | Unique identifier for the transaction. 66-character hex string including 0x prefix.                                                                           |
  | `log_index`        | `INT64`     | Position of the event within the block's transaction logs. Zero-indexed integer representing the sequential order of log emission.                            |
  | `address`          | `STRING`    | Contract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.                                                                       |
  | `removed`          | `BOOL`      | Boolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.                                                  |
  | `in__to`           | `STRING`    | Destination address for the transaction or transfer. Hex-encoded, 0x-prefixed, 42-character string.                                                           |
  | `in__amount`       | `STRING`    | Amount of tokens involved in the transaction. String-encoded integer representing token quantity in smallest unit (wei for ETH, base units for ERC20 tokens). |
  | `in__n`            | `STRING`    | Sequential identifier for mint or burn operations within the RenVM gateway contract. String-encoded integer.                                                  |
  | `in__indexedTo`    | `STRING`    | Keccak-256 hash of the destination address. 66-character hex string including 0x prefix.                                                                      |
</Accordion>

<Accordion title="Sample Data">
  | in\_\_n | in\_\_to                                                                               | address                                    | removed | log\_index | in\_\_amount  | block\_number | in\_\_indexedTo                                                    | block\_timestamp         | transaction\_hash                                                  |
  | ------- | -------------------------------------------------------------------------------------- | ------------------------------------------ | ------- | ---------- | ------------- | ------------- | ------------------------------------------------------------------ | ------------------------ | ------------------------------------------------------------------ |
  | 731     | 0x4451505879473455634252746b4866463437694b5471385a7948793266757a354e52                 | 0x2362843745615368f4ef0a43d7502353649c0783 | false   | 414        | 4703417949473 | 14330916      | 0x46b4dd5ddfbc638ca5b49ea2f18dba70754aade052d1744476ae2e29bc9d3b70 | 2022-03-06T03:25:42.000Z | 0x5c116719b4cbc9b012c30048e87961fcc25b9eacc15681e93d11e06e0036c1d9 |
  | 730     | 0x4451505879473455634252746b4866463437694b5471385a7948793266757a354e52                 | 0x2362843745615368f4ef0a43d7502353649c0783 | false   | 541        | 3709677081567 | 14330819      | 0x46b4dd5ddfbc638ca5b49ea2f18dba70754aade052d1744476ae2e29bc9d3b70 | 2022-03-06T03:03:44.000Z | 0x51a20b0fa75b458e83226d8c4b7d836f0e01ab354a0c498fdebbfd43758f8395 |
  | 396     | 0x71726e3938673237776d3032357161357861363773676664783064376c6571657335717a7a3364356c6b | 0xcc4ff5b8a4a7adb35f00ff0cbf53784e07c3c52f | false   | 435        | 49135913      | 14335629      | 0xbe52e45b1dfbc36590b8d4132e22258c692badf2831626716df42c24aaeac446 | 2022-03-06T21:09:25.000Z | 0xf7b824d19690f1ad83d386d7f1b812bc17152150ae1dc263deff3bcce29c9f80 |
</Accordion>

<Accordion title="Example Query">
  **Query with partition filter**

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.ren_v1_ethereum.BTCGateway_LogBurn_event`
  WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
  LIMIT 100
  ```
</Accordion>

***

### BTCGateway\_LogMint\_event

RenVM BTCGateway LogMint events recording cross-chain Bitcoin minting operations onto EVM chains. Contains recipient address, minted amount in satoshis, nonce identifier, and hash parameters for tracking Bitcoin-to-wrapped-BTC bridge transactions.

<Accordion title="Columns">
  | Column                  | Type        | Description                                                                                                                                                            |
  | ----------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `block_timestamp`       | `TIMESTAMP` | Timestamp when the block was produced. UTC timezone, millisecond precision.                                                                                            |
  | `block_number`          | `INT64`     | Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block's position in the blockchain.                   |
  | `transaction_hash`      | `STRING`    | Unique identifier for the transaction. 66-character hex string including 0x prefix.                                                                                    |
  | `log_index`             | `INT64`     | Position of the event within the block's transaction logs. Zero-indexed integer representing the sequential order of log emission.                                     |
  | `address`               | `STRING`    | Contract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.                                                                                |
  | `removed`               | `BOOL`      | Boolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.                                                           |
  | `in__to`                | `STRING`    | Destination address for the transaction or transfer. Hex-encoded, 0x-prefixed, 42-character string.                                                                    |
  | `in__amount`            | `STRING`    | Amount of tokens involved in the transaction. String-encoded integer representing token quantity in smallest unit (wei for ETH, base units for ERC20 tokens).          |
  | `in__n`                 | `STRING`    | Sequential identifier for mint or burn operations within the RenVM gateway contract. String-encoded integer.                                                           |
  | `in__signedMessageHash` | `STRING`    | Keccak-256 hash of the signed message authorizing this mint operation on the RenVM bridge. Used to verify the authenticity of cross-chain BTC transfers into Ethereum. |
</Accordion>

<Accordion title="Sample Data">
  | in\_\_n | in\_\_to                                   | address                                    | removed | log\_index | in\_\_amount | block\_number | block\_timestamp         | transaction\_hash                                                  | in\_\_signedMessageHash                                            |
  | ------- | ------------------------------------------ | ------------------------------------------ | ------- | ---------- | ------------ | ------------- | ------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
  | 151     | 0x32666b64e9fd0f44916e1378efb2cfa3b3b96e80 | 0xc3bbd5adb611dd74eca6123f05b18acc886e122d | false   | 384        | 668111220    | 10903094      | 2020-09-21T02:32:34.000Z | 0x63464c3c0df7906cfcdc46bcf3e8a4f14a26718175ced4518d859705fbefe663 | 0xc3dbe7263f094cb52c07c567dcaa477a095061b1e616a558529de55e8378f9cd |
  | 152     | 0x32666b64e9fd0f44916e1378efb2cfa3b3b96e80 | 0xc3bbd5adb611dd74eca6123f05b18acc886e122d | false   | 172        | 43955930070  | 10907750      | 2020-09-21T19:32:13.000Z | 0xf58e7cd5ef2923681e612ab9f935cae6b05f90d4b97ac6939b0fd3124d435d6e | 0x988354efc71fb9ec8836672cb777f15defe61651ffb160c41fd79dd97f73cfca |
  | 10992   | 0x32666b64e9fd0f44916e1378efb2cfa3b3b96e80 | 0xe4b679400f0f267212d5d812b95f58c83243ee71 | false   | 66         | 135294570    | 10907265      | 2020-09-21T17:47:57.000Z | 0xd9649d8919592773d6d611eb274758f7f061dee7fefd34439a1c6d6ffe21c650 | 0x55ed40f32891a91124d3534a073d19bfb1e4883446b7d9f655640d0e97511943 |
</Accordion>

<Accordion title="Example Query">
  **Query with partition filter**

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.ren_v1_ethereum.BTCGateway_LogMint_event`
  WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
  LIMIT 100
  ```
</Accordion>

***
