> ## 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_fantom

> Tables in tt-contracts.ren_v1_fantom

## 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                                                  |
  | ------- | -------------------------------------------------------------------------------------- | ------------------------------------------ | ------- | ---------- | ------------ | ------------- | ------------------------------------------------------------------ | ------------------------ | ------------------------------------------------------------------ |
  | 1713    | 0x314d614e68677655354a794a31644b74546b314b586758586b70346b6b566b6b7547                 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 1          | 1000000      | 28077035      | 0xf59da2c900e9de312c3d2a40dcffc7a70bfb722fc7d618d2f70aabd37bba80d2 | 2022-01-15T22:20:41.000Z | 0x89d64016d24f9e79f03fe88edb3a65359859dc9a8a0ea457d7a29e2278312e88 |
  | 1714    | 0x314d614e68677655354a794a31644b74546b314b586758586b70346b6b566b6b7547                 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 22         | 4754985      | 28077332      | 0xf59da2c900e9de312c3d2a40dcffc7a70bfb722fc7d618d2f70aabd37bba80d2 | 2022-01-15T22:25:57.000Z | 0x7f30ff1416f7924e2499c84315958e903d3e0a177db44cebd3308b3309e53a32 |
  | 1694    | 0x62633171676d383570716e787a7a7070686d7339777279306c6737363371647573706b74337467787377 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 6          | 1658         | 28029250      | 0x6ce4a0945253c7ae806dfac5dd52089f0edddaf8e5b6ca68276983982d467137 | 2022-01-15T11:02:51.000Z | 0xa0e51a48a4e744f8c2cd01b330fdea56e458d1619d7e54e4166ba03d93693745 |
</Accordion>

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

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.ren_v1_fantom.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__nHash`        | `STRING`    | Hash of the nonce used in the RenVM cross-chain mint transaction. Hex-encoded 32-byte identifier unique to each bridge operation.                             |
</Accordion>

<Accordion title="Sample Data">
  | in\_\_n | in\_\_to                                   | address                                    | removed | in\_\_nHash                                                        | log\_index | in\_\_amount | block\_number | block\_timestamp         | transaction\_hash                                                  |
  | ------- | ------------------------------------------ | ------------------------------------------ | ------- | ------------------------------------------------------------------ | ---------- | ------------ | ------------- | ------------------------ | ------------------------------------------------------------------ |
  | 405     | 0xac23817f7e9ec7eb6b7889bdd2b50e04a44470c5 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 0xaf9836e481d5e3d706a2d103763babb66a34da0b943b30d87f7641ee568abf3f | 3          | 102736       | 16803945      | 2021-09-10T07:31:40.000Z | 0xc97dd9e556b12babdeb9df16943010f30baf85e2cbe4bb29a734bf2b791f871c |
  | 408     | 0xac23817f7e9ec7eb6b7889bdd2b50e04a44470c5 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 0x2b35480f26da3ebac87ff003d68925c376ebffabd0bce4d3ac7b5597973e1bae | 4          | 119820235    | 16820979      | 2021-09-10T13:13:09.000Z | 0x72480e266d50e91440086b92797d0190c9456b897b0802498e6926a39474985f |
  | 402     | 0xac23817f7e9ec7eb6b7889bdd2b50e04a44470c5 | 0x05cadbf3128bcb7f2b89f3dd55e5b0a036a49e20 | false   | 0xf2a2e00a748caf1cf715bed820b7884f1f12dadd2ba6d890ecca91a4fe05edf5 | 6          | 95076396     | 16789145      | 2021-09-10T02:19:37.000Z | 0xcb249e2cfe835fc0aec207c7076f90b46e82fdf4cf280bd9cece8f2bc3d0f80c |
</Accordion>

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

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

***
