.evault_call_liquidate`](https://dune.com/data/euler_v2_ethereum.evault_call_liquidate) | Liquidation function calls |
**Example — Euler v2 Deposits Across Chains (30d):**
```sql theme={null}
SELECT
'ethereum' AS chain,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_deposits
FROM euler_v2_ethereum.evault_evt_deposit
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
UNION ALL
SELECT
'base' AS chain,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_deposits
FROM euler_v2_base.evault_evt_deposit
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
UNION ALL
SELECT
'arbitrum' AS chain,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_deposits
FROM euler_v2_arbitrum.evault_evt_deposit
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
ORDER BY day DESC, chain
```
#### Euler v1 (Legacy — Ethereum Only)
**Namespace:** `euler_ethereum.*`
| Table | Description |
| - | - |
| [`euler_ethereum.euler_evt_deposit`](https://dune.com/data/euler_ethereum.euler_evt_deposit) | Deposit events |
| [`euler_ethereum.euler_evt_withdraw`](https://dune.com/data/euler_ethereum.euler_evt_withdraw) | Withdrawal events |
| [`euler_ethereum.euler_evt_borrow`](https://dune.com/data/euler_ethereum.euler_evt_borrow) | Borrow events |
| [`euler_ethereum.euler_evt_repay`](https://dune.com/data/euler_ethereum.euler_evt_repay) | Repayment events |
| [`euler_ethereum.euler_evt_liquidation`](https://dune.com/data/euler_ethereum.euler_evt_liquidation) | Liquidation events |
| [`euler_ethereum.euler_evt_marketactivated`](https://dune.com/data/euler_ethereum.euler_evt_marketactivated) | New market activation events |
| [`euler_ethereum.euler_evt_assetstatus`](https://dune.com/data/euler_ethereum.euler_evt_assetstatus) | Asset status updates |
#### Euler Plasma (Vault Framework)
Advanced vault infrastructure with \~20+ tables covering controller status, account checks, operator management, and batch operations.
**Namespace:** `euler_plasma.*`
**Key Event Tables:**
| Table | Description |
| - | - |
| [`euler_plasma.vault_evt_controllerstatus`](https://dune.com/data/euler_plasma.vault_evt_controllerstatus) | Controller status changes |
| [`euler_plasma.vault_evt_accountstatuscheck`](https://dune.com/data/euler_plasma.vault_evt_accountstatuscheck) | Account status verification events |
| [`euler_plasma.vault_evt_vaultstatuscheck`](https://dune.com/data/euler_plasma.vault_evt_vaultstatuscheck) | Vault status verification events |
| [`euler_plasma.vault_evt_operatorstatus`](https://dune.com/data/euler_plasma.vault_evt_operatorstatus) | Operator permission changes |
| [`euler_plasma.vault_evt_ownerregistered`](https://dune.com/data/euler_plasma.vault_evt_ownerregistered) | Owner registration events |
**Key Call Tables:**
| Table | Description |
| - | - |
| [`euler_plasma.vault_call_enablecollateral` / `disablecollateral`](https://dune.com/data/euler_plasma.vault_call_enablecollateral) | Collateral management |
| [`euler_plasma.vault_call_enablecontroller` / `disablecontroller`](https://dune.com/data/euler_plasma.vault_call_enablecontroller) | Controller management |
| [`euler_plasma.vault_call_setoperator` / `setaccountoperator`](https://dune.com/data/euler_plasma.vault_call_setoperator) | Operator permissions |
| [`euler_plasma.vault_call_batch` / `batchrevert`](https://dune.com/data/euler_plasma.vault_call_batch) | Batch operations |
| [`euler_plasma.vault_call_controlcollateral`](https://dune.com/data/euler_plasma.vault_call_controlcollateral) | Collateral control |
***
### Aave v3
Aave v3 is a lending protocol where each reserve acts as a pool accepting deposits and issuing borrows. While not a "vault" protocol in the MetaMorpho sense, Aave pools function similarly for deposit/withdraw tracking and are commonly analyzed alongside vault protocols.
**Namespace:** `aave_v3_multichain.*`
**Chains:** Ethereum, Base, Arbitrum, Avalanche, BNB, Celo, Fantom, Gnosis, Mantle, MegaETH, Optimism, Polygon, Sonic, zkSync
**L2-specific tables:** `aave_v3_multichain.l2pool_*` for Arbitrum, Base, Ink, Linea, Mantle, Scroll
| Table | Description |
| - | - |
| [`aave_v3_multichain.pool_evt_supply`](https://dune.com/data/aave_v3_multichain.pool_evt_supply) | Deposit/supply events |
| [`aave_v3_multichain.pool_evt_withdraw`](https://dune.com/data/aave_v3_multichain.pool_evt_withdraw) | Withdrawal events |
| [`aave_v3_multichain.pool_evt_borrow`](https://dune.com/data/aave_v3_multichain.pool_evt_borrow) | Borrow events |
| [`aave_v3_multichain.pool_evt_repay`](https://dune.com/data/aave_v3_multichain.pool_evt_repay) | Repayment events |
| [`aave_v3_multichain.pool_evt_liquidationcall`](https://dune.com/data/aave_v3_multichain.pool_evt_liquidationcall) | Liquidation events |
| [`aave_v3_multichain.pool_evt_flashloan`](https://dune.com/data/aave_v3_multichain.pool_evt_flashloan) | Flash loan events |
| [`aave_v3_multichain.pool_evt_reservedataupdated`](https://dune.com/data/aave_v3_multichain.pool_evt_reservedataupdated) | Reserve data updates (rates, indices) |
**Example — Supply Events by Chain (30d):**
```sql theme={null}
SELECT
chain,
COUNT(*) AS num_supplies,
COUNT(DISTINCT "user") AS unique_suppliers
FROM aave_v3_multichain.pool_evt_supply
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
ORDER BY num_supplies DESC
```
> [!NOTE]
>
> For normalized lending data across Aave and other protocols, see the [Lending](/data-catalog/curated/lending/overview) curated tables which provide a unified schema.
***
### Fluid
Fluid uses a tiered vault architecture (T1–T4) for borrowing with different collateral and debt configurations.
**Namespace:** `fluid_multichain.*`
**Chains:** Arbitrum, Base, BNB, Ethereum, Plasma, Polygon
#### Vault Operations
| Table | Description |
| - | - |
| [`fluid_multichain.fluidvaultt1_evt_logoperate`](https://dune.com/data/fluid_multichain.fluidvaultt1_evt_logoperate) | T1 vault operations (single collateral, single debt) |
| [`fluid_multichain.fluidvaultt2_evt_logoperate`](https://dune.com/data/fluid_multichain.fluidvaultt2_evt_logoperate) | T2 vault operations (single collateral, multi debt) |
| [`fluid_multichain.fluidvaultt3_evt_logoperate`](https://dune.com/data/fluid_multichain.fluidvaultt3_evt_logoperate) | T3 vault operations (multi collateral, single debt) |
| [`fluid_multichain.fluidvaultt4_evt_logoperate`](https://dune.com/data/fluid_multichain.fluidvaultt4_evt_logoperate) | T4 vault operations (multi collateral, multi debt) |
#### Liquidations
| Table | Description |
| - | - |
| [`fluid_multichain.fluidvaultt1_evt_logliquidate`](https://dune.com/data/fluid_multichain.fluidvaultt1_evt_logliquidate) | T1 liquidations |
| [`fluid_multichain.fluidvaultt2_evt_logliquidate`](https://dune.com/data/fluid_multichain.fluidvaultt2_evt_logliquidate) | T2 liquidations |
| [`fluid_multichain.fluidvaultt3_evt_logliquidate`](https://dune.com/data/fluid_multichain.fluidvaultt3_evt_logliquidate) | T3 liquidations |
| [`fluid_multichain.fluidvaultt4_evt_logliquidate`](https://dune.com/data/fluid_multichain.fluidvaultt4_evt_logliquidate) | T4 liquidations |
#### Other Events
| Table | Description |
| - | - |
| [`fluid_multichain.fluidvaultt1_evt_logabsorb`](https://dune.com/data/fluid_multichain.fluidvaultt1_evt_logabsorb) | T1 bad debt absorptions |
| [`fluid_multichain.fluidvaultt4_evt_logupdateexchangeprice`](https://dune.com/data/fluid_multichain.fluidvaultt4_evt_logupdateexchangeprice) | Exchange price updates |
| [`fluid_multichain.fluidvaultfactory_evt_vaultdeployed`](https://dune.com/data/fluid_multichain.fluidvaultfactory_evt_vaultdeployed) | Vault deployment events |
**Example — Vault Operations by Type (30d):**
```sql theme={null}
SELECT
'T1' AS vault_type,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_operations
FROM fluid_multichain.fluidvaultt1_evt_logoperate
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
UNION ALL
SELECT
'T2' AS vault_type,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_operations
FROM fluid_multichain.fluidvaultt2_evt_logoperate
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
UNION ALL
SELECT
'T3' AS vault_type,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_operations
FROM fluid_multichain.fluidvaultt3_evt_logoperate
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
UNION ALL
SELECT
'T4' AS vault_type,
date_trunc('day', evt_block_time) AS day,
COUNT(*) AS num_operations
FROM fluid_multichain.fluidvaultt4_evt_logoperate
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1, 2
ORDER BY day DESC, vault_type
```
***
### Kamino (Solana)
Kamino vaults on Solana allocate deposits into lending reserves with automated strategy management.
**Namespace:** `kamino_vault_solana.*`
**Chain:** Solana
#### Event Tables
| Table | Description |
| - | - |
| [`kamino_vault_solana.kamino_vault_evt_depositresultevent`](https://dune.com/data/kamino_vault_solana.kamino_vault_evt_depositresultevent) | Deposit results (shares minted, tokens deposited) |
| [`kamino_vault_solana.kamino_vault_evt_withdrawresultevent`](https://dune.com/data/kamino_vault_solana.kamino_vault_evt_withdrawresultevent) | Withdraw results (shares burned, tokens returned) |
| [`kamino_vault_solana.kamino_vault_evt_deposituseratabalanceevent`](https://dune.com/data/kamino_vault_solana.kamino_vault_evt_deposituseratabalanceevent) | User ATA balance after deposit |
| [`kamino_vault_solana.kamino_vault_evt_sharestowithdrawevent`](https://dune.com/data/kamino_vault_solana.kamino_vault_evt_sharestowithdrawevent) | Shares available for withdrawal |
#### Call Tables
| Table | Description |
| - | - |
| [`kamino_vault_solana.kamino_vault_call_deposit`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_deposit) | Deposit into vault |
| [`kamino_vault_solana.kamino_vault_call_withdraw`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_withdraw) | Withdraw from vault |
| [`kamino_vault_solana.kamino_vault_call_withdrawfromavailable`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_withdrawfromavailable) | Withdraw from available liquidity |
| [`kamino_vault_solana.kamino_vault_call_buy`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_buy) | Buy vault shares |
| [`kamino_vault_solana.kamino_vault_call_sell`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_sell) | Sell vault shares |
| [`kamino_vault_solana.kamino_vault_call_invest`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_invest) | Invest vault funds into reserve |
| [`kamino_vault_solana.kamino_vault_call_initvault`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_initvault) | Initialize new vault |
| [`kamino_vault_solana.kamino_vault_call_updatereserveallocation`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_updatereserveallocation) | Update reserve allocation weights |
| [`kamino_vault_solana.kamino_vault_call_removeallocation`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_removeallocation) | Remove a reserve allocation |
| [`kamino_vault_solana.kamino_vault_call_withdrawpendingfees`](https://dune.com/data/kamino_vault_solana.kamino_vault_call_withdrawpendingfees) | Withdraw pending fees |
**Example — Kamino Vault Deposits on Solana (30d):**
```sql theme={null}
SELECT
date_trunc('day', call_block_time) AS day,
COUNT(*) AS num_deposits,
COUNT(DISTINCT tx_signer) AS unique_depositors
FROM kamino_vault_solana.kamino_vault_call_deposit
WHERE call_block_time >= NOW() - INTERVAL '30' DAY
AND call_success = true
GROUP BY 1
ORDER BY 1 DESC
```
***
### Lido (Liquid Staking)
Lido provides liquid staking for ETH via stETH. While primarily a staking protocol, Lido's architecture includes vault-related components (VaultFactory, VaultHub, StakingVault) under the `lido_ethereum` namespace.
**Namespace:** `lido_ethereum.*`
**Chain:** Ethereum
#### stETH Core (Staking Activity)
| Table | Description |
| - | - |
| [`lido_ethereum.steth_evt_submitted`](https://dune.com/data/lido_ethereum.steth_evt_submitted) | ETH staking deposits (stETH minted) |
| [`lido_ethereum.steth_evt_transfer`](https://dune.com/data/lido_ethereum.steth_evt_transfer) | stETH token transfers |
| [`lido_ethereum.steth_evt_transfershares`](https://dune.com/data/lido_ethereum.steth_evt_transfershares) | Share-based transfers |
| [`lido_ethereum.steth_evt_ethdistributed`](https://dune.com/data/lido_ethereum.steth_evt_ethdistributed) | ETH rewards distribution |
| [`lido_ethereum.steth_evt_tokenrebased`](https://dune.com/data/lido_ethereum.steth_evt_tokenrebased) | Rebase events (balance updates) |
| [`lido_ethereum.steth_evt_elrewardsreceived`](https://dune.com/data/lido_ethereum.steth_evt_elrewardsreceived) | Execution layer rewards |
#### Withdrawal Queue
| Table | Description |
| - | - |
| [`lido_ethereum.withdrawalqueueerc721_evt_withdrawalrequested`](https://dune.com/data/lido_ethereum.withdrawalqueueerc721_evt_withdrawalrequested) | Withdrawal request events |
| [`lido_ethereum.withdrawalqueueerc721_evt_withdrawalclaimed`](https://dune.com/data/lido_ethereum.withdrawalqueueerc721_evt_withdrawalclaimed) | Claimed withdrawal events |
| [`lido_ethereum.withdrawalqueueerc721_evt_withdrawalsfinalized`](https://dune.com/data/lido_ethereum.withdrawalqueueerc721_evt_withdrawalsfinalized) | Finalized withdrawal batches |
#### Vault Infrastructure
| Table | Description |
| - | - |
| [`lido_ethereum.vaultfactory_evt_vaultcreated`](https://dune.com/data/lido_ethereum.vaultfactory_evt_vaultcreated) | New vault creation events |
| [`lido_ethereum.vaulthub_evt_vaultconnected`](https://dune.com/data/lido_ethereum.vaulthub_evt_vaultconnected) | Vault connected to hub |
| [`lido_ethereum.vaulthub_evt_vaultrebalanced`](https://dune.com/data/lido_ethereum.vaulthub_evt_vaultrebalanced) | Vault rebalancing events |
| [`lido_ethereum.vaulthub_evt_vaultreportapplied`](https://dune.com/data/lido_ethereum.vaulthub_evt_vaultreportapplied) | Vault performance reports |
| [`lido_ethereum.vaulthub_evt_mintedsharesonvault`](https://dune.com/data/lido_ethereum.vaulthub_evt_mintedsharesonvault) | Shares minted on vault |
| [`lido_ethereum.vaulthub_evt_burnedsharesonvault`](https://dune.com/data/lido_ethereum.vaulthub_evt_burnedsharesonvault) | Shares burned on vault |
| [`lido_ethereum.vaulthub_evt_vaultfeesupdated`](https://dune.com/data/lido_ethereum.vaulthub_evt_vaultfeesupdated) | Fee configuration updates |
| [`lido_ethereum.stakingvault_evt_etherfunded`](https://dune.com/data/lido_ethereum.stakingvault_evt_etherfunded) | ETH funded to staking vault |
| [`lido_ethereum.stakingvault_evt_etherwithdrawn`](https://dune.com/data/lido_ethereum.stakingvault_evt_etherwithdrawn) | ETH withdrawn from staking vault |
| [`lido_ethereum.stakingvault_evt_etherstaged`](https://dune.com/data/lido_ethereum.stakingvault_evt_etherstaged) | ETH staged for operations |
**Example — Lido stETH Deposits vs Withdrawal Requests (30d):**
```sql theme={null}
WITH deposits AS (
SELECT
date_trunc('day', evt_block_time) AS day,
SUM(CAST(amount AS DOUBLE)) / 1e18 AS eth_deposited
FROM lido_ethereum.steth_evt_submitted
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
),
withdrawals AS (
SELECT
date_trunc('day', evt_block_time) AS day,
SUM(CAST(amountOfStETH AS DOUBLE)) / 1e18 AS steth_withdrawal_requested
FROM lido_ethereum.withdrawalqueueerc721_evt_withdrawalrequested
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
)
SELECT
COALESCE(d.day, w.day) AS day,
COALESCE(d.eth_deposited, 0) AS eth_deposited,
COALESCE(w.steth_withdrawal_requested, 0) AS steth_withdrawal_requested,
COALESCE(d.eth_deposited, 0) - COALESCE(w.steth_withdrawal_requested, 0) AS net_flow
FROM deposits d
FULL OUTER JOIN withdrawals w ON d.day = w.day
ORDER BY day DESC
```
***
## Common Analysis Patterns
### Deposits & Withdrawals
Track capital inflows and outflows per vault or protocol. Most protocols emit separate deposit and withdraw events with amount fields.
### TVL Estimation
Aggregate deposits minus withdrawals over time. For USD denomination, join with `prices.day`, `prices.hour`, or `prices.minute` depending on the granularity needed. Accurate point-in-time TVL will improve once the [Balances](/data-catalog/curated/balances/overview) tables are fully available.
### Volume Tracking
Sum deposit and withdrawal amounts over time intervals to measure vault activity and capital velocity.
### Unique Depositors
Count distinct wallet addresses interacting with vault deposit events to track user adoption.
### Reallocation Analysis
For protocols like Morpho (MetaMorpho), track how vaults shift capital across underlying markets using reallocation events.
### Liquidations
Monitor liquidation events across protocols to assess vault health and risk.
***
## Cross-Protocol Starter Query
**Daily Deposit Events Across Protocols (30d):**
```sql theme={null}
WITH morpho AS (
SELECT date_trunc('day', evt_block_time) AS day, 'Morpho (MetaMorpho)' AS protocol, COUNT(*) AS deposit_events
FROM metamorpho_vaults_multichain.metamorpho_evt_deposit
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
),
aave AS (
SELECT date_trunc('day', evt_block_time) AS day, 'Aave v3' AS protocol, COUNT(*) AS deposit_events
FROM aave_v3_multichain.pool_evt_supply
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
),
lido AS (
SELECT date_trunc('day', evt_block_time) AS day, 'Lido' AS protocol, COUNT(*) AS deposit_events
FROM lido_ethereum.steth_evt_submitted
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
),
fluid AS (
SELECT date_trunc('day', evt_block_time) AS day, 'Fluid' AS protocol, COUNT(*) AS deposit_events
FROM fluid_multichain.fluidvaultt1_evt_logoperate
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
),
euler AS (
SELECT date_trunc('day', evt_block_time) AS day, 'Euler v2' AS protocol, COUNT(*) AS deposit_events
FROM euler_v2_ethereum.evault_evt_deposit
WHERE evt_block_time >= NOW() - INTERVAL '30' DAY
GROUP BY 1
)
SELECT * FROM morpho
UNION ALL SELECT * FROM aave
UNION ALL SELECT * FROM lido
UNION ALL SELECT * FROM fluid
UNION ALL SELECT * FROM euler
ORDER BY day DESC, protocol
```
***
## Notes & Limitations
* **No unified dataset**: Analysis requires protocol-specific logic. Each protocol has its own event schema and naming conventions.
* **Coverage varies**: Not all protocols are decoded on all chains. Check the data explorer for the latest availability.
* **TVL is approximate**: Deposit-minus-withdrawal tracking provides a proxy. For precise TVL, combine with balance snapshots and pricing data from `prices.day` or `prices.hour`.
* **APY data not available**: On-chain yield/APY calculation requires combining interest accrual events with token pricing and time-weighted math. This is complex and protocol-specific.
* **Holder counts deferred**: Accurate holder tracking requires the [Balances](/data-catalog/curated/balances/overview) tables, which are in open beta.
* **Some protocols overlap with Lending**: Aave v3 data is also covered in the [Lending](/data-catalog/curated/lending/overview) curated tables in a normalized schema. Use the curated lending tables for cross-protocol comparisons, and decoded tables here for vault-specific or protocol-specific analysis.
* **Token decimals vary per vault**: MetaMorpho vault `assets` values are denominated in the underlying token's smallest unit (e.g., 6 decimals for USDC, 18 for WETH). Always join with `tokens.erc20` for decimal normalization before computing USD values via `prices.day`.
* **Event counts ≠ volume**: Cross-protocol event count comparisons are directional only. Some protocols (e.g., Fluid) emit a single event per operation that covers supply + borrow + repay, while others have separate events.
* **Automated activity**: Some chains (e.g., Gnosis on Aave v3) show high event counts driven by automated/bot activity rather than organic user deposits.
***
## Related Tables
> [card] [Lending](/data-catalog/curated/lending/overview)
>
> Curated supply, borrow, flash loan, and liquidation data across lending protocols
> [card] [Balances](/data-catalog/curated/balances/overview)
>
> Token balance snapshots for holder analysis
> [card] [Prices](/data-catalog/curated/prices/overview)
>
> Token pricing for USD denomination
> [card] [Token Transfers](/data-catalog/curated/token-transfers/overview)
>
> Raw transfer events for flow analysis
> [card] [DEX Trades](/data-catalog/curated/dex-trades/overview)
>
> DEX activity for vault token trading
***
## Enterprise Data Solutions
Need a unified vaults dataset, custom vault analytics, or dedicated support? [Talk to our enterprise team](https://dune.com/enterprise).
# Data Freshness
Source: https://docs.dune.com/data-catalog/data-freshness
Understand the frequency of updates for various data types on Dune.
At Dune, data is continually refreshed through a multi-stage process to ensure accuracy and reliability. The three main stages of data updates are: **Raw Data**, **Decoded Data**, and **Curated Data**. The update frequency for each type of data varies based on several factors.
## Raw Data
Raw data consists of tables such as `ethereum.blocks` or `ethereum.transactions` that are directly ingested from the blockchain. The frequency of raw data updates is primarily influenced by the blockchain's frequency of producing blocks and its likelihood of a reorg.
### Blockchain Dependence
* **Chains like Optimism, Arbitrum, and Avalanche**: These blockchains exhibit lower chances of undergoing reorgs. As a result, data ingestion occurs more swiftly since the stability of these chains allows for quicker validation of block data.
* **Chains like Polygon and Ethereum**: Given their higher propensity for reorgs, there is a deliberate delay in data ingestion. This delay ensures that only stable and reorg-resistant blocks are considered, preventing the ingestion of potentially unstable or reversible transactions.
We do our best to ensure that the data is as fresh as possible while maintaining the integrity of the data. You can find the data freshness of the raw data in the table below.
[https://dune.com/embeds/3674011/6192854](https://dune.com/embeds/3674011/6192854)
## Decoded Data
Decoded data refers to tables such as `uniswap_v3_ethereum.Factory_evt_PoolCreated` or `tokens_ethereum.erc20` that are derived from the raw data. This stage of data processing involves transforming raw blockchain data into more accessible and interpretable formats.
The decoding of data is performed in real-time and is contingent on the volume of data being processed. The typical timeline for decoding is as follows:
* **Time Frame**: Decoding generally occurs within 15 to 60 seconds following the ingestion of raw data.
* **Dependency on Data Volume**: The specific duration within this range depends on the current data throughput and the complexity of the decoding operations required.
You can find the data freshness of the decoded data in the table below.
[https://dune.com/embeds/3674011/6191881](https://dune.com/embeds/3674011/6191881)
## Curated Data
Curated data tables on Dune are tables like `dex.trades` or `nft.trades` that are derived from raw and decoded data. They take away the complexity of working with raw or even decoded data and are ready to be used for analysis.
The data pipelines are open-source and documented in this [GitHub repository](https://github.com/duneanalytics/spellbook).
Curated tables are usually scheduled to run once every hour. The runtime of the data models can vary depending on the volume of transactions on any given day, therefore curated datasets are sometimes slower than the usual 1-hour target to update. Solana datasets such as `dex_solana.trades` and `tokens_solana.transfers` are an exception — they run on a 6-hour schedule, so data freshness for these tables is typically 6–7 hours.
[https://dune.com/embeds/3675008/6180554](https://dune.com/embeds/3675008/6180554)
## Community Data
Several notable 3rd party data providers are uploading their data into Dune. These data providers have their own update schedules and are not controlled by Dune. The data freshness of these providers can be found in the table below.
[https://dune.com/embeds/3675124/6180730](https://dune.com/embeds/3675124/6180730)
# Data Trust & Reliability
Source: https://docs.dune.com/data-catalog/data-quality
How Dune validates blockchain data as it is ingested, monitors it for completeness, and what our quality controls cover.
## Quality Controls Across the Pipeline
Dune is committed to delivering high-fidelity blockchain data that teams can trust for critical analytics, applications, and business decisions. This page describes the automated controls we run on that data, and what each one covers.
Data quality isn't a one-off test. Blocks are validated as they are ingested, core blockchain tables are monitored on a schedule, and curated datasets are tested whenever their code changes.
> [!NOTE]
>
> **Monitoring:** [Status Page](https://status.dune.com/) · [Data Freshness](/data-catalog/data-freshness)
## Trusted at Scale
Dune has been indexing and serving blockchain data longer than any other onchain data platform. Our infrastructure processes millions of queries per day across 100+ blockchains, powering analytics for leading exchanges, DeFi protocols, investment firms, and blockchain foundations worldwide.
Years of production operation have exposed us to a wide range of chain-specific edge cases, and the controls described on this page reflect that experience.
> *"Huge credit to the Dune team for their speed, precision, and commitment to making onchain data accessible and actionable."*
> **Luke Judges**, Director at Ripple
***
## How Our Pipeline Works
Dune's data pipeline processes blockchain data through three stages:
**1. Ingestion**: We ingest raw block, transaction, log, and trace data from blockchain nodes. Blocks are validated against a schema for their blockchain before they are stored, and a block that fails validation is retried rather than stored.
**2. Monitoring**: Scheduled checks scan the blocks tables of our most widely used blockchains for missing and duplicate blocks, and alert our engineers when they find one.
**3. Output**: Raw data keeps the block and transaction hashes as received from the node, so any record can be compared against a node or block explorer. Decoded data is produced by applying contract interface definitions (ABIs) to raw data. Curated datasets like `dex.trades` and `tokens.transfers` apply standardized schemas and business logic to make blockchain data easily accessible for all your use cases.
***
## Our Data Quality Framework
### Block Validation
Before a block is stored, it is checked against a schema defined for its blockchain and against internal-consistency rules, for example that each transaction receipt belongs to the block and that the block's transactions and receipts correspond to one another. A block that fails is retried, and our engineers are alerted if it cannot be retrieved and validated.
We keep each block's hash and parent hash, and each transaction's hash, as received from the node rather than recomputing them. Because these identifiers are published by the network, you can compare any record in Dune against the same record from a node or block explorer of your choice.
### Gap Detection
Every 30 minutes, automated checks scan the blocks tables of our most widely used blockchains, including Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, Bitcoin, Tron and Solana, for missing block numbers. Any gap found alerts our engineers so it can be investigated and, where the data is available, backfilled.
### Duplicate Detection
For most of those blockchains, the same checks also detect duplicate block records and alert our engineers.
### Re-org Handling
Blockchain reorganizations can replace recently produced blocks. For most chains, Dune limits exposure to them by indexing a block only once it is a set number of blocks behind the chain tip, or once the node reports it as safe or finalized. The margin is set per chain based on how that chain reaches finality.
### Token Metadata
Token metadata (names, symbols, decimals) for ERC-20 tokens is maintained in `tokens.erc20`, part of [Spellbook](https://github.com/duneanalytics/spellbook), Dune's open-source transformation layer. It is updated as contributions are reviewed and merged.
### Dataset Tests
Curated datasets carry automated tests on their key columns, such as not-null and uniqueness checks. These tests run whenever a dataset's code changes, so a change that breaks them is caught before it ships.
## Monitoring & Transparency
Real-time visibility into data health:
> [card] [Data Freshness](/data-catalog/data-freshness)
>
> Check current ingestion latency for all supported chains and curated datasets.
> [card] [Status Page](https://status.dune.com/)
>
> Subscribe to alerts for any incidents affecting data availability or quality.
If you discover a data quality issue, [let our team know](mailto:support@dune.com). We investigate every report and prioritize fixes based on impact.
> *"Dune has by far the largest and most comprehensive dataset on the market."*
> **Dan Smith**, Senior Research at Blockworks
***
## Next Steps
> [card] [Enterprise Data Quality Guarantees](https://dune.com/enterprise)
>
> For custom SLAs, dedicated support, and priority issue resolution, talk to our enterprise team.
> [card] [Build Validated Pipelines on Dune](/api-reference/connectors/dbt/overview)
>
> Run your own dbt projects on Dune's data warehouse. Full incremental model support, automated testing, and CI/CD.
# Transaction Fees
Source: https://docs.dune.com/data-catalog/dune-index/gas-fees
Understanding transaction fees and their relationship to transaction costs in blockchain networks
> [!WARNING]
>
> **The Dune Index has been sunset.** The underlying methodology and queries remain accessible. See the [introduction page](/data-catalog/dune-index/introduction) for details on how to continue using this data.
## Overview
Transaction fees represent the dollar costs of executing operations on blockchain networks. By measuring transaction fees, we can understand the demand for resources on the network and the incentives that drive user behavior.
Gas fee calculations are more complex than they may seem at first glance. This is because different networks have different fee structures, and some even have multiple components to their fees. We are aggregating the data from multiple sources to provide a comprehensive view of the fees paid for each network.
You can explore the daily gas fee data via `metrics.gas_fees_daily`
[https://dune.com/embeds/4096073/7114131](https://dune.com/embeds/4096073/7114131)
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=metrics\&table_name_t6f0df=gas_fees_daily](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=metrics\&table_name_t6f0df=gas_fees_daily)
### EVM Networks
For EVM networks, we have developed a unified model to calculate transaction fees consistently across different types of chains. The data is accessible through the `gas.fees` table, which standardizes the fee components into `l1_fee`, `base_fee`, and `priority_fee`. This model elegantly unifies the fee structures of rollups, L1s, and L2s, providing a coherent view of gas costs across the EVM ecosystem. However, it's important to note that the specific fee components and their calculations may vary depending on the unique characteristics and design choices of each network. You can find the fee components for each network below.
> [tab] Arbitrum
>
> Arbitrum uses a custom L1/L2 fee model that ignores priority fees (tips) in calculations and uses effective_gas_price instead of standard gas_price. This helps account for the actual costs of posting data to the L1 chain.
>
> ```sql theme={null}
> -- Two component fee structure
> l1_fee = gas_used_for_l1 * effective_gas_price
> base_fee = (gas_used - gas_used_for_l1) * effective_gas_price
> ```
> [tab] Avalanche C-Chain
>
> Avalanche C-Chain uses a standard fee structure with a base fee and an optional priority fee. This allows users to tip validators for faster transaction inclusion.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Base
>
> Base employs a custom L1/L2 fee model with additional L1 data fields. This helps track the costs associated with posting data to the L1 chain for security.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [tab] Blast
>
> Blast uses a custom L1/L2 fee model with additional L1 data fields. This allows tracking the L1 data posting costs separately from the L2 execution fees.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [tab] BNB Chain
>
> BNB Chain uses a standard fee structure with a base fee and an optional priority fee. This allows users to incentivize faster transaction processing through tips.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Celo
>
> Celo is excluded due to incorrect raw data. If included, it would use a
> standard fee structure with a base fee and an optional priority fee.
> [tab] Ethereum
>
> Ethereum uses a custom fee model with additional blob fee data. This helps
> account for the costs associated with storing large data blobs on the network.
> Fee components:
>
> ```sql theme={null}
> -- Four component fee structure
> blob_fee = blob_base_fee * blob_gas_used
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Three component fee structure (if no priority fee)
> blob_fee = blob_base_fee * blob_gas_used
> base_fee = gas_price * gas_used
> ```
> [tab] Fantom
>
> Fantom uses a standard fee structure with a base fee and an optional priority fee. This allows users to tip validators for faster transaction inclusion.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Gnosis
>
> Gnosis uses a standard fee structure with a base fee and an optional priority fee. This allows users to incentivize faster transaction processing through tips.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Linea
>
> Linea uses a standard fee structure with a base fee and an optional priority fee. This allows users to tip validators for faster transaction inclusion.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Mantle
>
> Mantle employs a custom L1/L2 fee model with additional L1 data fields. This helps track the costs associated with posting data to the L1 chain for security.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [tab] Optimism
>
> Optimism uses a custom L1/L2 fee model with additional L1 data fields. This allows tracking the L1 data posting costs separately from the L2 execution fees.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [tab] Polygon
>
> Polygon uses a standard fee structure with a base fee and an optional priority fee. This allows users to incentivize faster transaction processing through tips.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Scroll
>
> Scroll uses a custom L1/L2 fee model with additional L1 data fields. This helps track the costs associated with posting data to the L1 chain for security.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [tab] Sei
>
> Sei uses a standard fee structure with a base fee and an optional priority fee. This allows users to tip validators for faster transaction inclusion.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] Tron
>
> Tron uses a simplified fee structure using only gas price and gas used. This
> provides a straightforward way to calculate transaction fees. Tron also
> subsidizes the fees for transactions, so the fee paid is not necessarily the
> actual cost of the transaction. We are correcting for this in the
> `metrics.gas_fees_daily` table, but not in gas.fees yet.
>
> ```sql theme={null}
> tx_fee_raw = gas_used * gas_price
> ```
> [tab] zkEVM
>
> zkEVM uses a standard fee structure with a base fee and an optional priority fee. This allows users to incentivize faster transaction processing through tips.
>
> ```sql theme={null}
> -- Two component fee structure (if priority fee exists)
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Single component fee structure (if no priority fee)
> base_fee = gas_price * gas_used
> ```
> [tab] zkSync
>
> zkSync uses a simplified fee structure using only gas price and gas used. This provides a straightforward way to calculate transaction fees on the zkSync network.
>
> ```sql theme={null}
> base_fee = gas_price * gas_used
> ```
> [tab] Zora
>
> Zora uses a custom L1/L2 fee model with additional L1 data fields. This helps track the costs associated with posting data to the L1 chain for security.
>
> ```sql theme={null}
> -- Three component fee structure
> l1_fee = l1_fee
> base_fee = base_fee_per_gas * gas_used
> priority_fee = priority_fee_per_gas * gas_used
> -- Two component fee structure (if no priority fee)
> l1_fee = l1_fee
> base_fee = gas_price * gas_used
> ```
> [card] [Fee Metrics Code](https://github.com/duneanalytics/spellbook/tree/main/dbt_subprojects/daily_spellbook/models/_metrics/fees)
>
> View the source code for the fees metrics implementation.
### Non-EVM Networks
For non-EVM networks we haven't yet found a consistent way to model the fee structure, so we are not yet able to provide a unified model for non-EVM networks. However, all the data is included in the `metrics.gas_fees_daily` table.
#### Solana
Solana has two "types" of transactions: *transactions* and *votes*. We track the fees for each type separately in `gas_solana.tx_fees` and `gas_solana.vote_fees`.
> [tab] Solana Transactions
>
> Solana uses a custom fee structure with a base fee and an optional prioritization fee for transactions. The base fee is calculated based on the number of signatures required for the transaction, while the prioritization fee depends on the compute unit price and compute budget limit.
>
> ```sql theme={null}
> -- Two component fee structure
> base_fee = # of signatures * 0.000005
> priority_fee = compute_unit_price * compute_budget_limit
> ```
>
> This data is standardized in `gas_solana.tx_fees`.
> [tab] Solana Votes
>
> In Solana, votes that help the network reach consensus are also considered transactions. The fees are always 0.000005 SOL per vote, which is the base fee for a transaction with one signature.
>
> ```sql theme={null}
> -- single component fee structure
> fee = 0.000005
> ```
>
> Vote fees are not included in `gas_solana.tx_fees` and are instead included in `gas_solana.vote_fees`.
We consider both `gas_solana.tx_fees` and `gas_solana.vote_fees` when calculating the total transaction fees for Solana in `metrics.gas_fees_daily`.
#### Bitcoin
Bitcoin uses a simple fee structure where each transaction has a fee paid to the miner. Miners pick the transactions with the highest fees to include in the next block.
```sql theme={null}
-- Single component fee structure
fee = fee
```
# Dune Index
Source: https://docs.dune.com/data-catalog/dune-index/introduction
The Dune Index is a comprehensive indicator of blockchain adoption across the industry.
> [!WARNING]
>
> **The Dune Index has been sunset.**
>
> While we are no longer actively maintaining this product, the underlying methodology and queries remain fully accessible. You can still:
>
> * **Query the underlying data** using the metrics tables referenced in this documentation (e.g., `metrics.gas_fees_daily`)
> * **Use our methodology** by referencing the [open-source code](https://github.com/duneanalytics/spellbook/tree/main/dbt_subprojects/daily_spellbook/models/_metrics/dune_index)
> * **Build your own analysis** based on the component metrics described below
## What is the Dune Index?
The Dune Index serves as a comprehensive measurement framework for blockchain adoption, designed to capture meaningful usage while filtering out speculative activity. By combining multiple standardized metrics, it provides an objective view of how blockchain technology is being utilized across different networks and use cases.
## Why the Dune Index?
Traditional blockchain metrics often fall short of measuring genuine adoption. Market capitalization and token prices primarily reflect speculative sentiment, while metrics like Total Value Locked (TVL) can be manipulated by large holders. The Dune Index addresses these limitations by focusing on actual network usage and economic activity.
The index was specifically designed to track meaningful adoption that indicates real-world utility. This approach helps stakeholders distinguish between speculative bubbles and sustainable growth in blockchain usage.
## Components
The Dune Index aggregates three fundamental metrics, each normalized to a baseline value of 10 to enable meaningful comparison:
> [card] [Transaction Fees](/data-catalog/dune-index/gas-fees)
>
> Measures real demand for blockspace
> [card] [Net USD Transferred](/data-catalog/dune-index/net-transfers)
>
> Tracks genuine value movement
> [card] [Transactions](/data-catalog/dune-index/transactions)
>
> Indicates breadth of usage
### Component Selection Rationale
These metrics were carefully chosen to provide a comprehensive view of blockchain usage. Transaction fees demonstrate users' willingness to pay for block space, serving as a market-driven indicator of demand. Net transfers capture actual economic activity while filtering out artificial volume. Transaction count provides context about the breadth of network usage.
Together, these metrics create a robust framework that resists artificial inflation and captures different aspects of blockchain utility.
> [card] [Dune Index Metrics Code](https://github.com/duneanalytics/spellbook/tree/main/dbt_subprojects/daily_spellbook/models/_metrics/dune_index)
>
> View the source code for the Dune Index metrics implementation.
## Implementation Guide
The Dune Index can be utilized in several ways:
* Track industry trends by monitoring long-term adoption patterns and growth trajectories across the blockchain space.
* Enable detailed blockchain breakdowns to compare adoption metrics between different networks.
* Through component analysis, users can evaluate the relative impact of each metric on overall adoption.
* The index methodology can also be extended for specialized research and custom analysis needs.
## Excluded Metrics
The index intentionally excludes several common blockchain metrics due to their limitations:
### Price and Market Capitalization
Market-based metrics were excluded as they primarily reflect speculative activity rather than actual usage. Price movements often diverge significantly from underlying adoption patterns and can be heavily influenced by market sentiment rather than utility.
### Total Value Locked (TVL)
While TVL provides insight into DeFi activity, it has significant limitations as an adoption metric. The metric can be manipulated by large holders, doesn't account for capital efficiency, and automatically increases with asset prices regardless of actual usage.
### Active Addresses
Address-based metrics prove problematic due to the ease of address creation and the common practice of users maintaining multiple addresses. These metrics fail to distinguish between meaningful activity and artificial inflation through address generation.
# Net USD Transferred
Source: https://docs.dune.com/data-catalog/dune-index/net-transfers
Understanding net USD transferred as a component of the Dune Index
> [!WARNING]
>
> **The Dune Index has been sunset.** The underlying methodology and queries remain accessible. See the [introduction page](/data-catalog/dune-index/introduction) for details on how to continue using this data.
## Overview
Net USD transferred provides a measure of genuine economic activity across blockchain networks by tracking the actual movement of value between distinct entities. This metric implements sophisticated filtering mechanisms to distinguish meaningful transfers from artificial activity, offering insight into real economic impact.
## Technical Significance
Net transfers serve as a crucial indicator of blockchain utility by measuring actual value movement while filtering out noise. Unlike gross transfer volumes, which can be inflated through wash trading or circular transactions, net transfers focus on the ultimate economic impact of blockchain activity.
The metric is particularly valuable because it requires significant economic resources to manipulate, making it a more reliable indicator of genuine activity compared to metrics like transaction count or total volume.
## Calculation Methodology
The computation of net transfers follows a rigorous process:
1. Address-Level Aggregation
* Track all value movements between addresses
* Calculate daily net position changes per address (inflows minus outflows)
2. Filtering Criteria
* Minimum threshold of \$1 to exclude dust transactions
* Removal of internal transactions from known contracts and protocols
* Exclusion of identified wash trading patterns
* Filtering of exploit-related transfers and known scam addresses
3. Standardization
* Conversion to USD equivalent values using time-weighted average prices
* Normalization against baseline metrics for cross-chain comparison
> [card] [Transfers Metrics Code](https://github.com/duneanalytics/spellbook/tree/main/dbt_subprojects/daily_spellbook/models/_metrics/transfers)
>
> See the transfers metrics code for the technical implementation details.
## Analytical Framework
When interpreting net transfer data, consider several key aspects:
1. Volume Patterns
* Analyze sustained periods of high net transfer volume
* Identify unusual spikes that may indicate large-scale events or anomalies
2. Comparative Analysis
* Compare net transfers against gross transfer volume to detect wash trading
* Evaluate relationships with transaction counts and fee levels
* Monitor distribution patterns across different blockchain networks
3. Network Effects
* Consider how network upgrades or protocol changes impact transfer patterns
* Analyze the impact of new DeFi protocols or applications on transfer volumes
This metric provides valuable insight into blockchain adoption when analyzed alongside other components of the Dune Index, offering a more complete picture of meaningful network usage.
# Transactions
Source: https://docs.dune.com/data-catalog/dune-index/transactions
Understanding transactions as a foundational component of the Dune Index
> [!WARNING]
>
> **The Dune Index has been sunset.** The underlying methodology and queries remain accessible. See the [introduction page](/data-catalog/dune-index/introduction) for details on how to continue using this data.
## Overview
The transaction component of the Dune Index measures blockchain activity by counting transactions that transfer at least 1 USD in value. This filtered approach helps focus on meaningful economic activity while maintaining a simple, verifiable methodology.
## Methodology
The transaction metric employs a straightforward filtering approach:
1. Base Criteria
* Count only transactions with transfers of \$1 or more
* Convert all token transfers to USD value at time of transaction
* Include both native token and token contract transfers
2. Rationale
* \$1 threshold excludes dust transactions and spam
* Low threshold maintains inclusivity of meaningful activity
* Simple criteria enables consistent cross-chain comparison
3. Implementation
* Track successful transfers only
* Calculate USD value at transaction time
* Aggregate across all supported token types
> [card] [Transactions Metrics Code](https://github.com/duneanalytics/spellbook/tree/main/dbt_subprojects/daily_spellbook/models/_metrics/transactions)
>
> View the source code for the transactions metrics implementation.
## Technical Considerations
Several factors influence transaction counting:
1. Value Calculation
* Use time-weighted token prices
* Account for token decimals and precision
* Handle cases of missing price data
2. Cross-Chain Standardization
* Apply consistent \$1 threshold across networks
* Account for different token value representations
* Handle multi-token transactions appropriately
## Limitations
Understanding the metric's limitations is crucial:
1. Threshold Effects
* May exclude some meaningful sub-\$1 activity
* Still includes some non-meaningful activity above \$1
* Value threshold is nominal, not inflation-adjusted
2. Technical Constraints
* Requires reliable price data for all tokens
* Must handle complex transaction types consistently
* Network upgrades may affect transaction classification
## Usage Guidelines
When analyzing transaction data:
1. Trend Analysis
* Focus on directional changes over time
* Compare across similar time periods
* Consider seasonal and cyclical patterns
2. Context
* Use alongside other Dune Index components
* Consider network-specific factors
* Account for major protocol changes
The transaction count provides a foundational measure of blockchain adoption while the \$1 threshold helps filter out noise, making it a valuable component of the Dune Index despite its inherent limitations.
# Block Events
Source: https://docs.dune.com/data-catalog/echelon/block_events
Echelon blockchain block events data
# Table Description
This table contains data about block-level events and attributes in the Echelon blockchain, including event types, sources, and associated metadata. The schema is modeled after Cosmos block events.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the event occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **event_index** | bigint | A unique index for events within the block. |
| **event_type** | varchar | The type of event that was triggered. |
| **event_source** | varchar | The source of the event. |
| **attribute_key** | varchar | The key of the event attribute. |
| **attribute_value** | varchar | The value of the event attribute. |
| **attribute_index** | bigint | A unique index for attributes within the event. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=block_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=block_events)
# Blocks
Source: https://docs.dune.com/data-catalog/echelon/blocks
Echelon blockchain blocks data
# Table Description
This table contains data about blocks in the Echelon blockchain, including block headers, consensus data, and transaction information.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block, a unique identifier for each block. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **proposer_address** | varchar | The address of the validator proposing the block. |
| **validators_hash** | varchar | The hash of the validators set for the block. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=blocks)
# Message Events
Source: https://docs.dune.com/data-catalog/echelon/message_events
Echelon blockchain message events data
# Table Description
This table contains data about message-related events in the Echelon blockchain, including message types, attributes, and associated metadata. Because block events run on initia, this table is empty by design at this point.
## Table Schema
| Column name | Description | Type |
| - | - | - |
| **block_date** | The date of the block. | date |
| **block_height** | The height of the block where the event occurred. | bigint |
| **block_timestamp** | Timestamp when the block was validated. | timestamp(3) with time zone |
| **chain_id** | The ID of the chain where the block belongs. | varchar |
| **tx_id** | The hash of the transaction where the event occurred. | varchar |
| **tx_index** | The index of the transaction in the block. | bigint |
| **message_index** | The index of the message in the transaction. | bigint |
| **event_index** | A unique index for events within the message. | bigint |
| **event_type** | The type of event that was triggered. | varchar |
| **attribute_key** | The key of the event attribute. | varchar |
| **attribute_value** | The value of the event attribute. | varchar |
| **attribute_index** | A unique index for attributes within the event. | bigint |
| **updated_at** | Timestamp of when the record was last updated. | timestamp(3) with time zone |
| **ingested_at** | Timestamp of when the record was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=message_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=message_events)
# Echelon Data
Source: https://docs.dune.com/data-catalog/echelon/overview
Echelon blockchain data on Dune
## What is Echelon?
Echelon is a public Cosmos and EVM compatible blockchain protocol running as L2 on Initia. The Echelon consensus and layer protocols deliver unparalleled speed, scalability, and security.
Echelon equally serves as an application-agnostic chain fully interoperable with the Ethereum mainnet, all EVM compatible environments, and other BFT chains via IBC. Expectedly, it eases cross-chain transferrals of value for both developers and end-users.
## Key Features
* **Dual Compatibility**: Cosmos and EVM compatible blockchain protocol
* **High Performance**: Unparalleled speed, scalability, and security through advanced consensus and layer protocols
* **Cross-Chain Interoperability**: Fully interoperable with Ethereum mainnet, all EVM compatible environments, and other BFT chains via IBC
* **Application-Agnostic**: Flexible platform for various decentralized applications
* **DeFi Focus**: Bridges DeFi and mass adoption
## Echelon Data on Dune
Echelon blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Blocks](/data-catalog/echelon/blocks)
>
> Contains each validated block in the chain
> [card] [Block Events](/data-catalog/echelon/block_events)
>
> Contains all block-level events and attributes in the chain, partitioned by event_index
> [card] [Message Events](/data-catalog/echelon/message_events)
>
> Contains all events and their corresponding attributes partitioned by message_index
> [card] [Transactions](/data-catalog/echelon/transactions)
>
> Contains relevant data associated with each transaction
> [card] [Transaction Messages](/data-catalog/echelon/tx_messages)
>
> Contains all messages submitted to the blockchain
# Transactions
Source: https://docs.dune.com/data-catalog/echelon/transactions
Echelon blockchain transactions data
# Table Description
This table contains data about transactions in the Echelon blockchain, including transaction details, gas usage, and execution status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_height** | bigint | The height of the block where the transaction occurred. |
| **chain_id** | varchar | The ID of the chain where the transaction occurred. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_info** | varchar | Information related to the transaction. |
| **tx_log_message** | varchar | The log message associated with the transaction. |
| **memo** | varchar | A memo associated with the transaction. |
| **fee** | varchar | The fee associated with the transaction. |
| **tx_code** | bigint | The result code of the transaction. |
| **tx_index** | bigint | The index of the transaction within the block. |
| **gas_used** | bigint | The amount of gas used by the transaction. |
| **gas_wanted** | bigint | The amount of gas requested by the transaction. |
| **schema_version** | bigint | The schema version for the transaction data. |
| **fee_coins** | varchar | The coins used to pay the transaction fee. |
| **fee_granter** | varchar | The address granting the fee for the transaction. |
| **fee_payer** | varchar | The address paying the fee for the transaction. |
| **gas_limit** | bigint | The gas limit set for the transaction. |
| **single_sign_mode** | bigint | The signing mode for single-signature transactions. |
| **multi_sign_json** | varchar | JSON structure for multi-signature transactions. |
| **timeout_height** | varchar | The timeout height set for the transaction. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=transactions)
# Transaction Messages
Source: https://docs.dune.com/data-catalog/echelon/tx_messages
Echelon blockchain transaction messages data
# Table Description
This table contains data about messages contained within transactions in the Echelon blockchain, including message types, content, and associated metadata.
> [!TIP]
>
> On execution, transactions from Cosmos emit data in two formats:
>
> * Messages (`echelon.tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
> * Events (`echelon.message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
> * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the message occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the message belongs. |
| **tx_id** | varchar | The hash of the transaction containing the message. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **message_type** | varchar | The type of message. |
| **message** | varchar | The value/content of the message. |
| **schema_version** | bigint | The version of the schema in provider database. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=tx_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=echelon\&table_name_t6f0df=tx_messages)
# dex.trades on abstract
Source: https://docs.dune.com/data-catalog/evm/abstract/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on abstract.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for abstract transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on abstract.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=abstract](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=abstract)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=abstract\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=abstract\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on abstract
Source: https://docs.dune.com/data-catalog/evm/abstract/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on abstract.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for abstract transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on abstract.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=abstract](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=abstract)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=abstract\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=abstract\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Abstract Call Tables
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Abstract network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# abstract.contracts
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/contracts
Verified contract registry on Abstract — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the abstract blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=contracts)
# Event Logs - Abstract
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/event-logs
Smart contracts on Abstract emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# abstract.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/logs-decoded
ABI-decoded event logs on Abstract — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from abstract transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/abstract/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on abstract?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for abstract on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=logs_decoded)
# Abstract Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/overview
Simplifying Abstract Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/abstract/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/abstract/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/abstract/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# abstract.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/abstract/decoded/traces-decoded
ABI-decoded function calls on Abstract — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from abstract transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/abstract/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=traces_decoded)
# Abstract Chain Overview
Source: https://docs.dune.com/data-catalog/evm/abstract/overview
Abstract blockchain data on Dune
## What is Abstract?
Abstract is a Layer 2 (L2) network built on top of Ethereum, designed to securely support consumer-facing blockchain applications at scale. Utilizing zero-knowledge (ZK) rollup technology, Abstract achieves low fees and fast transaction speeds by processing transactions off-chain, then batching and verifying them on Ethereum using ZK proofs.
With EVM compatibility, Abstract allows developers to port existing Ethereum applications with minimal adjustments, providing an Ethereum-like environment but with optimized scalability and reduced costs.
## Key Features of Abstract
Abstract's infrastructure is built with a focus on scalability, security, and developer accessibility, offering several powerful features:
### **Layer 2 ZK Rollup Architecture**
Abstract batches transactions off-chain and posts them to Ethereum for security, inheriting Ethereum’s security properties while enabling faster, more cost-effective transactions. This ZK rollup structure ensures that all state transitions are verified without executing transactions on Ethereum.
### **EVM Compatibility with Optimized VM**
Abstract maintains compatibility with the Ethereum ecosystem, allowing developers to use familiar tools. However, Abstract's ZKsync VM utilizes optimized bytecode and opcodes to facilitate efficient ZK proof generation, offering unique ways for developers to build scalable applications.
### **Lower Gas Fees and Higher Throughput**
Gas fees on Abstract are significantly lower than on Ethereum, thanks to batch processing and ZK proofing. This reduction in transaction costs, coupled with high throughput, makes Abstract ideal for high-demand applications.
## Transaction Lifecycle
Each transaction on Abstract undergoes a lifecycle that includes four key stages:
1. **Processing on Abstract**: Transactions are executed on Abstract, and soft confirmation is provided to the user.
2. **Batch Submission to Ethereum**: Transactions are batched and committed to Ethereum in optimized submissions.
3. **Proof Validation**: A ZK proof validating the batch is generated off-chain and verified by Ethereum.
4. **State Finalization**: Once verified, the state is finalized, ensuring transaction accuracy on Ethereum.
## EVM Differences
While compatible with Ethereum’s development environment, Abstract’s ZKsync VM introduces specific changes for optimized performance:
* **Opcode Adjustments**: Certain opcodes are modified or supplemented by system contracts.
* **Gas Fee Management**: Fees and refunds are handled differently via Abstract’s bootloader.
* **Nonces and Libraries**: Nonces are stored within smart contract accounts, and library handling is adapted for efficiency.
## Why Abstract?
Abstract combines Ethereum’s security with the scalability of ZK rollups, making it ideal for applications requiring high throughput and low transaction costs. This enables developers to build consumer-ready dApps without sacrificing speed, cost-efficiency, or security.
> [card] [Abstract documentation](https://docs.abs.xyz/overview)
>
> Access full documentation for Abstract, including architecture, EVM differences, and best practices.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Smart contract event logs with insights into Abstract’s ZK rollup dynamics.
> [card] [Blocks](./raw/blocks)
>
> Information on processed blocks, highlighting Abstract’s throughput.
> [card] [Transactions](./raw/transactions)
>
> Data on transactions, illustrating Abstract's cost-effective operation.
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data for in-depth analysis of contract executions.
# abstract.blocks
Source: https://docs.dune.com/data-catalog/evm/abstract/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Abstract.
## Table description
The `abstract.blocks` table contains information about blocks in the abstract blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM abstract.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM abstract.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM abstract.blocks
GROUP BY 1
LIMIT 10`
# abstract.creation_traces
Source: https://docs.dune.com/data-catalog/evm/abstract/raw/creation-traces
Contract deployment records on Abstract — deployer address, factory context, and deployed bytecode.
## Table Description
The `abstract.creation_traces` table contains information about the creation of smart contracts on the abstract blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the abstract blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the abstract blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM abstract.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM abstract.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM abstract.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# abstract.logs
Source: https://docs.dune.com/data-catalog/evm/abstract/raw/logs
Smart contract event logs on Abstract — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `abstract.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/abstract/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM abstract.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM abstract.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM abstract.logs
WHERE evt_block_number = 1000000`
# abstract.traces
Source: https://docs.dune.com/data-catalog/evm/abstract/raw/traces
Internal transaction traces on Abstract — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `abstract.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/abstract/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM abstract.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# abstract.transactions
Source: https://docs.dune.com/data-catalog/evm/abstract/raw/transactions
Every transaction on Abstract — from, to, value, gas, calldata, and receipt status.
## Table Description
The `abstract.transactions` table contains information about all transactions on the abstract blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the abstract blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/abstract/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=abstract\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM abstract.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM abstract.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM abstract.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on apechain
Source: https://docs.dune.com/data-catalog/evm/apechain/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on ApeChain — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for apechain transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on apechain.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=apechain](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=apechain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on apechain
Source: https://docs.dune.com/data-catalog/evm/apechain/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on apechain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for apechain transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on apechain.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=apechain](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=apechain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on apechain
Source: https://docs.dune.com/data-catalog/evm/apechain/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on apechain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for apechain transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on apechain.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=apechain](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=apechain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=apechain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# ApeChain Call Tables
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the ApeChain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# apechain.contracts
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/contracts
Verified contract registry on ApeChain — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the apechain blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=contracts)
# Event Logs - Apechain
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/event-logs
Smart contracts on Apechain emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# apechain.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/logs-decoded
ABI-decoded event logs on ApeChain — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from apechain transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/apechain/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on apechain?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for apechain on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=logs_decoded)
# ApeChain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/overview
Simplifying ApeChain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/apechain/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/apechain/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/apechain/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# apechain.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/apechain/decoded/traces-decoded
ABI-decoded function calls on ApeChain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from apechain transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/apechain/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=traces_decoded)
# ApeChain Overview
Source: https://docs.dune.com/data-catalog/evm/apechain/overview
ApeChain data on Dune
## What is ApeChain?
ApeChain is a dedicated infrastructure layer designed to power the ApeCoin ecosystem. Built on Arbitrum Orbit, it provides developers and users with the best possible experience on the blockchain by focusing on ecosystem discovery, unique web3 rails, and top of funnel exposure.
## Key Features
* **Native Gas Token**: Uses \$APE as its native gas token
* **Arbitrum Orbit**: Built as an Arbitrum Orbit chain for scalability and efficiency
* **Enhanced Utility**: Significantly enhances \$APE's utility
* **Ecosystem Focus**: Powers the ApeCoin ecosystem with dedicated infrastructure
## Why ApeChain?
ApeChain positions itself as a premier platform for the ApeCoin ecosystem by:
* Fostering a robust and dynamic economy driven by \$APE
* Providing dedicated infrastructure for ecosystem growth
* Enhancing the utility and value proposition of \$APE
## Technical Architecture
Built on Arbitrum Orbit, ApeChain inherits Arbitrum's robust technical foundation while adding ApeCoin-specific optimizations:
### Development Features
* **Arbitrum Technology**: Leverages Arbitrum's proven Layer 2 scaling solution
* **APE Integration**: Native support for APE token operations
* **Ecosystem Tools**: Comprehensive development and analytics tools
### Network Economics
* **Gas Token**: \$APE
* **Economic Model**: Designed to enhance \$APE utility and ecosystem value
> [card] [ApeChain Documentation](https://docs.apechain.com)
>
> Official documentation for developers building on ApeChain
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on ApeChain, reflecting network activity and capacity
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions, showcasing efficiency and operational execution
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions
# apechain.blocks
Source: https://docs.dune.com/data-catalog/evm/apechain/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for ApeChain.
## Table description
The `apechain.blocks` table contains information about blocks in the apechain blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM apechain.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM apechain.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM apechain.blocks
GROUP BY 1
LIMIT 10`
# apechain.creation_traces
Source: https://docs.dune.com/data-catalog/evm/apechain/raw/creation-traces
Contract deployment records on ApeChain — deployer address, factory context, and deployed bytecode.
## Table Description
The `apechain.creation_traces` table contains information about the creation of smart contracts on the apechain blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the apechain blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the apechain blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM apechain.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM apechain.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM apechain.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# apechain.logs
Source: https://docs.dune.com/data-catalog/evm/apechain/raw/logs
Smart contract event logs on ApeChain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `apechain.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/apechain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM apechain.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM apechain.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM apechain.logs
WHERE evt_block_number = 1000000`
# apechain.traces
Source: https://docs.dune.com/data-catalog/evm/apechain/raw/traces
Internal transaction traces on ApeChain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `apechain.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/apechain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM apechain.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# apechain.transactions
Source: https://docs.dune.com/data-catalog/evm/apechain/raw/transactions
Every transaction on ApeChain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `apechain.transactions` table contains information about all transactions on the apechain blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the apechain blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/apechain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=apechain\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM apechain.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM apechain.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM apechain.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on Arbitrum Nova
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Arbitrum Nova — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for nova transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on nova.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=nova](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=nova)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on nova
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on nova.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for nova transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on nova.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=nova](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=nova)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Nova
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Nova.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for nova transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on nova.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=nova](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=nova)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=nova\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Arbitrum Nova Call Tables
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Arbitrum Nova network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# nova.contracts
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/contracts
Verified contract registry on Arbitrum Nova — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the nova blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=contracts)
# Event Logs - Arbitrum Nova
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/event-logs
Smart contracts on Arbitrum Nova emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# nova.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/logs-decoded
ABI-decoded event logs on Arbitrum Nova — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from nova transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/nova/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on nova?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for nova on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=logs_decoded)
# Arbitrum Nova Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/overview
Simplifying Arbitrum Nova smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/nova/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/nova/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/nova/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# nova.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/decoded/traces-decoded
ABI-decoded function calls on Arbitrum Nova — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from nova transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/nova/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=traces_decoded)
# Arbitrum Nova Overview
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/overview
Arbitrum Nova data on Dune
## What is Arbitrum Nova?
Arbitrum Nova is a Layer 2 scaling solution on Ethereum that leverages the AnyTrust technology to provide efficient, low-cost transactions while maintaining high security and compatibility with the Ethereum ecosystem. As part of the Arbitrum family, Nova complements Arbitrum One by offering a different balance of security and transaction cost options for users and developers.
## Why Arbitrum Nova?
Arbitrum Nova is designed to handle high transaction volumes at a lower cost, making it ideal for applications such as gaming, social networks, and other scenarios where frequent, low-cost transactions are essential. It uses the AnyTrust protocol, which optimizes security and efficiency, ensuring that transactions are both economical and secure.
## Arbitrum Nova Architecture
Arbitrum Nova's architecture is built to maximize scalability and minimize transaction costs through its unique AnyTrust solution:
### AnyTrust Technology
At the core of Arbitrum Nova is the AnyTrust protocol, which provides a flexible approach to transaction validation. This protocol batches transactions and uses a committee of trusted validators to ensure the integrity and security of the data.
### Rollup Mechanism
Similar to Arbitrum One, Nova batches multiple transactions into a single rollup block. This rollup mechanism significantly increases throughput and reduces transaction costs by spreading the computational load across multiple transactions.
### Compatibility with Ethereum
Arbitrum Nova maintains full compatibility with the Ethereum Virtual Machine (EVM), allowing developers to deploy their existing Solidity smart contracts on Nova without modifications. This seamless integration with Ethereum ensures that Nova can support a wide range of decentralized applications (dApps) with ease.
## Arbitrum Ecosystem
Arbitrum offers two main chains on Ethereum: Arbitrum One, an Optimistic Rollup chain, and Arbitrum Nova, an AnyTrust chain. This dual-chain strategy allows users and developers to choose the solution that best fits their needs in terms of security and transaction costs.
### Utility Token
Ether (ETH) is the primary utility token on Arbitrum Nova, used for paying transaction fees. This alignment with Ethereum's native currency simplifies the user experience and enhances interoperability within the Ethereum ecosystem.
> [card] [Arbitrum Nova Website](https://arbitrum.io/anytrust)
>
> The official page for Arbitrum Nova (an AnyTrust chain), offering comprehensive details on the platform, its architecture, and resources for developers
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Arbitrum Nova, reflecting network activity and capacity
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions, showcasing efficiency and operational execution
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions
# nova.blocks
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Arbitrum Nova.
## Table description
The `nova.blocks` table contains information about blocks in the nova blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM nova.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM nova.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM nova.blocks
GROUP BY 1
LIMIT 10`
# nova.creation_traces
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/raw/creation-traces
Contract deployment records on Arbitrum Nova — deployer address, factory context, and deployed bytecode.
## Table Description
The `nova.creation_traces` table contains information about the creation of smart contracts on the nova blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the nova blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the nova blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM nova.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM nova.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM nova.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# nova.logs
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/raw/logs
Smart contract event logs on Arbitrum Nova — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `nova.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/nova/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM nova.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM nova.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM nova.logs
WHERE evt_block_number = 1000000`
# nova.traces
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/raw/traces
Internal transaction traces on Arbitrum Nova — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `nova.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/nova/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM nova.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# nova.transactions
Source: https://docs.dune.com/data-catalog/evm/arbitrum-nova/raw/transactions
Every transaction on Arbitrum Nova — from, to, value, gas, calldata, and receipt status.
## Table Description
The `nova.transactions` table contains information about all transactions on the nova blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the nova blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/nova/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=nova\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM nova.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM nova.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM nova.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on Arbitrum
Source: https://docs.dune.com/data-catalog/evm/arbitrum/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Arbitrum — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for arbitrum transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on arbitrum.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=arbitrum](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=arbitrum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on arbitrum
Source: https://docs.dune.com/data-catalog/evm/arbitrum/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on arbitrum.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for arbitrum transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on arbitrum.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=arbitrum](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=arbitrum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Arbitrum
Source: https://docs.dune.com/data-catalog/evm/arbitrum/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Arbitrum.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for arbitrum transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on arbitrum.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=arbitrum](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=arbitrum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=arbitrum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Arbitrum One Call Tables
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Arbitrum One network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# arbitrum.contracts
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/contracts
Verified contract registry on Arbitrum — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the arbitrum blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=contracts)
# Event Logs - Arbitrum
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/event-logs
Smart contracts on Arbitrum emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# arbitrum.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/logs-decoded
ABI-decoded event logs on Arbitrum — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from arbitrum transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On arbitrum, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/arbitrum/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **arbitrum.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=logs_decoded)
# Arbitrum One Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/overview
Simplifying Arbitrum One smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/arbitrum/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/arbitrum/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/arbitrum/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# arbitrum.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/arbitrum/decoded/traces-decoded
ABI-decoded function calls on Arbitrum — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from arbitrum transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/arbitrum/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=traces_decoded)
# Arbitrum One Overview
Source: https://docs.dune.com/data-catalog/evm/arbitrum/overview
Arbitrum One data on Dune
Arbitrum One is a Layer 2 scaling solution built on Ethereum that utilizes optimistic rollups to enhance scalability and reduce costs while maintaining compatibility with the Ethereum Virtual Machine (EVM). This allows developers to deploy their existing Solidity smart contracts on Arbitrum without any modifications.
At the heart of Arbitrum One's technology is its unique rollup solution, which batches multiple transactions into a single rollup block. This technique dramatically increases throughput and decreases the transaction costs, all while leveraging the underlying security of the Ethereum mainnet.
The primary utility token of Arbitrum One is Ether, which is used for paying transaction fees. Unlike traditional Layer 1 solutions, Arbitrum One offers a seamless extension of Ethereum, enhancing its scalability and efficiency without compromising on security or decentralization.
Dune provides extensive datasets for Arbitrum One, covering various aspects such as event logs, transactions, blocks, and token movements. These datasets provide valuable insights into network performance, user behavior, and smart contract functionality.
> [card] [Arbitrum One docs](https://arbitrum.io/docs)
>
> The official documentation for Arbitrum One, offering comprehensive details on the platform, its architecture, and resources for developers
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Arbitrum One, reflecting network activity and capacity
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions, showcasing efficiency and operational execution
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions
# arbitrum.blocks
Source: https://docs.dune.com/data-catalog/evm/arbitrum/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Arbitrum.
## Table description
The `arbitrum.blocks` table contains information about blocks in the arbitrum blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM arbitrum.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM arbitrum.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM arbitrum.blocks
GROUP BY 1
LIMIT 10`
# arbitrum.creation_traces
Source: https://docs.dune.com/data-catalog/evm/arbitrum/raw/creation-traces
Contract deployment records on Arbitrum — deployer address, factory context, and deployed bytecode.
## Table Description
The `arbitrum.creation_traces` table contains information about the creation of smart contracts on the arbitrum blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the arbitrum blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the arbitrum blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM arbitrum.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM arbitrum.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM arbitrum.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# arbitrum.logs
Source: https://docs.dune.com/data-catalog/evm/arbitrum/raw/logs
Smart contract event logs on Arbitrum — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `arbitrum.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arbitrum/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM arbitrum.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM arbitrum.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM arbitrum.logs
WHERE evt_block_number = 1000000`
# arbitrum.traces
Source: https://docs.dune.com/data-catalog/evm/arbitrum/raw/traces
Internal transaction traces on Arbitrum — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `arbitrum.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arbitrum/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM arbitrum.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# arbitrum.transactions
Source: https://docs.dune.com/data-catalog/evm/arbitrum/raw/transactions
Every transaction on Arbitrum — from, to, value, gas, calldata, and receipt status.
## Table Description
The `arbitrum.transactions` table contains information about all transactions on the arbitrum blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the arbitrum blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arbitrum/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arbitrum\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM arbitrum.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM arbitrum.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM arbitrum.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Arc Call Tables
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Arc network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# arc.contracts
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/contracts
Verified contract registry on Arc — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the arc blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=contracts)
# Event Logs - Arc
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/event-logs
Smart contracts on Arc emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# arc.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/logs-decoded
ABI-decoded event logs on Arc — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from arc transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/arc/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on arc?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for arc on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=logs_decoded)
# Arc Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/overview
Simplifying Arc smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/arc/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/arc/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/arc/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# arc.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/arc/decoded/traces-decoded
ABI-decoded function calls on Arc — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from arc transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/arc/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=traces_decoded)
# Arc Overview
Source: https://docs.dune.com/data-catalog/evm/arc/overview
Arc blockchain data on Dune
## What is Arc?
Arc is an open EVM-compatible Layer 1 blockchain built by Circle for stablecoin-native financial applications. USDC is the native gas token, and the network targets sub-second deterministic finality for payments, FX, treasury, and onchain markets. Dune indexes Arc under the `arc` schema namespace with standard EVM raw tables and ABI-decoded contract data.
## Key Features
* **USDC as gas**: Transaction fees are paid in USDC, so costs stay dollar-denominated rather than tied to a volatile native token. Native `value` fields and the ERC-20 USDC interface use different decimal scales (see below).
* **EVM compatibility**: Deploy Solidity contracts with standard Ethereum tooling (Hardhat, Foundry, Viem). Arc targets the Osaka EVM baseline.
* **Sub-second finality**: Malachite BFT consensus produces deterministic finality in under one second, with no probabilistic reorg window.
* **Stablecoin-native design**: Native USDC, plus first-class support for assets such as EURC, underpins payments, FX, lending, and agentic settlement.
## EVM Specifics on Dune
* **Schema namespace**: `arc` (query as `arc.blocks`, `arc.transactions`, etc.).
* **Chain ID**: `5042` (mainnet). Transaction `chain_id` is stored as `0x13b2`.
* **Native gas token**: USDC. Transaction and trace `value` fields use **18 decimals**. The ERC-20 interface at `0x3600000000000000000000000000000000000000` uses **6 decimals**. Both views share the same underlying balance — do not treat them as separate assets, and do not mix the two decimal scales.
* **Raw tables**: `blocks`, `transactions`, `logs`, `traces`, `creation_traces`.
* **Decoded infrastructure**: `arc.contracts`, `arc.signatures`, `arc.logs_decoded`, `arc.traces_decoded`.
* **Standard token events**: `erc20_arc.evt_*`, `erc721_arc.evt_*`.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/arc/raw/blocks)
>
> Block, transaction, log, and trace data indexed from Arc nodes.
> [card] [Decoded Data](/data-catalog/evm/arc/decoded/overview)
>
> ABI-decoded contract interactions and events.
## Resources
> [card] [Arc](https://www.arc.network/)
>
> Arc project home page.
> [card] [Block Explorer](https://explorer.arc.io)
>
> Arc mainnet block explorer.
# arc.blocks
Source: https://docs.dune.com/data-catalog/evm/arc/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Arc.
## Table description
The `arc.blocks` table contains information about blocks in the arc blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM arc.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM arc.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM arc.blocks
GROUP BY 1
LIMIT 10`
# arc.creation_traces
Source: https://docs.dune.com/data-catalog/evm/arc/raw/creation-traces
Contract deployment records on Arc — deployer address, factory context, and deployed bytecode.
## Table Description
The `arc.creation_traces` table contains information about the creation of smart contracts on the arc blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the arc blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the arc blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM arc.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM arc.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM arc.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# arc.logs
Source: https://docs.dune.com/data-catalog/evm/arc/raw/logs
Smart contract event logs on Arc — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `arc.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arc/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM arc.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM arc.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM arc.logs
WHERE evt_block_number = 1000000`
# arc.traces
Source: https://docs.dune.com/data-catalog/evm/arc/raw/traces
Internal transaction traces on Arc — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `arc.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arc/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM arc.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# arc.transactions
Source: https://docs.dune.com/data-catalog/evm/arc/raw/transactions
Every transaction on Arc — from, to, value, gas, calldata, and receipt status.
## Table Description
The `arc.transactions` table contains information about all transactions on the arc blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the arc blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/arc/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=arc\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM arc.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM arc.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM arc.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on avalanche
Source: https://docs.dune.com/data-catalog/evm/avalanche/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Avalanche — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for avalanche transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on avalanche.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=avalanche](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=avalanche)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on avalanche
Source: https://docs.dune.com/data-catalog/evm/avalanche/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on avalanche.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for avalanche_c transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on avalanche_c.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=avalanche_c](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=avalanche_c)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche_c\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche_c\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT Trades on Avalanche
Source: https://docs.dune.com/data-catalog/evm/avalanche/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Avalanche.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for avalanche transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on avalanche.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=avalanche](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=avalanche)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=avalanche\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Avalanche C-Chain Call Tables
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Avalanche C-Chain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# avalanche_c.contracts
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/contracts
Verified contract registry on Avalanche C-Chain — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the avalanche_c blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=contracts)
# Event Logs - Avalanche
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/event-logs
Smart contracts on Avalanche emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# avalanche_c.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/logs-decoded
ABI-decoded event logs on Avalanche C-Chain — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from avalanche transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On avalanche, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/avalanche/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **avalanche_c.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=logs_decoded)
# Avalanche C-Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/overview
Simplifying Avalanche C-Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/avalanche/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/avalanche/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/avalanche/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# avalanche_c.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/avalanche/decoded/traces-decoded
ABI-decoded function calls on Avalanche C-Chain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from avalanche transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/avalanche/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche\&table_name_t6f0df=traces_decoded)
# Avalanche C-Chain Overview
Source: https://docs.dune.com/data-catalog/evm/avalanche/overview
Avalanche C-Chain data on Dune
Avalanche C-Chain is a Layer 1 blockchain that functions as part of the Avalanche network, offering high throughput and compatibility with the Ethereum Virtual Machine (EVM). This compatibility enables developers to migrate Ethereum dApps to Avalanche with minimal changes, utilizing the same Solidity programming language.
The core innovation of Avalanche C-Chain is its consensus mechanism, which combines classical consensus and Nakamoto consensus techniques to deliver rapid transaction finality and robust security. This design allows the C-Chain to process transactions faster and at lower costs compared to traditional blockchain networks.
\$AVAX is used as the primary utility token on the Avalanche C-Chain for transaction fees. However, the unique aspects of Avalanche's architecture provide enhanced scalability, making it a popular choice for developers seeking efficient and cost-effective blockchain solutions.
Dune provides extensive datasets for Avalanche C-Chain, offering detailed insights into transactions, smart contract interactions, and overall network health.
> [card] [Avalanche C-Chain docs](https://docs.avax.network)
>
> The official documentation for Avalanche C-Chain, with detailed guides on its technology, architecture, and developer resources
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Access detailed event logs from smart contracts to analyze contract activity and interactions
> [card] [Blocks](./raw/blocks)
>
> Explore data on blocks processed by the C-Chain, illustrating network throughput and activity
> [card] [Transactions](./raw/transactions)
>
> Transaction details that highlight the efficiency and speed of the Avalanche C-Chain
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of contract executions
# avalanche_c.blocks
Source: https://docs.dune.com/data-catalog/evm/avalanche/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Avalanche C-Chain.
## Table description
The `avalanche_c.blocks` table contains information about blocks in the avalanche_c blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM avalanche_c.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM avalanche_c.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM avalanche_c.blocks
GROUP BY 1
LIMIT 10`
# avalanche_c.creation_traces
Source: https://docs.dune.com/data-catalog/evm/avalanche/raw/creation-traces
Contract deployment records on Avalanche C-Chain — deployer address, factory context, and deployed bytecode.
## Table Description
The `avalanche_c.creation_traces` table contains information about the creation of smart contracts on the avalanche_c blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the avalanche_c blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the avalanche_c blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM avalanche_c.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM avalanche_c.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM avalanche_c.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# avalanche_c.logs
Source: https://docs.dune.com/data-catalog/evm/avalanche/raw/logs
Smart contract event logs on Avalanche C-Chain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `avalanche_c.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/avalanche_c/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM avalanche_c.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM avalanche_c.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM avalanche_c.logs
WHERE evt_block_number = 1000000`
# avalanche_c.traces
Source: https://docs.dune.com/data-catalog/evm/avalanche/raw/traces
Internal transaction traces on Avalanche C-Chain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `avalanche_c.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/avalanche_c/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM avalanche_c.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# avalanche_c.transactions
Source: https://docs.dune.com/data-catalog/evm/avalanche/raw/transactions
Every transaction on Avalanche C-Chain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `avalanche_c.transactions` table contains information about all transactions on the avalanche_c blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the avalanche_c blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/avalanche_c/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=avalanche_c\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM avalanche_c.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM avalanche_c.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM avalanche_c.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on b3
Source: https://docs.dune.com/data-catalog/evm/b3/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on B3 — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for b3 transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on b3.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=b3](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=b3)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on b3
Source: https://docs.dune.com/data-catalog/evm/b3/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on b3.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for b3 transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on b3.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=b3](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=b3)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on b3
Source: https://docs.dune.com/data-catalog/evm/b3/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on b3.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for b3 transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on b3.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=b3](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=b3)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=b3\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# B3 Call Tables
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the B3 network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# b3.contracts
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/contracts
Verified contract registry on B3 — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the b3 blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=contracts)
# Event Logs - B3
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/event-logs
Smart contracts on B3 emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# b3.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/logs-decoded
ABI-decoded event logs on B3 — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from b3 transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/b3/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on b3?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for b3 on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=logs_decoded)
# B3 Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/overview
Simplifying B3 smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/b3/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/b3/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/b3/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# b3.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/b3/decoded/traces-decoded
ABI-decoded function calls on B3 — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from b3 transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/b3/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=traces_decoded)
# B3 Overview
Source: https://docs.dune.com/data-catalog/evm/b3/overview
B3 data on Dune
B3 is a fun-first gaming ecosystem designed to bring the next generation of gamers and game creators onchain. Created by a team of Base/Coinbase alumni and OG Ethereum contributors, B3 provides a seamless gaming experience without the need for wallets, bridging, or switching networks. Players can dive into games instantly—just visit [Basement.fun](https://basement.fun) to experience it yourself.
**Fast, Cheap, and Scalable:**
B3 is a Layer 3 (L3) solution that settles on Base, delivering lightning-fast transactions with sub-cent fees. It is purpose-built for gamers, offering dedicated blockspace that scales to meet the demands of high-throughput games. Whether you're building or playing, B3 ensures a smooth, low-cost experience.
**Onchain is the New Online:**
B3 envisions a future where onchain gaming becomes the new standard for online interactions, empowering game creators and rewarding creativity. B3 allows anyone to play games from anywhere, all while leveraging the security and scalability of Base.
**Scalable Architecture:**
B3's rollup engine offers horizontal scaling through application-layer sharding. By orchestrating dedicated sidecars for games and other computationally heavy operations, B3 can handle web2-scale games while maintaining near gasless transactions.
**Built on Base:**
As a secure, low-cost Layer 2 incubated by Coinbase, Base provides the ideal foundation for B3. Leveraging Base as its settlement layer, B3 is positioned to further scale the Base ecosystem and contribute to its technical and product strategy.
> [card] [B3 documentation](https://docs.b3.fun/)
>
> Explore comprehensive documentation of B3, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the B3 network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on B3.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on B3.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# b3.blocks
Source: https://docs.dune.com/data-catalog/evm/b3/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for B3.
## Table description
The `b3.blocks` table contains information about blocks in the b3 blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM b3.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM b3.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM b3.blocks
GROUP BY 1
LIMIT 10`
# b3.creation_traces
Source: https://docs.dune.com/data-catalog/evm/b3/raw/creation-traces
Contract deployment records on B3 — deployer address, factory context, and deployed bytecode.
## Table Description
The `b3.creation_traces` table contains information about the creation of smart contracts on the b3 blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the b3 blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the b3 blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM b3.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM b3.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM b3.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# b3.logs
Source: https://docs.dune.com/data-catalog/evm/b3/raw/logs
Smart contract event logs on B3 — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `b3.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/b3/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM b3.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM b3.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM b3.logs
WHERE evt_block_number = 1000000`
# b3.traces
Source: https://docs.dune.com/data-catalog/evm/b3/raw/traces
Internal transaction traces on B3 — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `b3.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/b3/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM b3.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# b3.transactions
Source: https://docs.dune.com/data-catalog/evm/b3/raw/transactions
Every transaction on B3 — from, to, value, gas, calldata, and receipt status.
## Table Description
The `b3.transactions` table contains information about all transactions on the b3 blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the b3 blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/b3/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=b3\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM b3.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM b3.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM b3.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on base
Source: https://docs.dune.com/data-catalog/evm/base/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Base — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for base transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on base.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=base](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=base)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on base
Source: https://docs.dune.com/data-catalog/evm/base/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on base.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for base transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on base.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=base](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=base)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Base
Source: https://docs.dune.com/data-catalog/evm/base/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Base.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for base transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on base.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=base](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=base)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=base\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Base Call Tables
Source: https://docs.dune.com/data-catalog/evm/base/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Base network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# base.contracts
Source: https://docs.dune.com/data-catalog/evm/base/decoded/contracts
Verified contract registry on Base — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the base blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=contracts)
# Event Logs - Base
Source: https://docs.dune.com/data-catalog/evm/base/decoded/event-logs
Smart contracts on Base emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# base.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/base/decoded/logs-decoded
ABI-decoded event logs on Base — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from base transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/base/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on base?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for base on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=logs_decoded)
# Base Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/base/decoded/overview
Simplifying Base smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/base/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/base/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/base/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# base.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/base/decoded/traces-decoded
A description of the base.traces_decoded table on Dune
## Table Description
The `traces_decoded` table contains decoded traces from base transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/base/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=traces_decoded)
# Base Overview
Source: https://docs.dune.com/data-catalog/evm/base/overview
Base data on Dune
Base is a secure, low-cost, builder-friendly Ethereum Layer 2 solution incubated by Coinbase. It is designed to onboard the next billion users to the blockchain, emphasizing ease of use and accessibility for a global audience. The platform aims for progressive decentralization over the years, underlining its commitment to an open, global cryptoeconomy.
As an Ethereum L2, Base offers the security, stability, and scalability necessary to support your onchain applications. Developers can deploy any EVM-compatible codebase and smoothly transition users and assets from Ethereum L1, Coinbase, and other compatible chains.
**Big Features, Small Fees:**
Base provides an Ethereum Virtual Machine (EVM) environment at significantly lower costs. It introduces early access to new Ethereum features such as Account Abstraction (ERC4337), developer-friendly APIs for gasless transactions, and advanced smart contract wallets.
**Open Source Commitment:**
Built on the MIT-licensed OP Stack in collaboration with Optimism, Base contributes as the second Core Development team to ensure the OP Stack remains a public good accessible to all.
**Scaled by Coinbase:**
Base leverages Coinbase's robust infrastructure to offer decentralized apps enhanced product integration, straightforward fiat onramps, and access to a vast network of millions of verified users within the Coinbase ecosystem.
> [card] [Base documentation](https://base.org/docs)
>
> Explore comprehensive documentation on Base, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Base network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Base.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Base.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# base.blocks
Source: https://docs.dune.com/data-catalog/evm/base/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Base.
## Table description
The `base.blocks` table contains information about blocks in the base blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM base.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM base.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM base.blocks
GROUP BY 1
LIMIT 10`
# base.creation_traces
Source: https://docs.dune.com/data-catalog/evm/base/raw/creation-traces
Contract deployment records on Base — deployer address, factory context, and deployed bytecode.
## Table Description
The `base.creation_traces` table contains information about the creation of smart contracts on the base blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the base blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the base blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM base.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM base.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM base.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# base.logs
Source: https://docs.dune.com/data-catalog/evm/base/raw/logs
Smart contract event logs on Base — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `base.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/base/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM base.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM base.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM base.logs
WHERE evt_block_number = 1000000`
# base.traces
Source: https://docs.dune.com/data-catalog/evm/base/raw/traces
Internal transaction traces on Base — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `base.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/base/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM base.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# base.transactions
Source: https://docs.dune.com/data-catalog/evm/base/raw/transactions
Every transaction on Base — from, to, value, gas, calldata, and receipt status.
## Table Description
The `base.transactions` table contains information about all transactions on the base blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the base blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/base/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=base\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM base.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM base.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM base.transactions
ORDER BY gas_price DESC
LIMIT 10`
# beacon.attestations
Source: https://docs.dune.com/data-catalog/evm/beacon/attestations
Beacon chain attestations — validator votes on source, target, and head checkpoints.
## Table Description
The `beacon.attestations` table stores attestation data that is exchanged between validators and users on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the attestation was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the attestation was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the attestation was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **signature** | binary | BLS signature verifying the attestation's authenticity. |
| **aggregation_bits** | binary | Bitlist indicating participating validators in the committee. |
| **beacon_block_root** | binary | Root hash of the Beacon Chain block that the attestation votes for. |
| **index** | long | Committee index at the assigned slot for the attestation. |
| **slot** | long | Slot number to which the attestation pertains. |
| **source_epoch** | long | Epoch of the last justified checkpoint referred to as the source in the FFG vote. |
| **source_root** | binary | Root hash of the Beacon Chain block at the source checkpoint epoch. |
| **target_epoch** | long | Epoch that the attestation targets in its FFG vote. |
| **target_root** | binary | Root hash of the Beacon Chain block at the target checkpoint epoch. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=attestations](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=attestations)
# beacon.attester_slashings
Source: https://docs.dune.com/data-catalog/evm/beacon/attester-slashings
Beacon chain attester slashings — contradictory attestation violations.
## Table Description
The `beacon.attester_slashings` table stores attester slashing data that is exchanged between validators and users on the Beacon network. This table is partitioned by `block_date`.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the attester slashing was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the attester slashing was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the attester slashing was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **attestation_1_attesting_indices** | array | List of validator indices involved in the first conflicting attestation. |
| **attestation_1_beacon_block_root** | binary | Root hash of the Beacon Chain block that the first attestation votes for. |
| **attestation_1_index** | long | Committee index for the first attestation. |
| **attestation_1_slot** | long | Slot number to which the first attestation pertains. |
| **attestation_1_source_epoch** | long | Epoch of the last justified checkpoint referred to as the source in the first attestation. |
| **attestation_1_source_root** | binary | Root hash of the Beacon Chain block at the source checkpoint epoch in the first attestation. |
| **attestation_1_target_epoch** | long | Epoch that the first attestation targets in its FFG vote. |
| **attestation_1_target_root** | binary | Root hash of the Beacon Chain block at the target checkpoint epoch in the first attestation. |
| **attestation_1_signature** | binary | BLS signature associated with the first attestation. |
| **attestation_2_attesting_indices** | array | List of validator indices involved in the second conflicting attestation. |
| **attestation_2_beacon_block_root** | binary | Root hash of the Beacon Chain block that the second attestation votes for. |
| **attestation_2_index** | long | Committee index for the second attestation. |
| **attestation_2_slot** | long | Slot number to which the second attestation pertains. |
| **attestation_2_source_epoch** | long | Epoch of the last justified checkpoint referred to as the source in the second attestation. |
| **attestation_2_source_root** | binary | Root hash of the Beacon Chain block at the source checkpoint epoch in the second attestation. |
| **attestation_2_target_epoch** | long | Epoch that the second attestation targets in its FFG vote. |
| **attestation_2_target_root** | binary | Root hash of the Beacon Chain block at the target checkpoint epoch in the second attestation. |
| **attestation_2_signature** | binary | BLS signature associated with the second attestation. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=attester_slashings](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=attester_slashings)
# beacon.blobs
Source: https://docs.dune.com/data-catalog/evm/beacon/blobs
Beacon chain blob data — EIP-4844 blob sidecar data for rollup data availability.
## Table Description
The `beacon.blobs` table stores blob sidecar data that is exchanged between validators and users on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the blob sidecar was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the blob sidecar was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the blob sidecar was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **index** | long | Index of the blob sidecar within the block. |
| **proposer_index** | long | Validator index of the block proposer. |
| **kzg_commitment** | binary | KZG commitment for the blob, ensuring data availability and integrity. |
| **kzg_commitment_inclusion_proof** | binary | Proof that the KZG commitment is included in the block, verifying its validity. |
| **kzg_proof** | binary | KZG proof associated with the blob, used for data verification. |
| **body_root** | binary | Root hash of the block body, representing its contents. |
| **parent_root** | binary | Root hash of the parent block, linking to the previous block in the chain. |
| **state_root** | binary | Root hash of the state after processing the block, reflecting the system's state. |
| **signature** | binary | BLS signature of the block proposer, ensuring authenticity. |
| **blob** | binary | The actual blob data associated with the sidecar, containing arbitrary data stored temporarily. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=blobs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=blobs)
# beacon.blocks
Source: https://docs.dune.com/data-catalog/evm/beacon/blocks
Ethereum beacon chain blocks — slot, proposer, attestation count, and execution payload.
## Table Description
The `beacon.blocks` table stores information about blocks in the Ethereum 2.0 Beacon Chain, including the block proposer, block metadata, and associated blob sidecars.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **epoch** | long | Epoch number when the block was proposed. |
| **slot** | long | Slot number within the epoch when the block was proposed. |
| **time** | timestamp | Timestamp when the block was included in the chain. |
| **date** | date | Date corresponding to the time. |
| **parent_root** | binary | Root hash of the parent block, linking to the previous block in the chain. |
| **proposer_index** | long | Validator index of the block proposer. |
| **state_root** | binary | Root hash of the state after processing the block, reflecting the system's state. |
| **execution_optimistic** | boolean | Indicates if the block is considered optimistic in terms of execution. |
| **finalized** | boolean | Indicates if the block has been finalized. |
| **version** | string | Version of the block structure or protocol. |
| **signature** | binary | BLS signature of the block proposer, ensuring authenticity. |
| **graffiti** | binary | Arbitrary data included by the proposer, often used for identification or messages. |
| **randao_reveal** | binary | Revealed RANDAO value used for randomness in validator selection. |
| **eth1_block_hash** | binary | Hash of the latest Ethereum 1.0 block observed by the proposer. |
| **eth1_deposit_count** | long | Number of deposits from Ethereum 1.0 included up to this block. |
| **eth1_deposit_root** | binary | Root hash of the deposit tree containing Ethereum 1.0 deposits. |
| **execution_payload_timestamp** | long | Timestamp of the execution payload within the block. |
| **execution_payload_base_fee_per_gas** | long | Base fee per gas for transactions in the execution payload. |
| **execution_payload_block_hash** | binary | Hash of the execution payload block. |
| **execution_payload_block_number** | long | Block number of the execution payload. |
| **execution_payload_extra_data** | binary | Extra data field in the execution payload, containing arbitrary data. |
| **execution_payload_fee_recipient** | binary | Address of the fee recipient for transaction fees in the execution payload. |
| **execution_payload_gas_limit** | long | Gas limit for the execution payload block. |
| **execution_payload_gas_used** | long | Amount of gas used in the execution payload block. |
| **execution_payload_logs_bloom** | binary | Bloom filter for logs in the execution payload, used for quick log searches. |
| **execution_payload_parent_hash** | binary | Hash of the parent execution payload block. |
| **execution_payload_prev_randao** | binary | Previous RANDAO value in the execution payload, used for randomness. |
| **execution_payload_receipts_root** | binary | Root hash of the receipts trie for transactions in the execution payload. |
| **execution_payload_state_root** | binary | Root hash of the state trie after applying the execution payload. |
| **execution_payload_transactions** | array | List of transactions included in the execution payload. |
| **sync_committee_bits** | binary | Bitfield indicating which sync committee members have signed off on the block. |
| **sync_committee_signature** | binary | Aggregate signature from the sync committee members for the block. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=blocks)
# beacon.bls_to_execution_changes
Source: https://docs.dune.com/data-catalog/evm/beacon/bls-to-execution-changes
Beacon chain BLS-to-execution credential changes — withdrawal address updates.
## Table Description
The `beacon.bls_to_execution_changes` table stores information about changes in the Beacon Chain from BLS to execution, including block metadata and execution payload details.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the BLS to execution change was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the BLS to execution change was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the BLS to execution change was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **from_bls_pubkey** | binary | BLS public key associated with the validator's original withdrawal credentials. |
| **to_execution_address** | binary | Execution layer (Eth1) address to which the withdrawal credentials are being updated. |
| **validator_index** | long | Index of the validator requesting the change. |
| **signature** | binary | BLS signature authorizing the change from BLS to execution withdrawal credentials. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=bls_to_execution_changes](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=bls_to_execution_changes)
# beacon.deposits
Source: https://docs.dune.com/data-catalog/evm/beacon/deposits
Beacon chain deposits — ETH staking deposits with validator pubkeys and withdrawal credentials.
## Table Description
The `beacon.deposits` table stores deposit data for validators joining the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the deposit was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the deposit was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the deposit was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **amount** | long | Amount of ETH deposited, specified in Gwei. |
| **pubkey** | binary | BLS public key of the validator making the deposit. |
| **signature** | binary | BLS signature verifying the deposit data. |
| **withdrawal_credentials** | binary | Credentials specifying the withdrawal address or conditions. |
| **proof** | binary | Merkle proof demonstrating the inclusion of the deposit in the Ethereum 1.0 deposit contract. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=deposits](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=deposits)
# beacon.epoch_summaries
Source: https://docs.dune.com/data-catalog/evm/beacon/epoch-summaries
Beacon chain epoch summaries — participation rates, rewards, and finality data per epoch.
## Table Description
The `beacon.epoch_summaries` table is indexed from Lido. Stores summary data for each epoch on the Beacon Chain, including the number of validators, attestations, and other key metrics. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_date** | date | Date corresponding to the epoch. |
| **epoch** | bigint | Epoch number representing a specific period in the Beacon Chain. |
| **activation_queue_length** | bigint | Number of validators awaiting activation. |
| **activating_validators** | bigint | Number of validators activated during the epoch. |
| **active_validators** | bigint | Total number of active validators during the epoch. |
| **active_real_balance** | bigint | Total effective balance of active validators, measured in Gwei. |
| **active_balance** | bigint | Total balance of active validators, measured in Gwei. |
| **attesting_validators** | bigint | Number of validators who submitted attestations during the epoch. |
| **attesting_balance** | bigint | Total balance of attesting validators, measured in Gwei. |
| **target_correct_validators** | bigint | Number of validators whose attestations correctly identified the target block. |
| **target_correct_balance** | bigint | Total balance of target-correct validators, measured in Gwei. |
| **head_correct_validators** | bigint | Number of validators whose attestations correctly identified the head block. |
| **head_correct_balance** | bigint | Total balance of head-correct validators, measured in Gwei. |
| **attestations_for_epoch** | bigint | Number of attestations included in the epoch. |
| **attestations_in_epoch** | bigint | Number of attestations referencing the epoch. |
| **duplicate_attestations_for_epoch** | bigint | Number of duplicate attestations included in the epoch. |
| **proposer_slashings** | bigint | Number of proposer slashing events during the epoch. |
| **attester_slashings** | bigint | Number of attester slashing events during the epoch. |
| **deposits** | bigint | Number of deposits processed during the epoch. |
| **exiting_validators** | bigint | Number of validators exiting during the epoch. |
| **canonical_blocks** | bigint | Number of canonical blocks in the epoch. |
| **withdrawals** | bigint | Number of withdrawals processed during the epoch. |
| **updated_at** | timestamp | Last time the record was updated. |
| **ingested_at** | timestamp | Time when the record was ingested. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=epoch_summaries](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=epoch_summaries)
# beacon.operators
Source: https://docs.dune.com/data-catalog/evm/beacon/operators
Beacon chain operators — validator groupings by known staking entity or operator.
## Table Description
The `beacon.operators` table is indexed from Lido. Stores information about staking operators on the Beacon Chain, including their public keys and associated staking modules or services.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **index** | bigint | Unique identifier for the operator. |
| **operator_name** | varchar | Name of the staking operator. |
| **module_id** | bigint | Identifier linking the operator to a specific staking module or service. |
| **public_key** | varbinary | Operator's public key used for cryptographic operations. |
| **updated_at** | timestamp | Last time the record was updated. |
| **ingested_at** | timestamp | Time when the record was ingested. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=operators](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=operators)
# Beacon Overview
Source: https://docs.dune.com/data-catalog/evm/beacon/overview
Beacon Chain data on Dune
The Ethereum **Beacon Chain** is the backbone of Ethereum's transition to a Proof-of-Stake (PoS) consensus mechanism. Launched on December 1, 2020, it introduced PoS to the Ethereum ecosystem, enhancing security, scalability, and energy efficiency.
**Key Features:**
* **Proof-of-Stake Consensus:** The Beacon Chain manages a registry of validators who propose and attest to new blocks, replacing the energy-intensive Proof-of-Work system.
* **Validator Coordination:** It coordinates validators, ensuring the network's security and proper functioning by assigning responsibilities and managing rewards and penalties.
* **Foundation for Sharding:** The Beacon Chain lays the groundwork for future scalability improvements, such as sharding, which will enable the network to process more transactions concurrently.
**Data Catalog**
Explore the following datasets to gain insights into the Beacon Chain's operations:
> [card] [Attestations](./attestations)
>
> Records of validator attestations, which are votes for a specific block, contributing to consensus and chain finality.
> [card] [Attester Slashings](./attester-slashings)
>
> Details of penalties imposed on validators who have violated protocol rules by signing conflicting attestations.
> [card] [Blob Sidecars](./blobs)
>
> Data related to blob sidecars, which are auxiliary data structures associated with blocks.
> [card] [Blocks](./blocks)
>
> Information on Beacon Chain blocks, including proposer details, parent roots, and state roots.
> [card] [BLS to Execution Changes](./bls-to-execution-changes)
>
> Records of changes from BLS public keys to execution addresses, facilitating validator withdrawals.
> [card] [Deposits](./deposits)
>
> Details of ETH deposits made by validators to join the Beacon Chain and participate in staking.
> [card] [Epoch Summaries](./epoch-summaries)
>
> Summarized data for each epoch, providing insights into validator performance and network health.
> [card] [Operators](./operators)
>
> Information about staking operators managing validator nodes on the Beacon Chain.
> [card] [Proposer Slashings](./proposer-slashings)
>
> Details of penalties imposed on validators who have proposed conflicting blocks.
> [card] [Validator Day Summaries](./validator-day-summaries)
>
> Daily summaries of validator activities, balances, and performance metrics.
> [card] [Voluntary Exits](./voluntary-exits)
>
> Records of validators voluntarily exiting the active set, ceasing their participation in consensus duties.
> [card] [Withdrawals](./withdrawals)
>
> Information on ETH withdrawals by validators from the Beacon Chain to the execution layer.
These datasets provide a comprehensive view of the Beacon Chain's functionality, validator activities, and the overall health of Ethereum's PoS consensus layer.
# beacon.proposer_slashings
Source: https://docs.dune.com/data-catalog/evm/beacon/proposer-slashings
Beacon chain proposer slashings — double-proposal violations and penalized validators.
## Table Description
The `beacon.proposer_slashings` table stores information about proposer slashings on the Beacon Chain. A proposer slashing occurs when a validator proposes two conflicting blocks at the same slot. This table contains information about the conflicting blocks and the proposer responsible for the slashing.
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the proposer slashing was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the proposer slashing was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the proposer slashing was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **signed_header_1_body_root** | binary | Root hash of the body of the first conflicting block header. |
| **signed_header_1_parent_root** | binary | Root hash of the parent block referenced by the first conflicting block header. |
| **signed_header_1_proposer_index** | long | Validator index of the proposer for the first conflicting block. |
| **signed_header_1_slot** | long | Slot number for which the first conflicting block was proposed. |
| **signed_header_1_state_root** | binary | Root hash of the state after processing the first conflicting block. |
| **signed_header_1_signature** | binary | BLS signature of the proposer for the first conflicting block. |
| **signed_header_2_body_root** | binary | Root hash of the body of the second conflicting block header. |
| **signed_header_2_parent_root** | binary | Root hash of the parent block referenced by the second conflicting block header. |
| **signed_header_2_proposer_index** | long | Validator index of the proposer for the second conflicting block. |
| **signed_header_2_slot** | long | Slot number for which the second conflicting block was proposed. |
| **signed_header_2_state_root** | binary | Root hash of the state after processing the second conflicting block. |
| **signed_header_2_signature** | binary | BLS signature of the proposer for the second conflicting block. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=proposer_slashings](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=proposer_slashings)
# beacon.raw
Source: https://docs.dune.com/data-catalog/evm/beacon/raw
Raw beacon chain data — unprocessed consensus layer records.
## Table Description
The `beacon.raw` table stores raw data about blocks proposed on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **epoch** | long | Epoch number during which the block was proposed. |
| **block_slot** | long | Slot number within the epoch when the block was proposed. |
| **block_time** | timestamp | Timestamp indicating when the block was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=raw](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=raw)
# beacon.validator_day_summaries
Source: https://docs.dune.com/data-catalog/evm/beacon/validator-day-summaries
Daily beacon chain validator summaries — rewards, penalties, and attestation performance.
## Table Description
The `beacon.validator_day_summaries` table is indexed from Lido. Stores daily summaries of validator activity on the Beacon Chain, including balance changes, rewards, attestations, and sync committee messages.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_date** | date | Date corresponding to the summary period. |
| **validator_index** | bigint | Unique identifier for the validator. |
| **start_timestamp** | timestamp | Timestamp marking the beginning of the summary period. |
| **start_balance** | bigint | Validator's balance at the start of the period, measured in Gwei. |
| **start_effective_balance** | bigint | Validator's effective balance at the start of the period, used for reward calculations, measured in Gwei. |
| **capital_change** | bigint | Net change in the validator's balance due to deposits or withdrawals during the period, measured in Gwei. |
| **reward_change** | bigint | Net rewards earned by the validator during the period, measured in Gwei. |
| **effective_balance_change** | bigint | Change in the validator's effective balance during the period, measured in Gwei. |
| **proposals** | bigint | Number of block proposals assigned to the validator during the period. |
| **proposals_included** | bigint | Number of the validator's proposed blocks that were included in the chain during the period. |
| **attestations** | bigint | Number of attestations made by the validator during the period. |
| **attestations_included** | bigint | Number of the validator's attestations that were included in the chain during the period. |
| **attestations_source_timely** | bigint | Number of the validator's attestations that were timely for the source checkpoint during the period. |
| **attestations_target_correct** | bigint | Number of the validator's attestations that correctly identified the target checkpoint during the period. |
| **attestations_target_timely** | bigint | Number of the validator's attestations that were timely for the target checkpoint during the period. |
| **attestations_head_correct** | bigint | Number of the validator's attestations that correctly identified the head block during the period. |
| **attestations_head_timely** | bigint | Number of the validator's attestations that were timely for the head block during the period. |
| **attestations_inclusion_delay** | double | Average delay (in slots) between the validator's attestation and its inclusion in the chain during the period. |
| **sync_committee_messages** | bigint | Number of sync committee messages signed by the validator during the period. |
| **sync_committee_messages_included** | bigint | Number of the validator's sync committee messages that were included in the chain during the period. |
| **withdrawals** | bigint | Number of withdrawals made by the validator during the period. |
| **updated_at** | timestamp | Last time the record was updated. |
| **ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=validator_day_summaries](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=validator_day_summaries)
# beacon.validators
Source: https://docs.dune.com/data-catalog/evm/beacon/validators
Beacon chain validator registry — pubkey, status, balance, and activation/exit epochs.
## Table Description
The `beacon.validators` table stores data about validators on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **index** | bigint | Unique identifier assigned to the validator upon registration. |
| **slashed** | boolean | Indicates whether the validator has been slashed for misbehavior (`true` if slashed, `false` otherwise). |
| **public_key** | varbinary | Validator's BLS public key used for signing messages. |
| **activation_eligibility_epoch** | bigint | Epoch when the validator became eligible for activation after meeting the minimum balance requirement. |
| **activation_epoch** | bigint | Epoch when the validator was activated and began participating in the consensus process. |
| **exit_epoch** | bigint | Epoch when the validator exited the active validator set. |
| **withdrawable_epoch** | bigint | Epoch when the validator's funds become withdrawable after exiting. |
| **effective_balance** | bigint | Validator's balance used for reward calculations, capped at a maximum value, measured in Gwei. |
| **withdrawal_credentials** | varbinary | Credentials used to specify the destination for withdrawn funds. |
| **updated_at** | timestamp | Last time the record was updated |
| **ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=validators](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=validators)
# beacon.voluntary_exits
Source: https://docs.dune.com/data-catalog/evm/beacon/voluntary-exits
Beacon chain voluntary exits — validators initiating the exit process.
## Table Description
The `beacon.voluntary_exits` table stores data about voluntary exits initiated by validators on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the voluntary exit was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the voluntary exit was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the voluntary exit was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **validator_index** | long | Unique identifier of the validator initiating the voluntary exit. |
| **signature** | binary | BLS signature authorizing the voluntary exit, ensuring its authenticity. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=voluntary_exits](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=voluntary_exits)
# beacon.withdrawals
Source: https://docs.dune.com/data-catalog/evm/beacon/withdrawals
Beacon chain withdrawals — validator ETH withdrawals with amounts and recipient addresses.
## Table Description
The `beacon.withdrawals` table stores data about withdrawals initiated by validators on the Beacon network. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_epoch** | long | Epoch number when the block containing the withdrawal was proposed. |
| **block_slot** | long | Slot number within the epoch when the block containing the withdrawal was proposed. |
| **block_time** | timestamp | Timestamp when the block containing the withdrawal was included in the chain. |
| **block_date** | date | Date corresponding to the block_time. |
| **address** | binary | Execution layer (ETH1) address receiving the withdrawn ETH. |
| **amount** | long | Amount of ETH withdrawn, specified in Gwei. |
| **index** | long | Unique identifier for the withdrawal operation. |
| **validator_index** | long | Index of the validator initiating the withdrawal. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=withdrawals](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=beacon\&table_name_t6f0df=withdrawals)
# dex_aggregator.trades on berachain
Source: https://docs.dune.com/data-catalog/evm/berachain/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Berachain — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for berachain transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on berachain.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=berachain](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=berachain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on berachain
Source: https://docs.dune.com/data-catalog/evm/berachain/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on berachain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for berachain transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on berachain.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=berachain](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=berachain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on berachain
Source: https://docs.dune.com/data-catalog/evm/berachain/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on berachain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for berachain transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on berachain.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=berachain](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=berachain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=berachain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Berachain Call Tables
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Berachain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# berachain.contracts
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/contracts
Verified contract registry on Berachain — contract name, namespace, ABI, and deployment metadata.
## Table Description
The `berachain.contracts` table contains information about the contracts Dune has decoded on the Berachain blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=contracts)
# Event Logs - Berachain
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/event-logs
Smart contracts on Berachain emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# berachain.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/logs-decoded
ABI-decoded event logs on Berachain — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from Berachain transactions. The table matches `topic0` to the event signature and the corresponding event name. The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Event Logs](/data-catalog/evm/berachain/decoded/event-logs).
The `berachain.logs_decoded` table is great for gaining a high-level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=logs_decoded)
# Berachain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/overview
Simplifying Berachain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/berachain/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/berachain/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/berachain/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# berachain.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/berachain/decoded/traces-decoded
ABI-decoded function calls on Berachain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from Berachain transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/berachain/decoded/call-tables).
The `berachain.traces_decoded` table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=traces_decoded)
# Berachain Overview
Source: https://docs.dune.com/data-catalog/evm/berachain/overview
Berachain data on Dune
Berachain is a high-performance EVM-Identical Layer 1 blockchain utilizing Proof-of-Liquidity (PoL), and built on top of the modular EVM-focused consensus client framework BeaconKit. It combines the security and decentralization of traditional blockchains with innovative tokenomics and liquidity mechanisms.
**EVM Identical Architecture:**
Berachain's execution layer is identical to the Ethereum Virtual Machine (EVM) runtime environment seen on Ethereum Mainnet. This means it uses existing unmodified execution clients like Geth, Reth, Erigon, Nethermind, and more to handle executing smart contracts, and supports all the tooling that comes native with the EVM.
**Proof-of-Liquidity (PoL):**
Berachain introduces a novel consensus mechanism that radically changes L1 economics, prioritizing users and applications over validator rewards. Network incentives go towards enriching ecosystem liquidity, contributing to:
* Efficient trading
* Price stability
* Chain security
* Network/user growth
**BeaconKit Framework:**
Built on BeaconKit, a modular framework for building EVM consensus clients, Berachain integrates the benefits of CometBFT consensus, including increased composability and single slot finality (SSF).
> [card] [Berachain documentation](https://docs.berachain.com/learn/)
>
> Access the official documentation for Berachain, providing comprehensive information about its architecture, features, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into interactions and activities on the Berachain network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed using Berachain's PoL technology, reflecting the network's capacity for high transaction throughput.
> [card] [Transactions](./raw/transactions)
>
> Detailed transaction data, showcasing the operational efficiency and cost-effectiveness of Berachain's solution.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of smart contract executions on Berachain.
# berachain.blocks
Source: https://docs.dune.com/data-catalog/evm/berachain/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Berachain.
## Table Description
The `berachain.blocks` table contains information about blocks in the Berachain blockchain. Each block contains a collection of transactions that are hashed and added to the blockchain. Berachain uses CometBFT consensus through BeaconKit, providing single slot finality (SSF) for faster and more secure block confirmations.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=blocks)
# berachain.creation_traces
Source: https://docs.dune.com/data-catalog/evm/berachain/raw/creation-traces
Contract deployment records on Berachain — deployer address, factory context, and deployed bytecode.
## Table Description
The `creation_traces` table contains information about the creation of smart contracts on the Berachain blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the Berachain blockchain.
The `berachain.creation_traces` table is a subset of the `traces` table, which contains information about all traces on the Berachain blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type` = `create`.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=creation_traces)
# berachain.logs
Source: https://docs.dune.com/data-catalog/evm/berachain/raw/logs
Smart contract event logs on Berachain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `berachain.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed on Berachain. As an EVM-identical chain, Berachain maintains complete compatibility with Ethereum's logging system while benefiting from its unique PoL consensus mechanism. Logs consist of:
* Topic list: a list of 0 to 4 32-byte data topics
* data: contains non-indexed data
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=logs)
# berachain.traces
Source: https://docs.dune.com/data-catalog/evm/berachain/raw/traces
Internal transaction traces on Berachain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `berachain.traces` table contains the traces of transactions executed on the Ethereum Virtual Machine (EVM). It includes traces of both top-level and internal transactions. Traces are the result of transaction execution and are used to debug and understand how transactions are processed. They are also known as `internal transactions`.
This is the raw version of this table, for decoded transaction calls, see the [call tables](/data-catalog/evm/berachain/decoded/call-tables) section.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=traces)
# berachain.transactions
Source: https://docs.dune.com/data-catalog/evm/berachain/raw/transactions
Every transaction on Berachain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `berachain.transactions` table contains information about all transactions on the Berachain blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, and gas price. Berachain's EVM-identical architecture ensures full compatibility with Ethereum tooling while leveraging its Proof-of-Liquidity (PoL) mechanism for enhanced efficiency.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=berachain\&table_name_t6f0df=transactions)
# dex_aggregator.trades on blast
Source: https://docs.dune.com/data-catalog/evm/blast/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Blast — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for blast transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on blast.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=blast](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=blast)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on Blast
Source: https://docs.dune.com/data-catalog/evm/blast/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on Blast.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for blast transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on blast.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=blast](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=blast)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Blast
Source: https://docs.dune.com/data-catalog/evm/blast/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Blast.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for blast transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on blast.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=blast](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=blast)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=blast\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Blast Call Tables
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Blast network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# blast.contracts
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/contracts
Verified contract registry on Blast — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the blast blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=contracts)
# Event Logs - Blast
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/event-logs
Smart contracts on Blast emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# blast.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/logs-decoded
ABI-decoded event logs on Blast — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from blast transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/blast/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on blast?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for blast on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=logs_decoded)
# Blast Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/overview
Simplifying Blast smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/blast/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/blast/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/blast/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# blast.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/blast/decoded/traces-decoded
ABI-decoded function calls on Blast — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from blast transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/blast/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=traces_decoded)
# Blast Overview
Source: https://docs.dune.com/data-catalog/evm/blast/overview
Blast data on Dune Analytics
> [!WARNING]
>
> Starting from the 26th of September 2025 Dune is not live ingesting and indexing Blast data. The historical data of the chain will remain available to be used.
Blast is an Ethereum Layer 2 (L2) that natively provides yield for ETH and stablecoins. Blast is an EVM-compatible, optimistic rollup that raises the baseline yield for users and developers without changing the experience cryptonatives expect. This yield makes it possible to create new business models for Dapps that aren't possible on other L2s.
### Key Features:
* **Yield:** Blast is the only Ethereum L2 with native yield for ETH and stablecoins. The yield comes from ETH staking and RWA protocols. The default interest rate on other L2s is 0%. On Blast, it's 4% for ETH and 5% for stablecoins.
* **Auto Rebasing:** ETH itself, not WETH, STETH, or any other ERC20, is natively rebasing on the L2. The ETH balance for EOAs is automatically rebasing. Smart contracts can opt-in to this rebasing, making it easy for existing Dapps to deploy on Blast without any changes. USDB, Blast's native stablecoin, is automatically rebasing as well. Like ETH on Blast, USDB is automatically rebasing for EOAs. USDB is also automatically rebasing for smart contracts. Smart contracts can opt-out from this rebasing.
* **L1 Staking:** Blast only became possible following Ethereum's Shanghai upgrade. ETH yield from L1 staking, initially Lido, is automatically transferred to users via rebasing ETH on the L2. In the future, the Blast community will have the power to supplement, or even fully replace, Lido with Blast-native solutions or other third-party protocols.
* **T-Bill Yield:** Users who bridge stablecoins receive USDB, Blast's auto-rebasing stablecoin. The yield for USDB comes from MakerDAO's on-chain T-Bill protocol. USDB can be redeemed for DAI when bridging back to Ethereum. In the future, the Blast community will have the power to supplement, or even fully replace, MakerDAO with Blast-native solutions or other third-party protocols.
* **Gas Revenue Sharing:** Other L2s keep revenue from gas fees for themselves. Blast gives net gas revenue back to dApps programmatically. dApps developers can keep this revenue for themselves or use it to subsidize gas fees for users.
> [card] [Blast documentation](https://docs.blast.io/)
>
> Explore comprehensive documentation on Blast, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Blast network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Blast.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Blast.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# blast.blocks
Source: https://docs.dune.com/data-catalog/evm/blast/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Blast.
## Table description
The `blast.blocks` table contains information about blocks in the blast blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM blast.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM blast.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM blast.blocks
GROUP BY 1
LIMIT 10`
# blast.creation_traces
Source: https://docs.dune.com/data-catalog/evm/blast/raw/creation-traces
Contract deployment records on Blast — deployer address, factory context, and deployed bytecode.
## Table Description
The `blast.creation_traces` table contains information about the creation of smart contracts on the blast blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the blast blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the blast blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM blast.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM blast.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM blast.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# blast.logs
Source: https://docs.dune.com/data-catalog/evm/blast/raw/logs
Smart contract event logs on Blast — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `blast.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/blast/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM blast.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM blast.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM blast.logs
WHERE evt_block_number = 1000000`
# blast.traces
Source: https://docs.dune.com/data-catalog/evm/blast/raw/traces
Internal transaction traces on Blast — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `blast.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/blast/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM blast.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# blast.transactions
Source: https://docs.dune.com/data-catalog/evm/blast/raw/transactions
Every transaction on Blast — from, to, value, gas, calldata, and receipt status.
## Table Description
The `blast.transactions` table contains information about all transactions on the blast blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the blast blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/blast/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=blast\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM blast.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM blast.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM blast.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on bnb
Source: https://docs.dune.com/data-catalog/evm/bnb/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on BNB Chain — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for bnb transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on bnb.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=bnb](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=bnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on bnb
Source: https://docs.dune.com/data-catalog/evm/bnb/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on bnb.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for bnb transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on bnb.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=bnb](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=bnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on bnb
Source: https://docs.dune.com/data-catalog/evm/bnb/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on bnb.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for bnb transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on bnb.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=bnb](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=bnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=bnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# BNB Chain Call Tables
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the BNB Chain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# bnb.contracts
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/contracts
Verified contract registry on BNB Chain — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the bnb blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=contracts)
# Event Logs - BNB
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/event-logs
Smart contracts on BNB emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# bnb.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/logs-decoded
ABI-decoded event logs on BNB Chain — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from bnb transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/bnb/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on bnb?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for bnb on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=logs_decoded)
# BNB Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/overview
Simplifying BNB Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/bnb/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/bnb/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/bnb/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# bnb.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/bnb/decoded/traces-decoded
ABI-decoded function calls on BNB Chain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from bnb transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/bnb/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=traces_decoded)
# BNB Chain Overview
Source: https://docs.dune.com/data-catalog/evm/bnb/overview
BNB Chain data on Dune
BNB Chain is a high-performance blockchain network developed by Binance that supports the creation and functionality of decentralized applications (dApps). It is designed to provide scalability and high throughput with low transaction costs, targeting a broad and global user base.
BNB Chain operates as a dual-chain architecture, which combines the capabilities of Binance Chain (BC) and Binance Smart Chain (BSC) into a single ecosystem. This design supports interoperability and flexible user experiences, allowing transfers and cross-chain communication between different blockchains.
**Efficient and Economical:**
BNB Chain provides a scalable infrastructure with significantly reduced transaction fees, making it accessible for a wide range of applications, from small transactions to large-scale dApps.
**EVM Compatibility:**
It fully supports Ethereum Virtual Machine (EVM) compatible applications, enabling developers to migrate Ethereum-based dApps to BNB Chain with minimal adjustments and utilize the existing developer tools and ecosystem.
**Robust Community and Ecosystem:**
BNB Chain benefits from the strong community support and the extensive ecosystem of Binance, including integrations with Binance’s marketplaces, services, and large user base.
> [card] [BNB Chain documentation](https://docs.bnbchain.org)
>
> Access the official documentation for BNB Chain, offering detailed guides on its technology, architecture, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, offering insights into interactions and activities on BNB Chain.
> [card] [Blocks](./raw/blocks)
>
> Data on blocks processed, indicating network activity and operational capacity on BNB Chain.
> [card] [Transactions](./raw/transactions)
>
> Detailed information on transactions, illustrating operational efficiency and execution on the network.
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of smart contract executions.
# bnb.blocks
Source: https://docs.dune.com/data-catalog/evm/bnb/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for BNB Chain.
## Table description
The `bnb.blocks` table contains information about blocks in the bnb blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM bnb.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM bnb.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM bnb.blocks
GROUP BY 1
LIMIT 10`
# bnb.creation_traces
Source: https://docs.dune.com/data-catalog/evm/bnb/raw/creation-traces
Contract deployment records on BNB Chain — deployer address, factory context, and deployed bytecode.
## Table Description
The `bnb.creation_traces` table contains information about the creation of smart contracts on the bnb blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the bnb blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the bnb blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM bnb.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM bnb.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM bnb.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# bnb.logs
Source: https://docs.dune.com/data-catalog/evm/bnb/raw/logs
Smart contract event logs on BNB Chain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `bnb.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM bnb.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM bnb.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM bnb.logs
WHERE evt_block_number = 1000000`
# bnb.traces
Source: https://docs.dune.com/data-catalog/evm/bnb/raw/traces
Internal transaction traces on BNB Chain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `bnb.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM bnb.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# bnb.transactions
Source: https://docs.dune.com/data-catalog/evm/bnb/raw/transactions
Every transaction on BNB Chain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `bnb.transactions` table contains information about all transactions on the bnb blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the bnb blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bnb\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM bnb.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM bnb.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM bnb.transactions
ORDER BY gas_price DESC
LIMIT 10`
# BOB Overview
Source: https://docs.dune.com/data-catalog/evm/bob/overview
BOB data on Dune
## What is BOB?
BOB ("Build on Bitcoin") is a first-of-its-kind hybrid Layer-2 powered by Bitcoin and Ethereum. It combines the security, liquidity, and userbase of Bitcoin with the innovation capabilities of Ethereum's EVM. BOB aims to become the most secure and accessible Layer-2 for developers and users.
### Why Hybrid L2?
BOB leverages Bitcoin’s robustness and Ethereum’s smart contract capabilities to bridge the gap between mass adoption and innovation. It allows developers to build dapps on a network with the highest security and user base while providing Bitcoin users access to Ethereum's innovative ecosystem without leaving the Bitcoin network.
### BOB Architecture
#### BOB Stack

**Rollup Layer**: Utilizing Bitcoin’s PoW security and native Ethereum bridge, BOB initially launches on the OP stack, aiming to settle directly on Bitcoin L1 using merged mining and optimistic rollup mechanisms.
**EVM Core**: At its core, BOB leverages Ethereum's EVM, supporting Solidity smart contracts, existing developer tooling, wallets, and infrastructure components like block explorers and data analytics tools.
**Rust zkVM**: Supporting Bitcoin’s Rust libraries through RISC Zero zkVM, enabling off-chain execution of Rust programs with ZK proofs verified in EVM smart contracts. This paves the way for future ZK rollups on Bitcoin.
**Bitcoin Bridges**: BOB provides trustless access to Bitcoin block and transactional data via a BTC light client, supporting a range of decentralized and institutional Bitcoin bridges for seamless interaction with Ethereum assets.
**BOB SDK**: A comprehensive toolkit for developers building on Bitcoin, offering Solidity contracts to interact with Bitcoin assets, improved APIs, and tools for a unified BTC and EVM wallet experience.
#### BOB Rollup Design
BOB’s hybrid L2 design will be launched in multiple stages:
* **Phase 1 ("Launch")**: Bootstrapping as an ETH rollup.
* **Phase 2**: Bitcoin PoW security and economic alignment through merged mining.
* **Phase 3**: Hybrid L2 with settlement on Bitcoin and Ethereum, leveraging BitVM for security.
> [card] [BOB documentation](https://docs.gobob.xyz/docs/learn/introduction/stack)
>
> Explore comprehensive documentation on BOB, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the BOB network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on BOB.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on BOB.
> [card] [Traces](./raw/traces)
>
> Enhanced transaction data, including internal transactions invoked by top-level transactions.
# bob.blocks
Source: https://docs.dune.com/data-catalog/evm/bob/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for BOB.
## Table description
The `bob.blocks` table contains information about blocks in the bob blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM bob.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM bob.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM bob.blocks
GROUP BY 1
LIMIT 10`
# bob.logs
Source: https://docs.dune.com/data-catalog/evm/bob/raw/logs
Smart contract event logs on BOB — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `bob.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bob/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM bob.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM bob.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM bob.logs
WHERE evt_block_number = 1000000`
# bob.traces
Source: https://docs.dune.com/data-catalog/evm/bob/raw/traces
Internal transaction traces on BOB — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `bob.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bob/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM bob.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# bob.transactions
Source: https://docs.dune.com/data-catalog/evm/bob/raw/transactions
Every transaction on BOB — from, to, value, gas, calldata, and receipt status.
## Table Description
The `bob.transactions` table contains information about all transactions on the bob blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the bob blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/bob/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=bob\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM bob.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM bob.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM bob.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on boba
Source: https://docs.dune.com/data-catalog/evm/boba/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Boba — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for boba transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on boba.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=boba](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=boba)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on boba
Source: https://docs.dune.com/data-catalog/evm/boba/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on boba.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for boba transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on boba.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=boba](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=boba)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Boba
Source: https://docs.dune.com/data-catalog/evm/boba/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Boba.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for boba transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on boba.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=boba](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=boba)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=boba\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Boba Call Tables
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Boba network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# boba.contracts
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/contracts
Verified contract registry on Boba — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the boba blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=contracts)
# Event Logs - Boba
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/event-logs
Smart contracts on Boba emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# boba.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/logs-decoded
ABI-decoded event logs on Boba — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from boba transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/boba/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on boba?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for boba on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=logs_decoded)
# Boba Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/overview
Simplifying Boba smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/boba/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/boba/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/boba/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# boba.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/boba/decoded/traces-decoded
ABI-decoded function calls on Boba — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from boba transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/boba/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=traces_decoded)
# Boba Overview
Source: https://docs.dune.com/data-catalog/evm/boba/overview
Boba data on Dune Analytics
Boba is an Ethereum Layer 2 (L2) optimistic rollup that offers fast transactions and low fees. It is EVM-compatible, allowing developers to easily deploy existing Ethereum smart contracts on Boba. Some key features of Boba include:
* **Fast Transactions:** Boba provides fast transaction confirmations by leveraging optimistic rollups, enabling high throughput and scalability.
* **Low Fees:** By processing transactions off-chain and only posting data back to Ethereum for finality, Boba offers significantly lower transaction fees compared to Ethereum mainnet.
* **EVM Compatibility:** Boba is fully compatible with the Ethereum Virtual Machine (EVM), allowing developers to deploy existing Ethereum smart contracts without modifications.
* **Security:** Boba inherits the security of Ethereum by leveraging fraud proofs and a challenge period to ensure the validity of state transitions.
> [card] [Boba documentation](https://docs.boba.network/)
>
> Explore comprehensive documentation on Boba, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Boba network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Boba.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Boba.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# boba.blocks
Source: https://docs.dune.com/data-catalog/evm/boba/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Boba.
## Table description
The `boba.blocks` table contains information about blocks in the boba blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM boba.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM boba.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM boba.blocks
GROUP BY 1
LIMIT 10`
# boba.creation_traces
Source: https://docs.dune.com/data-catalog/evm/boba/raw/creation-traces
Contract deployment records on Boba — deployer address, factory context, and deployed bytecode.
## Table Description
The `boba.creation_traces` table contains information about the creation of smart contracts on the boba blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the boba blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the boba blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM boba.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM boba.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM boba.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# boba.logs
Source: https://docs.dune.com/data-catalog/evm/boba/raw/logs
Smart contract event logs on Boba — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `boba.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/boba/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM boba.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM boba.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM boba.logs
WHERE evt_block_number = 1000000`
# boba.traces
Source: https://docs.dune.com/data-catalog/evm/boba/raw/traces
Internal transaction traces on Boba — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `boba.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/boba/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM boba.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# boba.transactions
Source: https://docs.dune.com/data-catalog/evm/boba/raw/transactions
Every transaction on Boba — from, to, value, gas, calldata, and receipt status.
## Table Description
The `boba.transactions` table contains information about all transactions on the boba blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the boba blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/boba/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=boba\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM boba.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM boba.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM boba.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on Celo
Source: https://docs.dune.com/data-catalog/evm/celo/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Celo — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for celo transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on celo.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=celo](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=celo)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on Celo
Source: https://docs.dune.com/data-catalog/evm/celo/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on Celo.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for celo transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on celo.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=celo](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=celo)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Celo
Source: https://docs.dune.com/data-catalog/evm/celo/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Celo.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for celo transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on celo.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=celo](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=celo)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=celo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Celo Call Tables
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Celo network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# celo.contracts
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/contracts
Verified contract registry on Celo — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the celo blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# celo.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/logs-decoded
ABI-decoded event logs on Celo — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from celo transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On celo, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/celo/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **celo.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=logs_decoded)
# Celo Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/overview
Simplifying Celo smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/celo/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/celo/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/celo/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# celo.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/celo/decoded/traces-decoded
ABI-decoded function calls on Celo — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from celo transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/celo/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=traces_decoded)
# Celo Overview
Source: https://docs.dune.com/data-catalog/evm/celo/overview
Celo data on Dune
Celo is a blockchain ecosystem focused on increasing cryptocurrency adoption among smartphone users. By leveraging mobile access, Celo aims to empower anyone with a smartphone to access financial services, send money to phone contacts, and pay for goods and services with crypto.
The Celo network utilizes a unique consensus algorithm and a stablecoin ecosystem to offer secure, fast, and low-cost transactions. It's designed to be light enough to run on mobile devices, reducing the barriers for entry and facilitating a user-friendly experience.
**Mobile-First Approach:**
Celo's architecture is specifically tailored for mobile users, supporting easy integration and operation on smartphones, which is essential for accessibility in regions with limited access to traditional banking.
**Stablecoin Ecosystem:**
The network supports various stablecoins pegged to fiat currencies, facilitating everyday transactions and reducing the volatility typically associated with cryptocurrencies.
**Decentralized Finance (DeFi) Capabilities:**
Celo extends the reach of DeFi applications by enabling a suite of decentralized apps that are accessible on mobile devices, broadening financial inclusion.
> [card] [Celo documentation](https://docs.celo.org)
>
> Access the official documentation for Celo, providing comprehensive information on its technology, mobile integration, and DeFi solutions.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions and activities within the Celo network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed, highlighting network activity and the performance of the mobile-first infrastructure.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and user engagement across the network.
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data for better analysis and understanding of contract executions on Celo.
# celo.blocks
Source: https://docs.dune.com/data-catalog/evm/celo/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Celo.
## Table description
The `celo.blocks` table contains information about blocks in the celo blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM celo.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM celo.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM celo.blocks
GROUP BY 1
LIMIT 10`
# celo.creation_traces
Source: https://docs.dune.com/data-catalog/evm/celo/raw/creation-traces
Contract deployment records on Celo — deployer address, factory context, and deployed bytecode.
## Table Description
The `celo.creation_traces` table contains information about the creation of smart contracts on the celo blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the celo blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the celo blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM celo.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM celo.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM celo.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# celo.logs
Source: https://docs.dune.com/data-catalog/evm/celo/raw/logs
Smart contract event logs on Celo — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `celo.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/celo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM celo.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM celo.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM celo.logs
WHERE evt_block_number = 1000000`
# celo.traces
Source: https://docs.dune.com/data-catalog/evm/celo/raw/traces
Internal transaction traces on Celo — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `celo.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/celo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM celo.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# celo.transactions
Source: https://docs.dune.com/data-catalog/evm/celo/raw/transactions
Every transaction on Celo — from, to, value, gas, calldata, and receipt status.
## Table Description
The `celo.transactions` table contains information about all transactions on the celo blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the celo blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/celo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=celo\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM celo.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM celo.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM celo.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on corn
Source: https://docs.dune.com/data-catalog/evm/corn/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Corn — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for corn transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on corn.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=corn](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=corn)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on corn
Source: https://docs.dune.com/data-catalog/evm/corn/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on corn.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for corn transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on corn.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=corn](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=corn)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on corn
Source: https://docs.dune.com/data-catalog/evm/corn/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on corn.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for corn transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on corn.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=corn](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=corn)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=corn\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Corn Call Tables
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Corn network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# corn.contracts
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/contracts
Verified contract registry on Corn — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the corn blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# corn.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/logs-decoded
ABI-decoded event logs on Corn — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from corn transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/corn/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on corn?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for corn on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=logs_decoded)
# Corn Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/overview
Simplifying Corn smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/corn/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/corn/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/corn/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# corn.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/corn/decoded/traces-decoded
ABI-decoded function calls on Corn — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from corn transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/corn/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=traces_decoded)
# Corn Overview
Source: https://docs.dune.com/data-catalog/evm/corn/overview
Corn data on Dune
## What is Corn?
Corn is a next-generation Ethereum Layer 2 network specifically designed to unlock the full potential of Bitcoin. Built on Arbitrum Orbit, it provides a Bitcoin-centric ecosystem that combines scalability, efficiency, and innovative features to enhance the Bitcoin ecosystem.
## Key Features
* **Bitcorn (BTCN)**: Native gas token of the network
* **popCORN System**: Provides long-term incentives for ecosystem participants
* **LayerZero Integration**: Enables seamless cross-chain asset transfers
* **Arbitrum Orbit**: Leverages Arbitrum's technology for scalability and efficiency
* **Stylus Support**: Allows developers to use multiple programming languages for smart contract development
## Why Corn?
Corn positions itself as the "Butter Network" with three main value propositions:
* Butter yield
* Butter BTC
* Butter vibes
It's designed to be the optimal platform for putting Bitcoin to work, creating a rich ecosystem of Bitcoin-focused applications and services.
## Technical Architecture
Built on Arbitrum Orbit, Corn inherits the robust technical foundation of Arbitrum while adding Bitcoin-specific optimizations:
### Development Features
* **Multiple Language Support**: Through Stylus integration, developers can write smart contracts in various programming languages
* **Bitcoin Integration**: Native support for Bitcoin-related operations and assets
* **Cross-chain Capabilities**: LayerZero integration for efficient cross-chain transactions
### Network Economics
* **Gas Token**: Bitcorn (BTCN)
* **Incentive Structure**: popCORN System for sustainable long-term ecosystem growth
> [card] [Corn Documentation](https://docs.usecorn.com)
>
> Official documentation for developers building on Corn - The Butter Network for Bitcoin
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Corn, reflecting network activity and capacity
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions, showcasing efficiency and operational execution
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions
# corn.blocks
Source: https://docs.dune.com/data-catalog/evm/corn/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Corn.
## Table description
The `corn.blocks` table contains information about blocks in the corn blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM corn.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM corn.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM corn.blocks
GROUP BY 1
LIMIT 10`
# corn.creation_traces
Source: https://docs.dune.com/data-catalog/evm/corn/raw/creation-traces
Contract deployment records on Corn — deployer address, factory context, and deployed bytecode.
## Table Description
The `corn.creation_traces` table contains information about the creation of smart contracts on the corn blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the corn blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the corn blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM corn.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM corn.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM corn.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# corn.logs
Source: https://docs.dune.com/data-catalog/evm/corn/raw/logs
Smart contract event logs on Corn — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `corn.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/corn/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM corn.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM corn.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM corn.logs
WHERE evt_block_number = 1000000`
# corn.traces
Source: https://docs.dune.com/data-catalog/evm/corn/raw/traces
Internal transaction traces on Corn — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `corn.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/corn/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM corn.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# corn.transactions
Source: https://docs.dune.com/data-catalog/evm/corn/raw/transactions
Every transaction on Corn — from, to, value, gas, calldata, and receipt status.
## Table Description
The `corn.transactions` table contains information about all transactions on the corn blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the corn blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/corn/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=corn\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM corn.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM corn.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM corn.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Cronos Call Tables
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Cronos network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# cronos.contracts
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/contracts
Verified contract registry on Cronos — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the cronos blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=contracts)
# Event Logs - Cronos
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/event-logs
Smart contracts on Cronos emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# cronos.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/logs-decoded
ABI-decoded event logs on Cronos — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from cronos transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/cronos/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on cronos?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for cronos on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=logs_decoded)
# Cronos Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/overview
Simplifying Cronos smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/cronos/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/cronos/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/cronos/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# cronos.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/cronos/decoded/traces-decoded
ABI-decoded function calls on Cronos — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from cronos transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/cronos/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=traces_decoded)
# Cronos Overview
Source: https://docs.dune.com/data-catalog/evm/cronos/overview
Cronos EVM blockchain data on Dune
## What is Cronos?
Cronos is an EVM-compatible Layer 1 blockchain built by Crypto.com. It runs on the Cosmos SDK with Ethermint, giving developers Ethereum-style smart contracts and tooling while connecting to the broader Crypto.com ecosystem. Dune indexes Cronos under the `cronos` schema namespace with standard EVM raw tables and ABI-decoded contract data.
## Key Features
* **EVM compatibility**: Deploy and interact with Solidity contracts using familiar Ethereum tooling (Hardhat, Foundry, etc.).
* **Cosmos interoperability**: Cronos is IBC-enabled and connects to the Crypto.org Chain hub for cross-chain asset flows.
* **DeFi ecosystem**: Home to VVS Finance, CronaSwap, Tectonic, and other Cronos-native protocols.
* **Low fees**: Sub-cent transaction costs make Cronos suitable for high-frequency DeFi and gaming use cases.
## EVM Specifics on Dune
* **Schema namespace**: `cronos` (query as `cronos.blocks`, `cronos.transactions`, etc.).
* **Chain ID**: `25` (mainnet).
* **Native gas token**: CRO (18 decimals).
* **Raw tables**: `blocks`, `transactions`, `logs`, `traces`, `creation_traces`.
* **Decoded infrastructure**: `cronos.contracts`, `cronos.logs_decoded`, `cronos.traces_decoded`.
* **Standard token events**: `erc20_cronos.evt_*`, `erc721_cronos.evt_*` (when materialized).
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/cronos/raw/blocks)
>
> Block, transaction, log, and trace data indexed from Cronos nodes.
> [card] [Decoded Data](/data-catalog/evm/cronos/decoded/overview)
>
> ABI-decoded contract interactions and events.
## Resources
> [card] [Cronos](https://cronos.org/)
>
> Cronos project home page.
> [card] [Block Explorer](https://explorer.cronos.com/)
>
> Cronos mainnet block explorer.
# cronos.blocks
Source: https://docs.dune.com/data-catalog/evm/cronos/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Cronos.
## Table description
The `cronos.blocks` table contains information about blocks in the cronos blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM cronos.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM cronos.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM cronos.blocks
GROUP BY 1
LIMIT 10`
# cronos.creation_traces
Source: https://docs.dune.com/data-catalog/evm/cronos/raw/creation-traces
Contract deployment records on Cronos — deployer address, factory context, and deployed bytecode.
## Table Description
The `cronos.creation_traces` table contains information about the creation of smart contracts on the cronos blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the cronos blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the cronos blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM cronos.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM cronos.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM cronos.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# cronos.logs
Source: https://docs.dune.com/data-catalog/evm/cronos/raw/logs
Smart contract event logs on Cronos — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `cronos.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/cronos/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM cronos.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM cronos.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM cronos.logs
WHERE evt_block_number = 1000000`
# cronos.traces
Source: https://docs.dune.com/data-catalog/evm/cronos/raw/traces
Internal transaction traces on Cronos — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `cronos.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/cronos/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM cronos.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# cronos.transactions
Source: https://docs.dune.com/data-catalog/evm/cronos/raw/transactions
Every transaction on Cronos — from, to, value, gas, calldata, and receipt status.
## Table Description
The `cronos.transactions` table contains information about all transactions on the cronos blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the cronos blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/cronos/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=cronos\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM cronos.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM cronos.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM cronos.transactions
ORDER BY gas_price DESC
LIMIT 10`
# degen Overview
Source: https://docs.dune.com/data-catalog/evm/degen/overview
degen data on Dune
Degen, an ERC-20 token launched in January 2024, has reshaped the Farcaster ecosystem by enabling Casters to reward others with DEGEN for posting quality content. Our points system recognizes unique posts and comments, effectively bridging the gap between online contributions and real-world value.
Degen has launched a layer 3 solution that settles transactions on the Base network. This solution is designed to provide a more efficient and scalable way to settle transactions related to \$DEGEN.
Degen Chain uses Arbitrum Orbit for rollups, Base for transaction settlements, and Arbitrum AnyTrust for data availability.
> [card] [degen website](https://www.degen.tips/)
>
> The official website of degen, providing information on the project, team, and community.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the degen network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on degen.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on degen.
# degen.blocks
Source: https://docs.dune.com/data-catalog/evm/degen/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Degen.
## Table description
The `degen.blocks` table contains information about blocks in the degen blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM degen.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM degen.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM degen.blocks
GROUP BY 1
LIMIT 10`
# degen.logs
Source: https://docs.dune.com/data-catalog/evm/degen/raw/logs
Smart contract event logs on Degen — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `degen.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/degen/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM degen.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM degen.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM degen.logs
WHERE evt_block_number = 1000000`
# degen.traces
Source: https://docs.dune.com/data-catalog/evm/degen/raw/traces
Internal transaction traces on Degen — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `degen.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/degen/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM degen.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# degen.transactions
Source: https://docs.dune.com/data-catalog/evm/degen/raw/transactions
Every transaction on Degen — from, to, value, gas, calldata, and receipt status.
## Table Description
The `degen.transactions` table contains information about all transactions on the degen blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the degen blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/degen/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=degen\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM degen.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM degen.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM degen.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on ethereum
Source: https://docs.dune.com/data-catalog/evm/ethereum/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Ethereum — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for ethereum transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ethereum.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=ethereum](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=ethereum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on ethereum
Source: https://docs.dune.com/data-catalog/evm/ethereum/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on ethereum.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ethereum transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ethereum.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ethereum](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ethereum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT Trades on Ethereum
Source: https://docs.dune.com/data-catalog/evm/ethereum/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Ethereum.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ethereum transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ethereum.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ethereum](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ethereum)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ethereum\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Ethereum Call Tables
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Ethereum network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [ERC20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of a transaction, this message call will be recorded in the Dune table [`uniswap_ethereum.UNI_call_decimals`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# ethereum.contracts
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/contracts
Verified contract registry on Ethereum — contract name, namespace, ABI, and deployment metadata.
## Table Description
The `ethereum.contracts` table contains information about the contracts Dune has decoded on the Ethereum blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there are multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](https://dune.com/decode)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# ethereum.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/logs-decoded
ABI-decoded event logs on Ethereum — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from ethereum transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On ethereum, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/ethereum/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **ethereum.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=logs_decoded)
# Ethereum Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/overview
Simplifying Ethereum smart contract analysis through human-readable tables.
### Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
* **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities
* **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data
* **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
* **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/ethereum/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/ethereum/decoded/call-tables)
## Which contracts have decoded data?
Contract submissions on Dune are driven by the community. Usually the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying [`[blockchain].contracts`](/data-catalog/evm/ethereum/decoded/contracts) tables, the [data explorer](/web-app/query-editor/data-explorer) or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable).
In order for them to be able to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated to an address on the respective chain and is permanently stored in this chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to be able to call the functions which are defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**.
The ABI documents names, types, and arguments precisely which allows us to interact with the smart contract using a somewhat human readable format. The ABI can be compiled using the high level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token.
On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog) the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
```sql theme={null}
SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5
```
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier. This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
```sql theme={null}
SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5
```
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
How exactly does this work?
Since we know which event we are looking at here, we can simply convert the encoded bytecode to decoded data by decoding the bytecode according to its datatype.
The structure for the `Transfer` event log of an ERC20 token will always be:
```solidity theme={null}
Transfer(address from, address to, uint256 value)
```
This basically tells us that topic2 and topic3 are of the type `address`(32bytes) and are respectively the sender and recipient of the token transfer. An event log only has 3 indexed fields, so the `data` field is used to store the information about how much units of the token have been moved in this transaction. This field is called `value`.
Since `topic0` always is just the Keccak-256 hash of the signature of the event, we are left with decoding `topic1`, `topic2` and `data`.
In this case, they map out like this:
| raw data field | decoded data description | raw data | decoded data |
| - | - | - | - |
| topic0 | keccak('Transfer(address,address,uint256'')) | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef | not needed, this table only contains event logs from the `transfer` event log |
| topic1 | from | 0x00000000000000000000000075e89d5979e4f6fba9f97c104c2f0afb3f1dcb88 | 0x75e89d5979e4f6fba9f97c104c2f0afb3f1dcb88 |
| topic2 | to | 0x00000000000000000000000087d9da48db6e1f925cb67d3b7d2a292846c24cf7 | 0x87d9da48db6e1f925cb67d3b7d2a292846c24cf7 |
| data | value | 0x00000000000000000000000000000000000000000000001a894d51f85cb08000 | 489509000000000000000 |
Now what works for a single erc20 token, works for all erc20 tokens. We can use defined interfaces to decode the data of any erc20 token transfer event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and Etherscan.
Furthermore, actually going into the smart contract's code (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# ethereum.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/ethereum/decoded/traces-decoded
ABI-decoded function calls on Ethereum — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from Ethereum transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/ethereum/decoded/call-tables).
The `ethereum.traces_decoded` table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=traces_decoded)
# Ethereum Overview
Source: https://docs.dune.com/data-catalog/evm/ethereum/overview
Ethereum data on Dune
Ethereum is a decentralized, open-source blockchain system that features its own cryptocurrency, Ether. It is a platform for numerous decentralized applications (dApps), including everything from financial tools to games and complex databases. Ethereum is well-known for its flexibility and its pioneering role in the introduction and use of smart contracts, which are self-executing contracts with the terms of the agreement directly written into code.
The network supports a broad range of applications due to its general-purpose nature, and it operates on a proof-of-stake consensus mechanism, enhancing its scalability and energy efficiency compared to earlier proof-of-work systems.
**Versatility and Developer Support:**
Ethereum supports the creation of a wide variety of applications beyond simple transactions. This includes decentralized finance (DeFi) applications, NFTs, and more, supported by a robust development toolkit and a strong global community.
**Smart Contract Functionality:**
Ethereum's use of smart contracts automates enforcement, management, performance, and payment — they execute automatically when conditions are met.
> [card] [Ethereum documentation](https://ethereum.org/en/developers/docs/)
>
> The official documentation for Ethereum, providing a wealth of resources on how to build on and interact with the platform.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, showcasing the diverse and dynamic usage of Ethereum's decentralized platform.
> [card] [Blocks](./raw/blocks)
>
> Information on Ethereum blocks, reflecting the network's activity and scalability achievements.
> [card] [Transactions](./raw/transactions)
>
> Detailed information on transactions, underscoring the high throughput and complexity of operations on Ethereum.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data, facilitating easier analysis and deeper understanding of smart contract operations.
# ethereum.blocks
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Ethereum.
## Table Description
The `ethereum.blocks` table contains information about blocks in the Ethereum blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
```sql theme={null}
SELECT
number,
hash,
size,
gas_used
FROM
ethereum.blocks
ORDER BY
number DESC
LIMIT 10
```
### Show the number of blocks mined each day
```sql theme={null}
SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM
ethereum.blocks
GROUP BY
day
ORDER BY
day DESC
```
### Show the number of transactions in each block
```sql theme={null}
SELECT
number,
count(*)
FROM
ethereum.blocks
group by 1
LIMIT 10
```
# ethereum.creation_traces
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/creation-traces
Contract deployment records on Ethereum — deployer address, factory context, and deployed bytecode.
## Table Description
The `creation_traces` table contains information about the creation of smart contracts on the Ethereum blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the Ethereum blockchain.
The `ethereum.creation_traces` table is a subset of the `traces` table, which contains information about all traces on the Ethereum blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type` = `create`.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
```sql theme={null}
select * from ethereum.creation_traces
where contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
```
### Show the creation of smart contracts by a specific creator
```sql theme={null}
select * from ethereum.creation_traces
where "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6
```
### Show the creation of smart contracts in the last 10 days
```sql theme={null}
select
date_trunc('day', block_time) as day,
count(*)
from ethereum.creation_traces
group by 1
order by 1 desc
limit 10
```
# ethereum.logs
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/logs
Smart contract event logs on Ethereum — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `ethereum.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
* topic list: a list of 0 to 4 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
* data: contains non-indexed data.
This is the raw version of this table, for decoded event logs, see the [decoded logs](/data-catalog/evm/ethereum/decoded/event-logs) section.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
```sql theme={null}
select *
from ethereum.logs
where contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
limit 10
```
### Filter the logs for a specific topic
```sql theme={null}
select *
from ethereum.logs
where topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
```
### Show the logs of a specific block
```sql theme={null}
SELECT *
FROM ethereum.logs
WHERE evt_block_number = 1000000
```
# ethereum.traces
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/traces
Internal transaction traces on Ethereum — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `ethereum.traces` table contains the traces of transactions executed on the Ethereum Virtual Machine (EVM). It includes traces of both top-level and internal transactions. Traces are the result of transaction execution and are used to debug and understand how transactions are processed. They are also known as `internal transactions`.
This is the raw version of this table, for decoded transaction calls, see the [call tables](/data-catalog/evm/ethereum/decoded/call-tables) section.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
```sql theme={null}
SELECT *
FROM ethereum.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c
```
# ethereum.transactions
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/transactions
Every transaction on Ethereum — from, to, value, gas, calldata, and receipt status.
## Table Description
The `ethereum.transactions` table contains information about all transactions on the Ethereum blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more.
Transactions are the fundamental unit of interaction with the Ethereum blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
This is the raw version of this table, for decoded transaction calls, see the [call tables](/data-catalog/evm/ethereum/decoded/call-tables) section.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
```sql theme={null}
select *
from ethereum.transactions where "from" = 0x50A1b5c358F8D34F0d35aA2f10742c46054E247e
```
### Count the number of transactions per block
```sql theme={null}
SELECT
block_number,
COUNT(*)
FROM ethereum.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10
```
### Show the top 10 transactions with the highest gas price
```sql theme={null}
SELECT
hash,
gas_price
FROM ethereum.transactions
ORDER BY gas_price DESC
LIMIT 10
```
# ethereum.withdrawals
Source: https://docs.dune.com/data-catalog/evm/ethereum/raw/withdrawals
Beacon chain ETH withdrawals on Ethereum — validator index, amount, and recipient address.
> [!NOTE]
>
> Dune does not have beacon chain data yet. This table introduces the action of withdrawing from the beacon chain only.
The [Ethereum Improvement Proposal (EIP) 4895](https://eips.ethereum.org/EIPS/eip-4895) introduces a system-level "operation" to support validator withdrawals that are "pushed" from the beacon chain to the EVM.
Withdrawals are represented as a new type of object in the execution payload, called an "operation", that cleanly separates this "system-level" operation from regular transactions. Withdrawals provide key information from the consensus layer such as a monotonically increasing index, validator index, recipient address, and the amount of ether given in Gwei.
Using this table you can observe beacon chain withdrawals.
## How to work with this table
In order to connect deposits and withdrawals, we must identify the `validator_index` of unique depositors. Since Dune doesn't have beacon chain data yet, we have to rely on a workaround using a query to obtain a list of valid and active deposits from the Ethereum deposit contract.
This [query](https://dune.com/queries/2364548) returns a list of valid and active deposits, which we can use to identify the `validator_index` of unique depositors. We can use this query to match the `validator_index` of depositors with the `validator_index` of withdrawers in the withdrawals table.
This query provides a comprehensive list of valid deposits and is kept up to date with full historical coverage.
[LINK TO QUERY](https://dune.com/queries/2364548)
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| `block_time` | `timestamp` | Timestamp of the block containing this withdrawal |
| `block_number` | `bigint` | Block number containing this withdrawal |
| `index` | `bigint` | Monotonically increasing withdrawal index |
| `validator_index` | `bigint` | Index of the validator that initiated the withdrawal |
| `address` | `varbinary` | Recipient address of the withdrawal |
| `amount` | `uint256` | Amount of ether withdrawn (in Gwei) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=withdrawals](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ethereum\&table_name_t6f0df=withdrawals)
## Examples
### Withdrawals per day
```sql theme={null}
select
date_trunc('day', block_time) as dt,
sum(AMOUNT)/1e9 as withdraw_amount
from ethereum.withdrawals
group by 1
```
### Dashboards
[https://dune.com/hildobby/eth2-staking](https://dune.com/hildobby/eth2-staking)
[https://dune.com/hashed_official/staking-as-a-service](https://dune.com/hashed_official/staking-as-a-service)
* [ETH Staking Dashboard](https://dune.com/hildobby/eth2-staking) - This dashboard provides an overview of the Ethereum 2.0 staking ecosystem. It includes data on the number of validators, the total amount of staked ETH, and the number of deposits and withdrawals.
* [Staking as a Service](https://dune.com/hashed_official/staking-as-a-service) - This dashboard provides a comprehensive overview of the staking-as-a-service ecosystem. It includes data on the number of validators, the total amount of staked ETH, and the number of deposits and withdrawals.
## References
* [Ethereum Improvement Proposal EIP 4895](https://eips.ethereum.org/EIPS/eip-4895)
* [Ethereum 2.0 Deposit Contract](https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa)
# dex_aggregator.trades on fantom
Source: https://docs.dune.com/data-catalog/evm/fantom/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Fantom — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for fantom transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on fantom.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=fantom](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=fantom)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on fantom
Source: https://docs.dune.com/data-catalog/evm/fantom/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on fantom.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for fantom transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on fantom.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=fantom](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=fantom)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on fantom
Source: https://docs.dune.com/data-catalog/evm/fantom/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on fantom.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for fantom transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on fantom.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=fantom](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=fantom)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=fantom\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Fantom Call Tables
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Fantom network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# fantom.contracts
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/contracts
Verified contract registry on Fantom — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the fantom blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# fantom.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/logs-decoded
ABI-decoded event logs on Fantom — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from fantom transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/fantom/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on fantom?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for fantom on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=logs_decoded)
# Fantom Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/overview
Simplifying Fantom smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/fantom/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/fantom/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/fantom/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# fantom.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/fantom/decoded/traces-decoded
ABI-decoded function calls on Fantom — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from fantom transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/fantom/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=traces_decoded)
# Fantom Overview
Source: https://docs.dune.com/data-catalog/evm/fantom/overview
Fantom data on Dune
Fantom is a high-performance, scalable, and secure smart-contract platform that is designed to overcome the limitations of previous generation blockchain platforms. Fantom is unique in its use of a directed acyclic graph (DAG) architecture, which allows for asynchronous confirmation of transactions, resulting in high throughput and minimal transaction costs.
The network uses a bespoke consensus algorithm called Lachesis, which ensures transactions are confirmed within 1-2 seconds, significantly improving the user experience and efficiency for decentralized applications (dApps) running on the platform.
**High Throughput and Low Cost:**
Fantom’s DAG architecture enables unparalleled transaction speed and drastically reduced costs, making it an ideal platform for developers looking to build scalable dApps.
**Developer-Friendly:**
Fantom is fully compatible with Ethereum, allowing developers to deploy Ethereum-based applications quickly and seamlessly using existing tools and languages like Solidity.
**Ecosystem Growth:**
Fantom supports a growing ecosystem of decentralized finance (DeFi) applications, NFT platforms, and other blockchain projects, fostering innovation and new developments within its network.
> [card] [Fantom documentation](https://docs.fantom.foundation)
>
> Access comprehensive documentation for Fantom, detailing its unique technology, features, and developer resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through detailed event logs, providing visibility into the dynamic activity on Fantom.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Fantom, reflecting the network’s high throughput and capacity for handling large volumes of transactions.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, highlighting the efficiency and speed of operations across the Fantom network.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions.
# fantom.blocks
Source: https://docs.dune.com/data-catalog/evm/fantom/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Fantom.
## Table description
The `fantom.blocks` table contains information about blocks in the fantom blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM fantom.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM fantom.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM fantom.blocks
GROUP BY 1
LIMIT 10`
# fantom.creation_traces
Source: https://docs.dune.com/data-catalog/evm/fantom/raw/creation-traces
Contract deployment records on Fantom — deployer address, factory context, and deployed bytecode.
## Table Description
The `fantom.creation_traces` table contains information about the creation of smart contracts on the fantom blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the fantom blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the fantom blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM fantom.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM fantom.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM fantom.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# fantom.logs
Source: https://docs.dune.com/data-catalog/evm/fantom/raw/logs
Smart contract event logs on Fantom — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `fantom.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/fantom/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM fantom.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM fantom.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM fantom.logs
WHERE evt_block_number = 1000000`
# fantom.traces
Source: https://docs.dune.com/data-catalog/evm/fantom/raw/traces
Internal transaction traces on Fantom — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `fantom.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/fantom/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM fantom.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# fantom.transactions
Source: https://docs.dune.com/data-catalog/evm/fantom/raw/transactions
Every transaction on Fantom — from, to, value, gas, calldata, and receipt status.
## Table Description
The `fantom.transactions` table contains information about all transactions on the fantom blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the fantom blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/fantom/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fantom\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM fantom.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM fantom.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM fantom.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on flare
Source: https://docs.dune.com/data-catalog/evm/flare/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on flare.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for flare transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on flare.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=flare](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=flare)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flare\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flare\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on flare
Source: https://docs.dune.com/data-catalog/evm/flare/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on flare.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for flare transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on flare.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=flare](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=flare)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flare\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flare\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Flare Call Tables
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Flare network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# flare.contracts
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/contracts
Verified contract registry on Flare — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the flare blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# flare.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/logs-decoded
ABI-decoded event logs on Flare — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from flare transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On flare, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/flare/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **flare.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=logs_decoded)
# Flare Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/overview
Simplifying Flare Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/flare/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/flare/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/flare/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# flare.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/flare/decoded/traces-decoded
ABI-decoded function calls on Flare — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from flare transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/flare/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=traces_decoded)
# Flare Chain Overview
Source: https://docs.dune.com/data-catalog/evm/flare/overview
Flare blockchain data on Dune
## What is Flare?
Flare is a layer 1, EVM-compatible smart contract platform that redefines the utility of blockchain by making data a public good. It is uniquely designed to provide developers with efficient access to extensive data resources, facilitating the creation of sophisticated applications in various domains such as DeFi, gaming, NFTs, music, social networks, real world assets, machine learning, and artificial intelligence.
## Key Features of Flare
Flare stands out by integrating robust data protocols directly into its blockchain architecture, offering developers powerful tools to leverage data efficiently and cost-effectively.
### **Data as a Public Good**
At the core of Flare’s philosophy is the provision of data as a public good. This ensures that data is accessible without central control, fostering an environment of openness and innovation.
### **Dual Role Infrastructure Providers**
Infrastructure providers on Flare serve a dual role as validators and data providers. This integration allows Flare to offer its unique native oracles: the Flare Time-Series Oracle (FTSO) and the Flare Data Connector.
### **Developing on Flare**
Developers interested in building on Flare can find comprehensive resources and guides at the Flare Developer Hub. This hub provides tools, documentation, and support to help developers create, test, and deploy their applications on Flare’s network.
## Flare Networks and chains
Flare encompasses several networks, each designed for specific functions and stages of development:
* **Flare:** The main network with \$FLR as the native currency.
* **Songbird:** The canary network where \$SGB is the native currency, used for real condition testing before mainnet deployment.
* **Coston:** The public test network for developers using Songbird.
* **Coston2:** The public test network for developers using Flare.
Flare operates on two primary chains:
* **C-Chain (Contract Chain):** Hosts smart contracts and is powered by the EVM, facilitating most of the community interactions.
* **P-Chain (Platform Chain):** Manages staking and rewards distribution among validators.
## Security and Governance
Flare integrates advanced security protocols and a decentralized governance model, allowing \$FLR token holders to participate in network decisions. This inclusive approach ensures that Flare adapts to the evolving needs of its users and developers.
> [card] [Flare Documentation](https://docs.flare.network/)
>
> Explore the complete documentation for Flare.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Explore detailed logs and operational data on Flare, emphasizing transparency and access to real-time network activities and oracle updates.
> [card] [Blocks](./raw/blocks)
>
> View insights into Flare's block production and consensus mechanism, highlighting the efficiency and security of the state connector and its impact on blockchain finality.
> [card] [Transactions](./raw/transactions)
>
> Dive into transaction data to experience Flare’s innovative zero-gas mechanism, showcasing how it facilitates cost-effective and accessible blockchain interactions.
> [card] [Decoded](./decoded/overview)
>
> Access decoded transaction data to gain insights into the seamless integration of FAssets and interactions across Flare's unique app chains, driving a new era of blockchain utility.
# flare.blocks
Source: https://docs.dune.com/data-catalog/evm/flare/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Flare.
## Table description
The `flare.blocks` table contains information about blocks in the flare blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM flare.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM flare.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM flare.blocks
GROUP BY 1
LIMIT 10`
# flare.creation_traces
Source: https://docs.dune.com/data-catalog/evm/flare/raw/creation-traces
Contract deployment records on Flare — deployer address, factory context, and deployed bytecode.
## Table Description
The `flare.creation_traces` table contains information about the creation of smart contracts on the flare blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the flare blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the flare blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM flare.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM flare.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM flare.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# flare.logs
Source: https://docs.dune.com/data-catalog/evm/flare/raw/logs
Smart contract event logs on Flare — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `flare.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flare/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM flare.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM flare.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM flare.logs
WHERE evt_block_number = 1000000`
# flare.traces
Source: https://docs.dune.com/data-catalog/evm/flare/raw/traces
Internal transaction traces on Flare — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `flare.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flare/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM flare.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# flare.transactions
Source: https://docs.dune.com/data-catalog/evm/flare/raw/transactions
Every transaction on Flare — from, to, value, gas, calldata, and receipt status.
## Table Description
The `flare.transactions` table contains information about all transactions on the flare blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the flare blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flare/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flare\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM flare.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM flare.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM flare.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on gnosis
Source: https://docs.dune.com/data-catalog/evm/gnosis/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Gnosis — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for gnosis transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on gnosis.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=gnosis](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=gnosis)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on gnosis
Source: https://docs.dune.com/data-catalog/evm/gnosis/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on gnosis.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for gnosis transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on gnosis.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=gnosis](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=gnosis)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on gnosis
Source: https://docs.dune.com/data-catalog/evm/gnosis/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on gnosis.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for gnosis transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on gnosis.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=gnosis](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=gnosis)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=gnosis\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Gnosis Chain Call Tables
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Gnosis Chain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# gnosis.contracts
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/contracts
Verified contract registry on Gnosis — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the gnosis blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# gnosis.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/logs-decoded
ABI-decoded event logs on Gnosis — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from gnosis transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On gnosis, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/gnosis/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **gnosis.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=logs_decoded)
# Gnosis Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/overview
Simplifying Gnosis Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/gnosis/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/gnosis/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/gnosis/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# gnosis.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/gnosis/decoded/traces-decoded
ABI-decoded function calls on Gnosis — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from gnosis transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/gnosis/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=traces_decoded)
# Gnosis Chain Overview
Source: https://docs.dune.com/data-catalog/evm/gnosis/overview
Gnosis Chain data on Dune
Gnosis Chain is a Layer 2 scaling solution designed for Ethereum, focusing on creating a low-cost, high-efficiency platform for decentralized applications (dApps). Formerly known as xDai Chain, Gnosis Chain emphasizes predictability in transaction costs, which are paid in the native stablecoin, xDAI.
This platform uses a unique consensus mechanism called POSDAO, which is a Proof of Stake system that provides enhanced security and scalability while supporting environmental sustainability. Gnosis Chain is compatible with Ethereum, allowing Ethereum assets and projects to transition smoothly without the need for code changes.
**Cost Efficiency and Predictability:**
Transaction costs on Gnosis Chain are highly predictable, making it an attractive platform for developers and businesses that require consistent budgeting for blockchain operations.
**Ethereum Compatibility:**
Full compatibility with Ethereum ensures that developers can leverage existing tools and infrastructures to deploy and manage their applications on Gnosis Chain with minimal adjustments.
> [card] [Gnosis Chain documentation](https://docs.gnosischain.com)
>
> Explore the official documentation for Gnosis Chain, which provides a deep dive into its consensus mechanism, network features, and how to develop on the platform.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, offering detailed insights into interactions and activities within the Gnosis Chain network.
> [card] [Blocks](./raw/blocks)
>
> Data on blocks processed, illustrating the network’s capacity and the performance of its POSDAO system.
> [card] [Transactions](./raw/transactions)
>
> Comprehensive transaction data, showcasing the efficiency and cost-effectiveness of operations on Gnosis Chain.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of contract executions on Gnosis Chain.
# gnosis.blocks
Source: https://docs.dune.com/data-catalog/evm/gnosis/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Gnosis.
## Table description
The `gnosis.blocks` table contains information about blocks in the gnosis blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM gnosis.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM gnosis.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM gnosis.blocks
GROUP BY 1
LIMIT 10`
# gnosis.creation_traces
Source: https://docs.dune.com/data-catalog/evm/gnosis/raw/creation-traces
Contract deployment records on Gnosis — deployer address, factory context, and deployed bytecode.
## Table Description
The `gnosis.creation_traces` table contains information about the creation of smart contracts on the gnosis blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the gnosis blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the gnosis blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM gnosis.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM gnosis.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM gnosis.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# gnosis.logs
Source: https://docs.dune.com/data-catalog/evm/gnosis/raw/logs
Smart contract event logs on Gnosis — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `gnosis.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/gnosis/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM gnosis.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM gnosis.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM gnosis.logs
WHERE evt_block_number = 1000000`
# gnosis.traces
Source: https://docs.dune.com/data-catalog/evm/gnosis/raw/traces
Internal transaction traces on Gnosis — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `gnosis.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/gnosis/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM gnosis.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# gnosis.transactions
Source: https://docs.dune.com/data-catalog/evm/gnosis/raw/transactions
Every transaction on Gnosis — from, to, value, gas, calldata, and receipt status.
## Table Description
The `gnosis.transactions` table contains information about all transactions on the gnosis blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the gnosis blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/gnosis/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=gnosis\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM gnosis.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM gnosis.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM gnosis.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on hemi
Source: https://docs.dune.com/data-catalog/evm/hemi/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on hemi.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for hemi transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on hemi.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=hemi](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=hemi)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=hemi\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=hemi\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Hemi Call Tables
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Hemi network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# hemi.contracts
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/contracts
Verified contract registry on Hemi — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the hemi blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=contracts)
# hemi.event_logs
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/event-logs
Smart contract event logs on Hemi — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# hemi.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/logs-decoded
ABI-decoded event logs on Hemi — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from hemi transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/hemi/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on hemi?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for hemi on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=logs_decoded)
# Hemi Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/overview
Simplifying Hemi smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/hemi/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/hemi/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/hemi/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# hemi.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/hemi/decoded/traces-decoded
ABI-decoded function calls on Hemi — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from hemi transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/hemi/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=traces_decoded)
# Hemi Overview
Source: https://docs.dune.com/data-catalog/evm/hemi/overview
Hemi data on Dune
## What is Hemi?
Hemi is a modular Layer-2 protocol that provides superior scaling, security, and interoperability by combining the power of Bitcoin and Ethereum. Unlike other projects that treat Bitcoin and Ethereum as separate ecosystem silos, Hemi views them as components of a single supernetwork, unlocking new levels of programmability, portability, and potential.
## Key Features
* **Bitcoin-Ethereum Integration**: Combines Bitcoin and Ethereum as components of a supernetwork
* **Hemi Virtual Machine (hVM)**: Incorporates a full Bitcoin node within an Ethereum Virtual Machine
* **Proof-of-Proof (PoP) Consensus**: Ensures transactions surpass Bitcoin's security level in hours
* **Trustless Cross-chain Portability**: Secure asset transfers between Hemi and other chains via "Tunnels"
* **Bitcoin Programmability**: Smart contracts with granular indexed views of Bitcoin state
* **Extensibility**: Allows external projects to create chains secured by Hemi's technology
## Ecosystem Highlights
* Modular Layer-2 protocol for superior scaling and security
* Full integration of Bitcoin and Ethereum ecosystems
* Advanced on-chain functionalities including routing, time-lock, and password protection
* Bitcoin-Security-as-a-Service capabilities
* Enhanced dual-chain interoperability and asset handling
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/hemi/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/hemi/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Hemi Documentation](https://docs.hemi.xyz/)
>
> Official documentation for developers building on Hemi
# hemi.blocks
Source: https://docs.dune.com/data-catalog/evm/hemi/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Hemi.
## Table description
The `hemi.blocks` table contains information about blocks in the hemi blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM hemi.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM hemi.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM hemi.blocks
GROUP BY 1
LIMIT 10`
# hemi.creation_traces
Source: https://docs.dune.com/data-catalog/evm/hemi/raw/creation-traces
Contract deployment records on Hemi — deployer address, factory context, and deployed bytecode.
## Table Description
The `hemi.creation_traces` table contains information about the creation of smart contracts on the hemi blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the hemi blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the hemi blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM hemi.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM hemi.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM hemi.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# hemi.logs
Source: https://docs.dune.com/data-catalog/evm/hemi/raw/logs
Smart contract event logs on Hemi — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `hemi.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/hemi/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM hemi.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM hemi.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM hemi.logs
WHERE evt_block_number = 1000000`
# hemi.traces
Source: https://docs.dune.com/data-catalog/evm/hemi/raw/traces
Internal transaction traces on Hemi — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `hemi.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/hemi/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM hemi.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# hemi.transactions
Source: https://docs.dune.com/data-catalog/evm/hemi/raw/transactions
Every transaction on Hemi — from, to, value, gas, calldata, and receipt status.
## Table Description
The `hemi.transactions` table contains information about all transactions on the hemi blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the hemi blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/hemi/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hemi\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM hemi.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM hemi.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM hemi.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Henesys Call Tables
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Henesys network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# henesys.contracts
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/contracts
Verified contract registry on Henesys — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the henesys blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=contracts)
# henesys.event_logs
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/event-logs
Smart contract event logs on Henesys — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# henesys.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/logs-decoded
ABI-decoded event logs on Henesys — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from henesys transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/henesys/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on henesys?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for henesys on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=logs_decoded)
# Henesys Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/overview
Simplifying Henesys smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/henesys/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/henesys/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/henesys/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# henesys.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/henesys/decoded/traces-decoded
ABI-decoded function calls on Henesys — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from henesys transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/henesys/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=traces_decoded)
# Henesys Overview
Source: https://docs.dune.com/data-catalog/evm/henesys/overview
Henesys data on Dune
## What is Henesys?
Henesys is Avalanche's Layer 1 blockchain that powers the NEXPACE ecosystem and the MapleStory Universe. Built by Nexon's blockchain subsidiary, Henesys provides a secure, scalable platform for Web3 gaming, enabling player-owned economies, decentralized governance, and cross-chain interoperability through Chainlink's CCIP integration.
## Key Features
* **Gaming-Focused Infrastructure**: Specialized blockchain for Web3 gaming and NFT ecosystems
* **Avalanche L1**: Built on Avalanche for high performance and scalability
* **Player-Owned Economies**: Enables true ownership of in-game assets through NFTs
* **Fusion-Fission Model**: Dynamic NFT/item supply balancing mechanism
* **Cross-Chain Interoperability**: Chainlink CCIP integration for secure NFT portability across games
## Ecosystem Highlights
* MapleStory Universe integration with blockchain technology
* NFT minting and trading for in-game assets
* Synergy Apps ecosystem with open APIs for third-party developers
* Support for various gaming use cases including:
* In-game item tokenization
* Player-to-player trading
* Cross-game asset portability
* Prediction markets and dashboards
* Community-driven tooling
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/henesys/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/henesys/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [NEXPACE Documentation](https://coinmarketcap.com/cmc-ai/maplestory-universe/what-is/)
>
> Learn more about the NEXPACE ecosystem and MapleStory Universe
# henesys.blocks
Source: https://docs.dune.com/data-catalog/evm/henesys/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Henesys.
## Table description
The `henesys.blocks` table contains information about blocks in the henesys blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM henesys.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM henesys.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM henesys.blocks
GROUP BY 1
LIMIT 10`
# henesys.creation_traces
Source: https://docs.dune.com/data-catalog/evm/henesys/raw/creation-traces
Contract deployment records on Henesys — deployer address, factory context, and deployed bytecode.
## Table Description
The `henesys.creation_traces` table contains information about the creation of smart contracts on the henesys blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the henesys blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the henesys blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM henesys.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM henesys.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM henesys.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# henesys.logs
Source: https://docs.dune.com/data-catalog/evm/henesys/raw/logs
Smart contract event logs on Henesys — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `henesys.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/henesys/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM henesys.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM henesys.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM henesys.logs
WHERE evt_block_number = 1000000`
# henesys.traces
Source: https://docs.dune.com/data-catalog/evm/henesys/raw/traces
Internal transaction traces on Henesys — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `henesys.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/henesys/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM henesys.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# henesys.transactions
Source: https://docs.dune.com/data-catalog/evm/henesys/raw/transactions
Every transaction on Henesys — from, to, value, gas, calldata, and receipt status.
## Table Description
The `henesys.transactions` table contains information about all transactions on the henesys blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the henesys blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/henesys/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=henesys\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM henesys.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM henesys.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM henesys.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on hyperevm
Source: https://docs.dune.com/data-catalog/evm/hyperevm/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on hyperevm.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for hyperevm transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on hyperevm.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=hyperevm](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=hyperevm)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=hyperevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=hyperevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# hyperevm.contracts
Source: https://docs.dune.com/data-catalog/evm/hyperevm/decoded/contracts
Verified contract registry on HyperEVM — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the hyperevm blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=contracts)
# hyperevm.event_logs
Source: https://docs.dune.com/data-catalog/evm/hyperevm/decoded/event-logs
Smart contract event logs on HyperEVM — indexed topics and data fields emitted during transaction execution.
# hyperevm.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/hyperevm/decoded/logs-decoded
ABI-decoded event logs on HyperEVM — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from hyperevm transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On hyperevm, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/hyperevm/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **hyperevm.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=logs_decoded)
# HyperEVM Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/hyperevm/decoded/overview
Simplifying HyperEVM smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/hyperevm/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/hyperevm/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/hyperevm/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# HyperEVM Overview
Source: https://docs.dune.com/data-catalog/evm/hyperevm/overview
HyperEVM data on Dune
## What is HyperEVM?
HyperEVM is the EVM-compatible layer of the Hyperliquid blockchain, which features a dual-block architecture with HyperCore and HyperEVM. The HyperEVM is not a separate chain, but rather secured by the same HyperBFT consensus as HyperCore, allowing it to interact directly with HyperCore's spot and perpetual order books.
## Key Features
* **Dual-Block Architecture**: Combines HyperCore (for trading) and HyperEVM (for smart contracts)
* **EVM-Compatible**: Full compatibility with Ethereum smart contracts and tooling
* **Direct Order Book Access**: Smart contracts can read prices and execute trades directly on HyperCore
* **Permissionless Asset Deployment**: Projects can deploy ERC20 contracts and corresponding spot assets
* **Unified State**: No bridging risk between HyperCore and HyperEVM
* **Mature Liquidity**: Access to established, liquid onchain order books
* **Captive Audience**: Built-in user base excited about onchain finance
## Technical Capabilities
* **Read Precompiles**: Smart contracts can read prices directly from HyperCore order books
* **Write System Contracts**: Contracts can send orders directly to HyperCore order books
* **Protocolized Liquidations**: Lending protocols can implement automated liquidations
* **Native Token Integration**: Seamless connection between HyperEVM contracts and HyperCore trading
## Use Cases
* **DeFi Protocols**: Lending, borrowing, and automated trading strategies
* **Token Projects**: Permissionless listing and trading of new assets
* **Trading Bots**: Direct access to order books for algorithmic trading
* **Cross-Protocol Integration**: Seamless interaction between different DeFi applications
## Current Status
HyperEVM is currently in alpha stage with a gradual roll-out approach to ensure:
* Equal access for all developers (no insiders)
* Safe system upgrades for high-volume trading
* Live iteration based on user feedback
## Data on Dune
We currently don't support traces yet for hyperEVM so compared to usual EVM support we will not have:
* Traces
* Traces_decoded
* "Enable bytecode matching" decoding feature
* "Decode other contracts created by the same factory" decoding feature
> [card] [Raw Data](/data-catalog/evm/hyperevm/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, and logs
> [card] [Decoded Data](/data-catalog/evm/hyperevm/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Hyperliquid Documentation](https://hyperliquid.gitbook.io/hyperliquid-docs/hyperevm)
>
> Official documentation for developers building on HyperEVM
# hyperevm.blocks
Source: https://docs.dune.com/data-catalog/evm/hyperevm/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for HyperEVM.
## Table description
The `hyperevm.blocks` table contains information about blocks in the hyperevm blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM hyperevm.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM hyperevm.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM hyperevm.blocks
GROUP BY 1
LIMIT 10`
# hyperevm.logs
Source: https://docs.dune.com/data-catalog/evm/hyperevm/raw/logs
Smart contract event logs on HyperEVM — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `hyperevm.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/hyperevm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM hyperevm.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM hyperevm.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM hyperevm.logs
WHERE evt_block_number = 1000000`
# hyperevm.transactions
Source: https://docs.dune.com/data-catalog/evm/hyperevm/raw/transactions
Every transaction on HyperEVM — from, to, value, gas, calldata, and receipt status.
## Table Description
The `hyperevm.transactions` table contains information about all transactions on the hyperevm blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the hyperevm blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/hyperevm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hyperevm\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM hyperevm.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM hyperevm.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM hyperevm.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on ink
Source: https://docs.dune.com/data-catalog/evm/ink/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Ink — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for ink transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ink.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=ink](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=ink)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on ink
Source: https://docs.dune.com/data-catalog/evm/ink/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on ink.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ink transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ink.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ink](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ink)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on ink
Source: https://docs.dune.com/data-catalog/evm/ink/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on ink.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ink transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ink.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ink](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ink)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ink\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Ink Call Tables
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Ink network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# ink.contracts
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/contracts
Verified contract registry on Ink — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the ink blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# ink.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/logs-decoded
ABI-decoded event logs on Ink — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from ink transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On ink, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/ink/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **ink.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=logs_decoded)
# Ink Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/overview
Simplifying Ink smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/ink/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/ink/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ink/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# ink.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/ink/decoded/traces-decoded
ABI-decoded function calls on Ink — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from ink transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/ink/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=traces_decoded)
# Ink Overview
Source: https://docs.dune.com/data-catalog/evm/ink/overview
Ink data on Dune
## What is Ink?
Ink is Kraken's dedicated DeFi chain, built as a Layer 2 solution using the OP Stack technology. As part of the Superchain ecosystem, it provides a scalable, secure environment for decentralized finance applications while maintaining full compatibility with the Ethereum ecosystem.
## Technical Architecture
Ink's architecture leverages the OP Stack to deliver a robust DeFi-focused platform:
### Optimistic Rollup Technology
* Inherits Ethereum's security through optimistic rollups
* Posts transaction data to Ethereum mainnet
* Uses fraud proofs for security guarantees
* Provides fast transaction finality with L2 execution
### Network Specifications
* **Technology Stack**: OP Stack (Superchain)
* **Gas Token**: ETH
* **Challenge Period**: \~7 days
* **Block Time**: \~2 seconds
* **Network Type**: EVM-compatible Layer 2
### Developer Tools & Infrastructure
* **Smart Contract Development**: Support for Foundry, Hardhat, and Remix
* **Block Explorers**: Multiple options for transaction monitoring
* **Infrastructure**:
* Account Abstraction support
* Cross-chain bridges
* Oracle integration
* VRF capabilities
* Indexing services
### Compatibility & Integration
* Full EVM compatibility
* Native bridge functionality
* Support for standard Ethereum development tools
* Seamless integration with existing Ethereum infrastructure
> [card] [Ink Documentation](https://docs.inkonchain.com)
>
> Official documentation for developers building on Ink - Kraken's DeFi chain
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Ink
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# ink.blocks
Source: https://docs.dune.com/data-catalog/evm/ink/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Ink.
## Table description
The `ink.blocks` table contains information about blocks in the ink blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM ink.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM ink.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM ink.blocks
GROUP BY 1
LIMIT 10`
# ink.creation_traces
Source: https://docs.dune.com/data-catalog/evm/ink/raw/creation-traces
Contract deployment records on Ink — deployer address, factory context, and deployed bytecode.
## Table Description
The `ink.creation_traces` table contains information about the creation of smart contracts on the ink blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the ink blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the ink blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM ink.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM ink.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM ink.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# ink.logs
Source: https://docs.dune.com/data-catalog/evm/ink/raw/logs
Smart contract event logs on Ink — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `ink.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ink/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM ink.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM ink.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM ink.logs
WHERE evt_block_number = 1000000`
# ink.traces
Source: https://docs.dune.com/data-catalog/evm/ink/raw/traces
Internal transaction traces on Ink — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `ink.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ink/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM ink.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# ink.transactions
Source: https://docs.dune.com/data-catalog/evm/ink/raw/transactions
Every transaction on Ink — from, to, value, gas, calldata, and receipt status.
## Table Description
The `ink.transactions` table contains information about all transactions on the ink blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the ink blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ink/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ink\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM ink.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM ink.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM ink.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on kaia
Source: https://docs.dune.com/data-catalog/evm/kaia/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on kaia.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for kaia transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on kaia.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=kaia](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=kaia)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=kaia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=kaia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on kaia
Source: https://docs.dune.com/data-catalog/evm/kaia/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on kaia.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for kaia transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on kaia.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=kaia](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=kaia)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=kaia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=kaia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# KAIA Call Tables
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the KAIA network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# kaia.contracts
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/contracts
Verified contract registry on KAIA — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the kaia blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# kaia.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/logs-decoded
ABI-decoded event logs on KAIA — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from kaia transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/kaia/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on kaia?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for kaia on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=logs_decoded)
# KAIA Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/overview
Simplifying KAIA Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/kaia/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/kaia/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/kaia/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# kaia.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/kaia/decoded/traces-decoded
ABI-decoded function calls on KAIA — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from kaia transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/kaia/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=traces_decoded)
# KAIA Chain Overview
Source: https://docs.dune.com/data-catalog/evm/kaia/overview
KAIA blockchain data on Dune
## What is KAIA?
KAIA is a highly optimized, BFT-based public blockchain designed to meet the performance and reliability needs of enterprises. With features like immediate finality, high transaction throughput, and EVM compatibility, KAIA provides a robust infrastructure for blockchain applications across industries.
KAIA’s network architecture and consensus mechanism prioritize security and scalability, making it a preferred choice for businesses looking to deploy fast, cost-effective, and scalable blockchain solutions.
## Key Features of KAIA
KAIA’s infrastructure is built around a few core design goals, ensuring its suitability for enterprise and real-world use cases. These goals drive the performance and flexibility of the blockchain.
### **Immediate Finality and High Throughput**
KAIA enables 1-second block generation, confirming transactions with immediate finality. The network supports up to **4,000 transactions per second (TPS)**, providing the speed and reliability needed for real-time applications.
### **Low-Cost Transactions**
KAIA offers transaction costs at approximately 1/10th the price of Ethereum, making it more accessible for businesses and developers looking to scale operations without high gas fees.
### **EVM Compatibility**
KAIA is fully compatible with the Ethereum Virtual Machine (EVM), supporting Solidity contracts. This makes it easy for Ethereum developers to migrate their applications to KAIA with minimal changes, leveraging familiar tools like Remix, Hardhat, and Foundry.
## Network Architecture
KAIA’s network architecture is divided into three logical subnetworks that work together to ensure high performance, scalability, and efficient resource utilization.
* **Core Cell Network (CCN):** Responsible for transaction verification, block creation, and execution.
* **Endpoint Node Network (ENN):** Handles API requests and processes data for auxiliary service chains.
* **Service Chain Network (SCN):** Operates independently while connected to the main chain, enabling scalable dApp development.
### **Node Types in KAIA**
KAIA employs a tiered architecture with several types of nodes, each serving specific roles:
* **Consensus Node (CN):** Generates blocks and participates in the consensus process.
* **Proxy Node (PN):** Handles transaction requests and network communication.
* **Endpoint Node (EN):** Processes API requests and ensures data flow for service chains.
## Consensus Mechanism
KAIA utilizes an optimized version of Istanbul BFT (Practical Byzantine Fault Tolerance) for its consensus. This ensures:
* **Fast Block Finality:** No forks or transaction reversals, providing certainty for real-time applications.
* **Verifiable Random Function (VRF):** Used for selecting block proposers, adding randomness to enhance security and decentralization.
## Security and Interoperability
KAIA incorporates several security measures to protect the integrity of its network:
* **Validator Key Separation:** Ensures that keys used for validation are kept separate from reward keys, reducing the risk of key theft.
* **Cross-Chain Compatibility:** EVM compatibility allows KAIA to interoperate with other EVM-based chains, supporting cross-chain transactions and smart contract execution.
## Token Economy
KAIA’s native token, **KAIA**, plays a central role in its economy:
* **Block Rewards:** Distributed to validators and stakers to incentivize network participation.
* **Inflation Rate:** Initially set at 5.2% annually, with block rewards allocated between creators, stakers, and ecosystem funds to support development and infrastructure.
## Governance and Transparency
KAIA operates with an on-chain governance system where voting power is based on staked KAIA tokens. Governance ensures:
* **Fair Representation:** Voting rights are capped to prevent dominance by large stakeholders.
* **Delegation Allowed:** Token holders can delegate voting power to trusted representatives.
* **Transparency:** All governance proposals and transactions are recorded on-chain, ensuring full auditability.
## Why KAIA?
KAIA is built to lead Web3 adoption in Asia by offering high-performance, low-cost infrastructure for businesses of all sizes. It provides real-world asset (RWA) linkage, abundant liquidity support, and convenient development tools, making it an attractive platform for decentralized applications across various sectors.
> [card] [KAIA documentation](https://docs.kaia.io/learn/)
>
> Access comprehensive documentation for KAIA, providing detailed insights into its zk-Rollup technology, platform architecture, and how to build on it.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, offering insights into contract interactions and the dynamics of kaia's zk-Rollup operations.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed through KAIA’s zk-Rollups, illustrating the network's enhanced throughput and scalability.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, highlighting the efficiency and reduced costs of operations on kaia.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of smart contract executions on the kaia network.
# kaia.blocks
Source: https://docs.dune.com/data-catalog/evm/kaia/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for KAIA.
## Table description
The `kaia.blocks` table contains information about blocks in the kaia blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM kaia.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM kaia.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM kaia.blocks
GROUP BY 1
LIMIT 10`
# kaia.creation_traces
Source: https://docs.dune.com/data-catalog/evm/kaia/raw/creation-traces
Contract deployment records on KAIA — deployer address, factory context, and deployed bytecode.
## Table Description
The `kaia.creation_traces` table contains information about the creation of smart contracts on the kaia blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the kaia blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the kaia blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM kaia.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM kaia.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM kaia.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# kaia.logs
Source: https://docs.dune.com/data-catalog/evm/kaia/raw/logs
Smart contract event logs on KAIA — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `kaia.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/kaia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM kaia.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM kaia.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM kaia.logs
WHERE evt_block_number = 1000000`
# kaia.traces
Source: https://docs.dune.com/data-catalog/evm/kaia/raw/traces
Internal transaction traces on KAIA — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `kaia.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/kaia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM kaia.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# kaia.transactions
Source: https://docs.dune.com/data-catalog/evm/kaia/raw/transactions
Every transaction on KAIA — from, to, value, gas, calldata, and receipt status.
## Table Description
The `kaia.transactions` table contains information about all transactions on the kaia blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the kaia blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/kaia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kaia\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM kaia.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM kaia.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM kaia.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on katana
Source: https://docs.dune.com/data-catalog/evm/katana/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Katana — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for katana transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on katana.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=katana](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=katana)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=katana\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=katana\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on katana
Source: https://docs.dune.com/data-catalog/evm/katana/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on DEX trade events across various protocols on katana.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for katana transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on katana.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=katana](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=katana)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=katana\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=katana\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Call Tables
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# katana.contracts
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/contracts
Verified contract registry on Katana — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the katana blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# katana.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/logs-decoded
ABI-decoded event logs on Katana — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from katana transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/katana/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on katana?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for katana on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=logs_decoded)
# Decoded Data Overview
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/overview
Overview of decoded data on Katana
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/katana/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/katana/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/katana/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# katana.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/katana/decoded/traces-decoded
ABI-decoded function calls on Katana — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from katana transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/katana/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=traces_decoded)
# Katana Overview
Source: https://docs.dune.com/data-catalog/evm/katana/overview
Katana data on Dune
## What is Katana?
Katana is a high-performance blockchain platform designed for scalability and developer experience. It provides a robust infrastructure for building decentralized applications with advanced features and optimized performance.
## Key Features
### High Performance
* Optimized for high-frequency trading and DeFi applications
* Supports thousands of transactions per second
* Low latency transaction confirmations
### Developer Experience
* Full EVM compatibility with enhanced capabilities
* Comprehensive developer tools and SDKs
* Easy deployment and management of smart contracts
### Security and Infrastructure
* Robust security model with multiple layers of protection
* Advanced cryptographic protocols for transaction validation
* Distributed network architecture for enhanced reliability
> [card] [Katana Documentation](https://app.katana.network/krates)
>
> Official documentation and resources for developers building on Katana
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Katana
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# katana.blocks
Source: https://docs.dune.com/data-catalog/evm/katana/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Katana.
## Table description
The `katana.blocks` table contains information about blocks in the katana blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM katana.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM katana.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM katana.blocks
GROUP BY 1
LIMIT 10`
# katana.creation_traces
Source: https://docs.dune.com/data-catalog/evm/katana/raw/creation-traces
Contract deployment records on Katana — deployer address, factory context, and deployed bytecode.
## Table Description
The `katana.creation_traces` table contains information about the creation of smart contracts on the katana blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the katana blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the katana blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM katana.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM katana.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM katana.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# katana.logs
Source: https://docs.dune.com/data-catalog/evm/katana/raw/logs
Smart contract event logs on Katana — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `katana.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/katana/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM katana.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM katana.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM katana.logs
WHERE evt_block_number = 1000000`
# katana.traces
Source: https://docs.dune.com/data-catalog/evm/katana/raw/traces
Internal transaction traces on Katana — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `katana.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/katana/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM katana.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# katana.transactions
Source: https://docs.dune.com/data-catalog/evm/katana/raw/transactions
Every transaction on Katana — from, to, value, gas, calldata, and receipt status.
## Table Description
The `katana.transactions` table contains information about all transactions on the katana blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the katana blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/katana/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=katana\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM katana.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM katana.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM katana.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on lens
Source: https://docs.dune.com/data-catalog/evm/lens/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on lens.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for lens transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on lens.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=lens](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=lens)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=lens\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=lens\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on lens
Source: https://docs.dune.com/data-catalog/evm/lens/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on lens.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for lens transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on lens.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=lens](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=lens)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=lens\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=lens\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Lens Call Tables
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Lens network in their own tables.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# lens.contracts
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/contracts
Verified contract registry on Lens — contract name, namespace, ABI, and deployment metadata.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table Description
This table contains information about the contracts Dune has decoded on the lens blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# lens.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/logs-decoded
ABI-decoded event logs on Lens — human-readable event names and parsed parameters from verified contracts.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
\## Table Description
The \`logs_decoded\` table contains decoded logs from lens transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/lens/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on lens?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for lens on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=logs_decoded)
# Lens Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/overview
Simplifying Lens smart contract analysis through human-readable tables.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
> [!WARNING]
>
> Due to bugs in the Lens client, some contract creation traces are missing, and data in the code field is incomplete for certain blocks. Consequently, we cannot support factory and bytecode matching for this chain. Once the bugs are addressed, we will work to restore this functionality. We apologize for the inconvenience.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/lens/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/lens/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/lens/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# lens.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/lens/decoded/traces-decoded
ABI-decoded function calls on Lens — parsed function names, inputs, and outputs from verified contracts.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table Description
The `traces_decoded` table contains decoded traces from lens transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/lens/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=traces_decoded)
# Lens Overview
Source: https://docs.dune.com/data-catalog/evm/lens/overview
Lens data on Dune
> [!WARNING]
>
> **Deprecation Notice**: Starting from the 19th of December 2025 Dune is not live ingesting and indexing Lens data. The historical data of the chain will remain available to be used.
Lens is a ZK chain that combines social primitives with a simple user experience and high scalability. Built on ZK technology, Lens Chain aims to bring SocialFi accessibility to a wider audience while maintaining robust security and performance.
**Architecture and Technology:**
* **ZKSync**: A ZK-based scaling solution that provides high throughput and security
* **Social Protocol**: Core social primitives for building social applications
* **Storage Nodes**: Decentralized storage with centralized performance
* **Account Abstraction**: Built-in support for smart accounts and improved user experience
**Enhanced User Experience:**
Lens focuses on simplifying the blockchain experience while maintaining high performance. The platform is designed to make social applications accessible to everyday users while providing the tools and infrastructure developers need to build sophisticated applications.
**Developer-Centric Approach:**
The platform provides a comprehensive environment for developers to build and deploy applications, with native support for advanced features like account abstraction and paymaster functionality, enabling more sophisticated and user-friendly dApps.
> [card] [Lens documentation](https://lens.xyz/docs/chain/overview)
>
> Access the official documentation for Lens to explore its architecture, features, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into interactions and activities on the Lens network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed using Lens's ZK technology, reflecting the network's capacity for high transaction throughput.
> [card] [Transactions](./raw/transactions)
>
> Detailed transaction data, showcasing the operational efficiency and cost-effectiveness of Lens's validium solution.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of smart contract executions on Lens.
# lens.blocks
Source: https://docs.dune.com/data-catalog/evm/lens/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Lens.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table description
The `lens.blocks` table contains information about blocks in the lens blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM lens.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM lens.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM lens.blocks
GROUP BY 1
LIMIT 10`
# lens.creation_traces
Source: https://docs.dune.com/data-catalog/evm/lens/raw/creation-traces
Contract deployment records on Lens — deployer address, factory context, and deployed bytecode.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table Description
The `lens.creation_traces` table contains information about the creation of smart contracts on the lens blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the lens blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the lens blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM lens.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM lens.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM lens.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# lens.logs
Source: https://docs.dune.com/data-catalog/evm/lens/raw/logs
Smart contract event logs on Lens — indexed topics and data fields from token transfers, swaps, and protocol actions.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table Description
The `lens.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/lens/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM lens.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM lens.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM lens.logs
WHERE evt_block_number = 1000000`
# lens.traces
Source: https://docs.dune.com/data-catalog/evm/lens/raw/traces
Internal transaction traces on Lens — cross-contract calls, delegate calls, and value transfers with full call stack context.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
> [!WARNING]
>
> You may see duplicate records in the `traces` table for the Lens chain. This is not a bug, but a result of trace calls appearing twice within the same transaction. These consecutive calls—an outer and an inner call—are identical except for their gas values. They share the same `from`, `to`, `input`, `output`, `success`, and `value` fields.
## Table Description
The `lens.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/lens/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM lens.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# lens.transactions
Source: https://docs.dune.com/data-catalog/evm/lens/raw/transactions
Every transaction on Lens — from, to, value, gas, calldata, and receipt status.
> [!WARNING]
>
> **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
## Table Description
The `lens.transactions` table contains information about all transactions on the lens blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the lens blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/lens/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=lens\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM lens.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM lens.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM lens.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on linea
Source: https://docs.dune.com/data-catalog/evm/linea/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Linea — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for linea transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on linea.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=linea](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=linea)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on linea
Source: https://docs.dune.com/data-catalog/evm/linea/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on linea.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for linea transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on linea.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=linea](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=linea)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on linea
Source: https://docs.dune.com/data-catalog/evm/linea/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on linea.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for linea transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on linea.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=linea](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=linea)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=linea\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Linea Call Tables
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Linea network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# linea.contracts
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/contracts
Verified contract registry on Linea — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the linea blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# linea.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/logs-decoded
ABI-decoded event logs on Linea — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from linea transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On linea, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/linea/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **linea.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=logs_decoded)
# Linea Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/overview
Simplifying Linea smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/linea/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/linea/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/linea/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# linea.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/linea/decoded/traces-decoded
ABI-decoded function calls on Linea — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from linea transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/linea/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=traces_decoded)
# Linea Overview
Source: https://docs.dune.com/data-catalog/evm/linea/overview
Linea data on Dune
Linea is an EVM-equivalent network, scaling the Ethereum experience. Secured with a zero-knowledge rollup to Ethereum, built on lattice-based cryptography, and powered by Consensys. Linea behaves like Ethereum, but with a higher throughput and lower fees.
> [card] [Linea docs](https://https://docs.linea.build/)
>
> The official documentation for Linea, providing detailed information on the protocol, architecture, and developer resources
## Data Catalog
> [card] [Logs](/data-catalog/evm/linea/raw/logs)
>
> Event logs from smart contracts, providing insights into contract interactions
> [card] [Blocks](/data-catalog/evm/linea/raw/blocks)
>
> Information and statistics on blocks, showcasing the network's activity and throughput
> [card] [Transactions](/data-catalog/evm/linea/raw/transactions)
>
> Detailed transaction data, highlighting the execution and efficiency of operations
> [card] [Decoded](/data-catalog/evm/linea/decoded/overview)
>
> Decoded transaction data for easier understanding and analysis of smart contract executions
# linea.blocks
Source: https://docs.dune.com/data-catalog/evm/linea/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Linea.
## Table description
The `linea.blocks` table contains information about blocks in the linea blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM linea.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM linea.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM linea.blocks
GROUP BY 1
LIMIT 10`
# linea.creation_traces
Source: https://docs.dune.com/data-catalog/evm/linea/raw/creation-traces
Contract deployment records on Linea — deployer address, factory context, and deployed bytecode.
## Table Description
The `linea.creation_traces` table contains information about the creation of smart contracts on the linea blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the linea blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the linea blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM linea.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM linea.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM linea.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# linea.logs
Source: https://docs.dune.com/data-catalog/evm/linea/raw/logs
Smart contract event logs on Linea — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `linea.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/linea/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM linea.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM linea.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM linea.logs
WHERE evt_block_number = 1000000`
# linea.traces
Source: https://docs.dune.com/data-catalog/evm/linea/raw/traces
Internal transaction traces on Linea — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `linea.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/linea/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM linea.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# linea.transactions
Source: https://docs.dune.com/data-catalog/evm/linea/raw/transactions
Every transaction on Linea — from, to, value, gas, calldata, and receipt status.
## Table Description
The `linea.transactions` table contains information about all transactions on the linea blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the linea blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/linea/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=linea\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM linea.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM linea.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM linea.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on mantle
Source: https://docs.dune.com/data-catalog/evm/mantle/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Mantle — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for mantle transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on mantle.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=mantle](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=mantle)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on mantle
Source: https://docs.dune.com/data-catalog/evm/mantle/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on mantle.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for mantle transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on mantle.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=mantle](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=mantle)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on mantle
Source: https://docs.dune.com/data-catalog/evm/mantle/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on mantle.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for mantle transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on mantle.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=mantle](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=mantle)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mantle\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Mantle Call Tables
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Mantle network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# mantle.contracts
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/contracts
Verified contract registry on Mantle — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the mantle blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# mantle.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/logs-decoded
ABI-decoded event logs on Mantle — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from mantle transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On mantle, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/mantle/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **mantle.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=logs_decoded)
# Mantle Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/overview
Simplifying Mantle smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/mantle/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/mantle/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/mantle/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# mantle.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/mantle/decoded/traces-decoded
ABI-decoded function calls on Mantle — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from mantle transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/mantle/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=traces_decoded)
# Mantle Overview
Source: https://docs.dune.com/data-catalog/evm/mantle/overview
Mantle data on Dune
Mantle Network is dedicated to building an EVM-compatible scaling solution for Ethereum. This means that all contracts and tools running on Ethereum can operate on the Mantle Network with minimal modifications. Taking advantage of its modular architecture, Mantle Network combines an optimistic rollup with various innovative data availability solutions, providing cheaper and more accessible data availability while inheriting the security of Ethereum.
Mantle's design philosophy aims to offer users a less costly and more user-friendly experience, provide developers with a simpler and more flexible development environment, and deliver a comprehensive set of infrastructure for the next wave of mass-adopted dApps.
As an Ethereum L2, Mantle Network offers the security, stability, and scalability necessary to support your onchain applications. Developers can deploy any EVM-compatible codebase and smoothly transition users and assets from Ethereum L1 and other compatible chains.
## Key Features
* **Built as a Rollup**: Utilizes Ethereum validators and consensus protocols to significantly reduce gas fees, decrease latency, and increase throughput. Users can customize transaction confirmation requirements to provide near real-time confirmation latency with minimal security settings.
* **Modular Architecture**: Unlike traditional monolithic chains that execute transaction execution, consensus, settlement, and storage at the same network layer, Mantle separates these functions into individual modules as a modular chain. These include an EVM-compatible execution layer developed by Mantle for transaction execution, a consensus layer and settlement layer completed on Ethereum, and an external DA component (currently Mantle DA powered by EigenDA technology; we will switch to EigenDA upon its mainnet stable launch).
* **Secured by Ethereum**: L2 state transitions are verified by Ethereum validators, undergoing the same consensus and settlement processes as L1 transactions.
* **Modular Data Availability**: Independent DA modules, such as Mantle DA powered by EigenLayer's EigenDA technology. According to internal assessments, this translates to potential cost savings of more than 90% compared to on-chain L1.
> [card] [Mantle documentation](https://mantle.network/docs)
>
> Explore comprehensive documentation on Mantle, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Mantle network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Mantle.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Mantle.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# mantle.blocks
Source: https://docs.dune.com/data-catalog/evm/mantle/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Mantle.
## Table description
The `mantle.blocks` table contains information about blocks in the mantle blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM mantle.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM mantle.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM mantle.blocks
GROUP BY 1
LIMIT 10`
# mantle.creation_traces
Source: https://docs.dune.com/data-catalog/evm/mantle/raw/creation-traces
Contract deployment records on Mantle — deployer address, factory context, and deployed bytecode.
## Table Description
The `mantle.creation_traces` table contains information about the creation of smart contracts on the mantle blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the mantle blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the mantle blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM mantle.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM mantle.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM mantle.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# mantle.logs
Source: https://docs.dune.com/data-catalog/evm/mantle/raw/logs
Smart contract event logs on Mantle — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `mantle.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mantle/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM mantle.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM mantle.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM mantle.logs
WHERE evt_block_number = 1000000`
# mantle.traces
Source: https://docs.dune.com/data-catalog/evm/mantle/raw/traces
Internal transaction traces on Mantle — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `mantle.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mantle/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM mantle.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# mantle.transactions
Source: https://docs.dune.com/data-catalog/evm/mantle/raw/transactions
Every transaction on Mantle — from, to, value, gas, calldata, and receipt status.
## Table Description
The `mantle.transactions` table contains information about all transactions on the mantle blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the mantle blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mantle/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mantle\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM mantle.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM mantle.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM mantle.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on megaeth
Source: https://docs.dune.com/data-catalog/evm/megaeth/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on megaeth.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for megaeth transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on megaeth.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=megaeth](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=megaeth)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=megaeth\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=megaeth\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# MegaETH Call Tables
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the MegaETH network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# megaeth.contracts
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/contracts
Verified contract registry on MegaETH — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the megaeth blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=contracts)
# megaeth.event_logs
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/event-logs
Smart contract event logs on MegaETH — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# megaeth.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/logs-decoded
ABI-decoded event logs on MegaETH — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from megaeth transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/megaeth/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on megaeth?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for megaeth on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=logs_decoded)
# MegaETH Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/overview
Simplifying MegaETH smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/megaeth/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/megaeth/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/megaeth/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# megaeth.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/megaeth/decoded/traces-decoded
ABI-decoded function calls on MegaETH — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from megaeth transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/megaeth/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=traces_decoded)
# MegaETH Overview
Source: https://docs.dune.com/data-catalog/evm/megaeth/overview
MegaETH data on Dune
## What is MegaETH?
MegaETH is an EVM-compatible blockchain built to deliver **real-time performance**, aiming for millisecond-level responsiveness while sustaining high throughput and substantial compute capacity. The goal is to push performance toward hardware limits so developers can build applications with fast feedback loops and high update rates.
## Key Features
* **Real-time execution**: Process transactions as they arrive and publish state updates in real time.
* **High throughput + compute**: Designed to support demanding on-chain applications that are bottlenecked by gas-per-second and compute limits on typical EVM chains.
* **Node specialization**: Uses specialized node roles (sequencers, provers, full nodes, replica nodes) to reduce consensus/execution overhead while preserving verifiability.
* **EVM compatibility**: Supports the EVM environment so existing Ethereum tooling and contracts can be used.
* **Security via base layers**: Delegates security and censorship-resistance constraints to base layers such as Ethereum and EigenDA, enabling a broader performance optimization design space.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/megaeth/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/megaeth/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [MegaETH Research](https://www.megaeth.com/research)
>
> MegaETH research and technical deep dives
# megaeth.blocks
Source: https://docs.dune.com/data-catalog/evm/megaeth/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for MegaETH.
## Table description
The `megaeth.blocks` table contains information about blocks in the megaeth blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM megaeth.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM megaeth.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM megaeth.blocks
GROUP BY 1
LIMIT 10`
# megaeth.creation_traces
Source: https://docs.dune.com/data-catalog/evm/megaeth/raw/creation-traces
Contract deployment records on MegaETH — deployer address, factory context, and deployed bytecode.
## Table Description
The `megaeth.creation_traces` table contains information about the creation of smart contracts on the megaeth blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the megaeth blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the megaeth blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM megaeth.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM megaeth.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM megaeth.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# megaeth.logs
Source: https://docs.dune.com/data-catalog/evm/megaeth/raw/logs
Smart contract event logs on MegaETH — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `megaeth.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/megaeth/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM megaeth.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM megaeth.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM megaeth.logs
WHERE evt_block_number = 1000000`
# megaeth.traces
Source: https://docs.dune.com/data-catalog/evm/megaeth/raw/traces
Internal transaction traces on MegaETH — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `megaeth.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/megaeth/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM megaeth.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# megaeth.transactions
Source: https://docs.dune.com/data-catalog/evm/megaeth/raw/transactions
Every transaction on MegaETH — from, to, value, gas, calldata, and receipt status.
## Table Description
The `megaeth.transactions` table contains information about all transactions on the megaeth blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the megaeth blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/megaeth/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=megaeth\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM megaeth.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM megaeth.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM megaeth.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on mezo
Source: https://docs.dune.com/data-catalog/evm/mezo/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on mezo.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for mezo transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on mezo.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=mezo](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=mezo)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mezo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=mezo\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Mezo Call Tables
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Mezo network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# mezo.contracts
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/contracts
Verified contract registry on Mezo — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the mezo blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# mezo.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/logs-decoded
ABI-decoded event logs on Mezo — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from mezo transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/mezo/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on mezo?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for mezo on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=logs_decoded)
# Mezo Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/overview
Simplifying Mezo smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/mezo/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/mezo/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/mezo/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# mezo.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/mezo/decoded/traces-decoded
ABI-decoded function calls on Mezo — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from mezo transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/mezo/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=traces_decoded)
# Mezo Overview
Source: https://docs.dune.com/data-catalog/evm/mezo/overview
Mezo data on Dune
## What is Mezo?
Mezo is the onchain Bitcoin banking platform owned by its users. Users can access self-service Bitcoin finance without interacting with loan officers, undergoing credit checks, or observing operational hours. It's just you, your Bitcoin, and permissionless access to financial services 24/7.
Mezo eliminates traditional banking middlemen, giving you the power to manage your finances intelligently on your own terms. The platform is built on tBTC, the most battle-tested decentralized Bitcoin bridge with 24k+ BTC bridged since 2020.
## Key Features and Advantages
### Flagship Feature: Fixed Rate Bitcoin Loans
**MUSD: Bitcoin-Backed Money with Complete Autonomy**
Deposit Bitcoin as collateral, mint MUSD (a dollar-pegged stablecoin), and use it however you need. Your Bitcoin stays yours while MUSD provides you with instant liquidity. Fixed rates start as low as 1% and stay fixed for the entire life of the loan.
This is self-service banking with complete autonomy. Unlike any traditional banking experience, there are no minimum payments, set repayment schedules, or penalties for early repayment. Close your position tomorrow or keep it open for years.
### Core Features
* **Bitcoin Loans (MUSD)**: Self-service loans at fixed 1% rates. Borrow MUSD against your Bitcoin and manage everything yourself. Access up to 90% of your Bitcoin's value.
* **Bitcoin Savings Accounts (Yield Vaults)**: Deposit BTC or MUSD into automated vaults that generate yield through lending, liquidity provision, and DeFi strategies. Like a high-yield savings account, but transparent, onchain. No minimum balance, withdraw anytime.
* **Native Swaps**: Trade directly on Mezo without leaving the platform. Swap between BTC, MUSD, and other assets with deep liquidity and competitive rates.
* **Mezo Market**: Spend your MUSD on real goods and services. Buy gift cards, pay for subscriptions, and access everyday purchases, all without selling your Bitcoin.
* **BTC as Gas**: Every transaction on Mezo is paid in Bitcoin. This keeps the experience pure Bitcoin while creating a revenue stream that flows back to participants in the Mezo ecosystem.
### Network Specifications
* **Technology Stack**: EVM-compatible blockchain
* **Gas Token**: BTC (Bitcoin)
* **Network Type**: EVM-compatible Layer 2
* **Base Bridge**: tBTC (decentralized Bitcoin bridge)
* **Reserve Verification**: Verifiable 24/7 reserves
### Developer Tools & Infrastructure
* **Full EVM Compatibility**: Support for standard Ethereum development tools
* **Permissionless Building**: Developers can build without permission
* **Open Source**: Contracts and documentation are open source
* **Infrastructure**:
* Cross-chain bridges
* DeFi integrations
* Payment systems
* Financial primitives
> [card] [Mezo Documentation](https://mezo.org/docs/users/introduction/mezo-self-service-banking)
>
> Official documentation for users and developers building on Mezo
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Mezo
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# mezo.blocks
Source: https://docs.dune.com/data-catalog/evm/mezo/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Mezo.
## Table description
The `mezo.blocks` table contains information about blocks in the mezo blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM mezo.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM mezo.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM mezo.blocks
GROUP BY 1
LIMIT 10`
# mezo.creation_traces
Source: https://docs.dune.com/data-catalog/evm/mezo/raw/creation-traces
Contract deployment records on Mezo — deployer address, factory context, and deployed bytecode.
## Table Description
The `mezo.creation_traces` table contains information about the creation of smart contracts on the mezo blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the mezo blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the mezo blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM mezo.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM mezo.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM mezo.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# mezo.logs
Source: https://docs.dune.com/data-catalog/evm/mezo/raw/logs
Smart contract event logs on Mezo — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `mezo.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mezo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM mezo.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM mezo.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM mezo.logs
WHERE evt_block_number = 1000000`
# mezo.traces
Source: https://docs.dune.com/data-catalog/evm/mezo/raw/traces
Internal transaction traces on Mezo — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `mezo.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mezo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM mezo.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# mezo.transactions
Source: https://docs.dune.com/data-catalog/evm/mezo/raw/transactions
Every transaction on Mezo — from, to, value, gas, calldata, and receipt status.
## Table Description
The `mezo.transactions` table contains information about all transactions on the mezo blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the mezo blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/mezo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=mezo\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM mezo.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM mezo.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM mezo.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Monad Testnet Call Tables
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Monad testnet in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# monad_testnet.contracts
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/contracts
Verified contract registry on Monad Testnet — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the monad_testnet blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=contracts)
# monad_testnet.event_logs
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/event-logs
Smart contract event logs on Monad Testnet — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# monad_testnet.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/logs-decoded
ABI-decoded event logs on Monad Testnet — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from monad_testnet transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/monad_testnet/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on monad_testnet?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for monad_testnet on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=logs_decoded)
# Monad Testnet Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/overview
Simplifying Monad testnet smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/monad_testnet/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/monad_testnet/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/monad_testnet/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# monad_testnet.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/decoded/traces-decoded
ABI-decoded function calls on Monad Testnet — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from monad_testnet transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/monad_testnet/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=traces_decoded)
# Monad Testnet Overview
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/overview
Monad Testnet data on Dune
## What is Monad?
Monad is a high-performance Ethereum-compatible L1 that materially advances the efficient frontier in the balance between decentralization and scalability. Monad introduces optimizations in five major areas, resulting in an Ethereum-compatible Layer-1 blockchain with 10,000 tps of throughput, 400ms block frequency, and 800ms finality.
## Key Features
* **MonadBFT**: Performant, tail-fork-resistant BFT consensus
* **RaptorCast**: Efficient block transmission
* **Asynchronous Execution**: Pipelining consensus and execution to raise the time budget for execution
* **Parallel Execution**: Efficient transaction execution
* **MonadDb**: Efficient state access
* **Full EVM Compatibility**: Complete bytecode equivalence for seamless application deployment
* **Ethereum RPC API Compatibility**: Familiar interface for users and developers
## Performance Characteristics
* **10,000 TPS**: High throughput for scalable applications
* **400ms Block Frequency**: Fast block production
* **800ms Finality**: Quick transaction finalization
* **Commodity Hardware**: Designed to run on standard hardware
## Architecture
Monad is designed with a focus on performance and scalability. The first Monad client is built by Category Labs and is written from scratch in C++ and Rust. The monad-bft consensus client implementation is open-source under GPL-3.0.
## Testnet
Monad's public testnet provides developers with a sandbox environment to test and deploy applications before mainnet launch. The testnet supports many leading Ethereum developer tools and infrastructure providers.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/monad-testnet/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/monad-testnet/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Monad Documentation](https://docs.monad.xyz/)
>
> Official documentation for developers building on Monad
# monad_testnet.blocks
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Monad Testnet.
## Table description
The `monad_testnet.blocks` table contains information about blocks in the monad_testnet blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM monad_testnet.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM monad_testnet.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM monad_testnet.blocks
GROUP BY 1
LIMIT 10`
# monad_testnet.creation_traces
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/raw/creation-traces
Contract deployment records on Monad Testnet — deployer address, factory context, and deployed bytecode.
## Table Description
The `monad_testnet.creation_traces` table contains information about the creation of smart contracts on the monad_testnet blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the monad_testnet blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the monad_testnet blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM monad_testnet.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM monad_testnet.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM monad_testnet.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# monad_testnet.logs
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/raw/logs
Smart contract event logs on Monad Testnet — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `monad_testnet.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad_testnet/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM monad_testnet.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM monad_testnet.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM monad_testnet.logs
WHERE evt_block_number = 1000000`
# monad_testnet.traces
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/raw/traces
Internal transaction traces on Monad Testnet — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `monad_testnet.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad_testnet/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM monad_testnet.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# monad_testnet.transactions
Source: https://docs.dune.com/data-catalog/evm/monad-testnet/raw/transactions
Every transaction on Monad Testnet — from, to, value, gas, calldata, and receipt status.
## Table Description
The `monad_testnet.transactions` table contains information about all transactions on the monad_testnet blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the monad_testnet blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad_testnet/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad_testnet\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM monad_testnet.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM monad_testnet.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM monad_testnet.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on monad
Source: https://docs.dune.com/data-catalog/evm/monad/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on monad.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for monad transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on monad.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=monad](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=monad)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=monad\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=monad\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Monad Call Tables
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Monad in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# monad.contracts
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/contracts
Verified contract registry on Monad — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the monad blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=contracts)
# monad.event_logs
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/event-logs
Smart contract event logs on Monad — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# monad.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/logs-decoded
ABI-decoded event logs on Monad — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from monad transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On monad, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/monad/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **monad.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=logs_decoded)
# Monad Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/overview
Simplifying Monad smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/monad/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/monad/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/monad/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# monad.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/monad/decoded/traces-decoded
ABI-decoded function calls on Monad — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from monad transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/monad/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=traces_decoded)
# Monad Overview
Source: https://docs.dune.com/data-catalog/evm/monad/overview
Monad data on Dune
## What is Monad?
Monad is a high-performance Ethereum-compatible L1 that materially advances the efficient frontier in the balance between decentralization and scalability. Monad introduces optimizations in five major areas, resulting in an Ethereum-compatible Layer-1 blockchain with 10,000 tps of throughput, 400ms block frequency, and 800ms finality.
## Key Features
* **MonadBFT**: Performant, tail-fork-resistant BFT consensus
* **RaptorCast**: Efficient block transmission
* **Asynchronous Execution**: Pipelining consensus and execution to raise the time budget for execution
* **Parallel Execution**: Efficient transaction execution
* **MonadDb**: Efficient state access
* **Full EVM Compatibility**: Complete bytecode equivalence for seamless application deployment
* **Ethereum RPC API Compatibility**: Familiar interface for users and developers
## Performance Characteristics
* **10,000 TPS**: High throughput for scalable applications
* **400ms Block Frequency**: Fast block production
* **800ms Finality**: Quick transaction finalization
* **Commodity Hardware**: Designed to run on standard hardware
## Architecture
Monad is designed with a focus on performance and scalability. The first Monad client is built by Category Labs and is written from scratch in C++ and Rust. The monad-bft consensus client implementation is open-source under GPL-3.0.
## Mainnet
Monad mainnet provides developers with a production-ready environment to deploy and run applications. The mainnet supports many leading Ethereum developer tools and infrastructure providers.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/monad/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/monad/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Monad Documentation](https://docs.monad.xyz/)
>
> Official documentation for developers building on Monad
# monad.blocks
Source: https://docs.dune.com/data-catalog/evm/monad/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Monad.
## Table description
The `monad.blocks` table contains information about blocks in the monad blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM monad.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM monad.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM monad.blocks
GROUP BY 1
LIMIT 10`
# monad.creation_traces
Source: https://docs.dune.com/data-catalog/evm/monad/raw/creation-traces
Contract deployment records on Monad — deployer address, factory context, and deployed bytecode.
## Table Description
The `monad.creation_traces` table contains information about the creation of smart contracts on the monad blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the monad blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the monad blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM monad.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM monad.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM monad.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# monad.logs
Source: https://docs.dune.com/data-catalog/evm/monad/raw/logs
Smart contract event logs on Monad — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `monad.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM monad.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM monad.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM monad.logs
WHERE evt_block_number = 1000000`
# monad.traces
Source: https://docs.dune.com/data-catalog/evm/monad/raw/traces
Internal transaction traces on Monad — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `monad.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM monad.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# monad.transactions
Source: https://docs.dune.com/data-catalog/evm/monad/raw/transactions
Every transaction on Monad — from, to, value, gas, calldata, and receipt status.
## Table Description
The `monad.transactions` table contains information about all transactions on the monad blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the monad blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/monad/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=monad\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM monad.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM monad.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM monad.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on morph
Source: https://docs.dune.com/data-catalog/evm/morph/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on morph.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for morph transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on morph.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=morph](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=morph)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=morph\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=morph\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Morph Call Tables
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Morph network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# morph.contracts
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/contracts
Verified contract registry on Morph — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the morph blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=contracts)
# morph.event_logs
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/event-logs
Smart contract event logs on Morph — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# morph.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/logs-decoded
ABI-decoded event logs on Morph — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from morph transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/morph/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on morph?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for morph on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=logs_decoded)
# Morph Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/overview
Simplifying Morph smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/morph/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/morph/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/morph/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# morph.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/morph/decoded/traces-decoded
ABI-decoded function calls on Morph — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from morph transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/morph/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=traces_decoded)
# Morph Overview
Source: https://docs.dune.com/data-catalog/evm/morph/overview
Morph blockchain data on Dune
## What is Morph?
Morph is an EVM-compatible Ethereum Layer 2 built as an optimistic rollup. It targets low-cost, high-throughput onchain activity while inheriting security from Ethereum. Dune indexes Morph under the `morph` schema namespace with standard EVM raw tables, ABI-decoded contract data, and curated DEX, transfer, price, and gas spells.
## Key Features
* **EVM compatibility**: Deploy and interact with standard Solidity contracts using familiar Ethereum tooling.
* **Optimistic rollup**: Morph batches transactions to Ethereum for data availability and fault-proof security.
* **Curated analytics**: Morph is included in cross-chain spells such as `dex.trades`, `tokens.transfers`, `prices.usd`, and `gas.fees`.
## EVM Specifics on Dune
* **Schema namespace**: `morph` (query as `morph.blocks`, `morph.transactions`, etc.).
* **Chain ID**: `2818` (mainnet).
* **Native gas token**: ETH (18 decimals).
* **Raw tables**: `blocks`, `transactions`, `logs`, `traces`, `creation_traces`.
* **Decoded infrastructure**: `morph.contracts`, `morph.signatures`, `morph.logs_decoded`, `morph.traces_decoded`.
* **Standard token events**: `erc20_morph.evt_*`, `erc721_morph.evt_*` (when materialized).
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/morph/raw/blocks)
>
> Block, transaction, log, and trace data indexed from Morph nodes.
> [card] [Decoded Data](/data-catalog/evm/morph/decoded/overview)
>
> ABI-decoded contract interactions and events.
> [card] [DEX Trades](/data-catalog/evm/morph/curated-data/dex/dex-trades)
>
> Standardized decentralized exchange trades via `dex.trades`.
## Resources
> [card] [Morph](https://www.morphl2.io/)
>
> Morph project home page.
> [card] [Block Explorer](https://explorer.morph.network)
>
> Morph mainnet block explorer.
# morph.blocks
Source: https://docs.dune.com/data-catalog/evm/morph/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Morph.
## Table description
The `morph.blocks` table contains information about blocks in the morph blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM morph.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM morph.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM morph.blocks
GROUP BY 1
LIMIT 10`
# morph.creation_traces
Source: https://docs.dune.com/data-catalog/evm/morph/raw/creation-traces
Contract deployment records on Morph — deployer address, factory context, and deployed bytecode.
## Table Description
The `morph.creation_traces` table contains information about the creation of smart contracts on the morph blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the morph blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the morph blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM morph.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM morph.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM morph.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# morph.logs
Source: https://docs.dune.com/data-catalog/evm/morph/raw/logs
Smart contract event logs on Morph — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `morph.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/morph/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM morph.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM morph.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM morph.logs
WHERE evt_block_number = 1000000`
# morph.traces
Source: https://docs.dune.com/data-catalog/evm/morph/raw/traces
Internal transaction traces on Morph — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `morph.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/morph/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM morph.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# morph.transactions
Source: https://docs.dune.com/data-catalog/evm/morph/raw/transactions
Every transaction on Morph — from, to, value, gas, calldata, and receipt status.
## Table Description
The `morph.transactions` table contains information about all transactions on the morph blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the morph blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/morph/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=morph\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM morph.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM morph.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM morph.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on opbnb
Source: https://docs.dune.com/data-catalog/evm/opbnb/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on opBNB — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for opbnb transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on opbnb.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=opbnb](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=opbnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on opbnb
Source: https://docs.dune.com/data-catalog/evm/opbnb/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on opbnb.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for opbnb transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on opbnb.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=opbnb](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=opbnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on opbnb
Source: https://docs.dune.com/data-catalog/evm/opbnb/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on opbnb.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for opbnb transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on opbnb.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=opbnb](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=opbnb)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=opbnb\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# opBNB Call Tables
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the opBNB network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# opbnb.contracts
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/contracts
Verified contract registry on opBNB — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the opbnb blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# opbnb.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/logs-decoded
ABI-decoded event logs on opBNB — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from opbnb transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/opbnb/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on opbnb?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for opbnb on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=logs_decoded)
# opBNB Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/overview
Simplifying opBNB smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/opbnb/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/opbnb/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/opbnb/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# opbnb.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/opbnb/decoded/traces-decoded
ABI-decoded function calls on opBNB — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from opbnb transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/opbnb/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=traces_decoded)
# opBNB Overview
Source: https://docs.dune.com/data-catalog/evm/opbnb/overview
opBNB data on Dune
## What is opBNB?
opBNB is a high-performance Layer 2 scaling solution for the BNB Smart Chain, powered by the bedrock version of Optimism OP Stack. It works by offloading transaction processing and resource usage from the BNB Smart Chain while maintaining data posting to the underlying mainnet. Users interact with opBNB by depositing funds from BSC and using applications and contracts on opBNB.
## Key Features and Advantages
### Optimistic Rollup Technology
* Processes transactions off-chain while maintaining BSC chain security
* Bundles multiple transactions into single batches for main chain submission
* Reduces computational load on BSC for faster and cheaper transactions
* Supports up to 5,000 transactions per second (TPS)
### Transaction Efficiency
* Lower transaction fees through off-chain processing
* Faster transaction confirmations
* Enhanced user experience for DApps and DeFi platforms
* Ideal for micro-transactions
### Security and Infrastructure
* Maintains security through BSC main chain's security model
* Fraud-proof mechanism for transaction validation
* Sequencers aggregate transactions and compute state transitions
* Provers generate cryptographic proofs for state validity
* Verifiers check proofs to ensure network integrity
### Network Specifications
* **Technology Stack**: OP Stack (bedrock version)
* **Gas Token**: BNB
* **Network Type**: EVM-compatible Layer 2
* **Base Chain**: BNB Smart Chain
### Developer Tools & Infrastructure
* **Smart Contract Development**: Support for standard Ethereum development tools
* **Block Explorers**: Multiple options for transaction monitoring
* **Infrastructure**:
* Cross-chain bridges
* Oracle integration
* VRF capabilities
* Indexing services
> [card] [opBNB Documentation](https://docs.bnbchain.org/bnb-opbnb/overview/)
>
> Official documentation for developers building on opBNB
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on opBNB
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# opbnb.blocks
Source: https://docs.dune.com/data-catalog/evm/opbnb/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for opBNB.
## Table description
The `opbnb.blocks` table contains information about blocks in the opbnb blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM opbnb.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM opbnb.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM opbnb.blocks
GROUP BY 1
LIMIT 10`
# opbnb.creation_traces
Source: https://docs.dune.com/data-catalog/evm/opbnb/raw/creation-traces
Contract deployment records on opBNB — deployer address, factory context, and deployed bytecode.
## Table Description
The `opbnb.creation_traces` table contains information about the creation of smart contracts on the opbnb blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the opbnb blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the opbnb blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM opbnb.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM opbnb.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM opbnb.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# opbnb.logs
Source: https://docs.dune.com/data-catalog/evm/opbnb/raw/logs
Smart contract event logs on opBNB — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `opbnb.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/opbnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM opbnb.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM opbnb.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM opbnb.logs
WHERE evt_block_number = 1000000`
# opbnb.traces
Source: https://docs.dune.com/data-catalog/evm/opbnb/raw/traces
Internal transaction traces on opBNB — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `opbnb.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/opbnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM opbnb.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# opbnb.transactions
Source: https://docs.dune.com/data-catalog/evm/opbnb/raw/transactions
Every transaction on opBNB — from, to, value, gas, calldata, and receipt status.
## Table Description
The `opbnb.transactions` table contains information about all transactions on the opbnb blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the opbnb blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/opbnb/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=opbnb\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM opbnb.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM opbnb.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM opbnb.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on optimism
Source: https://docs.dune.com/data-catalog/evm/optimism/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Optimism — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for optimism transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on optimism.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=optimism](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=optimism)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on optimism
Source: https://docs.dune.com/data-catalog/evm/optimism/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on optimism.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for optimism transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on optimism.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=optimism](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=optimism)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on optimism
Source: https://docs.dune.com/data-catalog/evm/optimism/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on optimism.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for optimism transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on optimism.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=optimism](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=optimism)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=optimism\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Optimism Call Tables
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Optimism network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# optimism.contracts
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/contracts
Verified contract registry on Optimism — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the optimism blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# optimism.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/logs-decoded
ABI-decoded event logs on Optimism — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from optimism transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On optimism, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/optimism/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **optimism.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=logs_decoded)
# Optimism Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/overview
Simplifying Optimism smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/optimism/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/optimism/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/optimism/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# ethereum.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/optimism/decoded/traces-decoded
ABI-decoded function calls on Ethereum — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from optimism transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/optimism/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=traces_decoded)
# Optimism Overview
Source: https://docs.dune.com/data-catalog/evm/optimism/overview
Optimism data on Dune
Optimism is a Layer 2 scaling solution for Ethereum that utilizes Optimistic Rollups to drastically improve transaction throughput while reducing costs. Optimism is designed to be fully compatible with Ethereum, allowing developers to deploy existing Ethereum applications without significant modifications.
Optimism operates under the principle of "optimistic execution," where transactions are assumed to be valid by default and only fully verified if a challenge is raised. This method greatly accelerates transaction processing times and lowers gas fees.
**Scalability and Cost-Efficiency:**
Optimism enhances Ethereum’s scalability by handling transactions off-chain while maintaining the security and decentralization of the main Ethereum network. It reduces the overall transaction costs, making it more accessible for users and developers.
**Ethereum Compatibility:**
Being fully compatible with Ethereum, Optimism allows for seamless migration of dApps and smart contracts, utilizing the same tools and programming languages used on Ethereum.
**Community-Driven Governance:**
Optimism actively supports a community-driven approach to its governance and development, promoting a decentralized and inclusive platform ecosystem.
> [card] [Optimism documentation](https://community.optimism.io/docs/)
>
> Access the official documentation for Optimism, providing detailed information on its technology, architecture, and how to build on the platform.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into contract interactions and the dynamic activity on Optimism.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed, reflecting the enhanced throughput and capacity of the Optimism network.
> [card] [Transactions](./raw/transactions)
>
> Detailed information on transactions, highlighting the operational efficiency and reduced costs facilitated by Optimistic Rollups.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and understanding of contract executions on the Optimism network.
# optimism.blocks
Source: https://docs.dune.com/data-catalog/evm/optimism/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Optimism.
## Table description
The `optimism.blocks` table contains information about blocks in the optimism blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM optimism.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM optimism.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM optimism.blocks
GROUP BY 1
LIMIT 10`
# optimism.creation_traces
Source: https://docs.dune.com/data-catalog/evm/optimism/raw/creation-traces
Contract deployment records on Optimism — deployer address, factory context, and deployed bytecode.
## Table Description
The `optimism.creation_traces` table contains information about the creation of smart contracts on the optimism blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the optimism blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the optimism blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM optimism.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM optimism.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM optimism.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# optimism.logs
Source: https://docs.dune.com/data-catalog/evm/optimism/raw/logs
Smart contract event logs on Optimism — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `optimism.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/optimism/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM optimism.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM optimism.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM optimism.logs
WHERE evt_block_number = 1000000`
# optimism.traces
Source: https://docs.dune.com/data-catalog/evm/optimism/raw/traces
Internal transaction traces on Optimism — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `optimism.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/optimism/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM optimism.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# optimism.transactions
Source: https://docs.dune.com/data-catalog/evm/optimism/raw/transactions
Every transaction on Optimism — from, to, value, gas, calldata, and receipt status.
## Table Description
The `optimism.transactions` table contains information about all transactions on the optimism blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the optimism blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/optimism/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=optimism\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM optimism.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM optimism.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM optimism.transactions
ORDER BY gas_price DESC
LIMIT 10`
# EVM Overview
Source: https://docs.dune.com/data-catalog/evm/overview
EVM chains on Dune
## Introduction to EVM Chains
The Ethereum Virtual Machine (EVM) is the runtime environment for smart contracts in Ethereum. It's not only the cornerstone of Ethereum but also serves as a standard for decentralized applications across various blockchain networks. Due to its robustness and developer-friendly attributes, numerous blockchains have adopted the EVM framework, enabling them to leverage Ethereum's thriving ecosystem and interoperability.
### EVM Chains
We provide the most comprehensive data catalog for Ethereum Mainnet and EVM-compatible rollups, sidechains and other layer 2 solutions.
All EVM chains on Dune have raw data, decoded data and curated data tables available.
e.g. here are the available data sets for Ethereum Mainnet:
> [card] [Raw data](./ethereum/raw/transactions)
> [card] [Decoded data](./ethereum/decoded/overview)
> [card] [Curated data](/data-catalog/curated/overview)
[https://dune.com/embeds/3695907/6218008](https://dune.com/embeds/3695907/6218008)
# dex.trades on peaq
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on peaq.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for peaq transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on peaq.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=peaq](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=peaq)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=peaq\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=peaq\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Peaq EVM Call Tables
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the peaq network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# peaq.contracts
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/contracts
Verified contract registry on Peaq — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the peaq blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# peaq.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/logs-decoded
ABI-decoded event logs on Peaq — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from peaq transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/peaq/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on peaq?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for peaq on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=logs_decoded)
# Peaq Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/overview
Simplifying peaq smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/peaq/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/peaq/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/peaq/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# peaq.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/decoded/traces-decoded
ABI-decoded function calls on Peaq — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from peaq transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/peaq/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=traces_decoded)
# Peaq EVM Overview
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/overview
Peaq EVM data on Dune
## What is Peaq?
Peaq EVM is the EVM chain of the layer-1 blockchain purpose-built PEAQ and optimized to power the Machine Economy. The platform enables decentralized physical infrastructure networks (DePINs), decentralized physical AI (DePAI), Machine DeFi, and Machine RWAs (Real-World Assets).
By leveraging parallelized block production, asynchronous backing, and agile core time, peaq currently handles up to 10,000 transactions per second (TPS). It is set to scale beyond 100,000 TPS after future upgrades, all while maintaining a minimum transaction cost of approximately \$0.00025.
## Key Features and Advantages
### Machine Economy Focus
Peaq is purpose-built for the Machine Economy, supporting:
* **DePINs (Decentralized Physical Infrastructure Networks)**: Networks that incentivize people to deploy hardware for real-world services
* **DePAI (Decentralized Physical AI)**: Decentralized AI systems that interact with physical infrastructure
* **Machine DeFi**: Decentralized Finance based on machines' on-chain economic value and activity
* **Machine RWAs**: Tokenized machines bringing real-world economic value on-chain
### High Performance & Scalability
* **Current Throughput**: Up to 10,000 transactions per second (TPS)
* **Future Scalability**: Set to scale beyond 100,000 TPS after future upgrades
* **Low Transaction Costs**: Minimum transaction cost of approximately \$0.00025
* **Parallelized Block Production**: Enables high throughput and efficiency
* **Asynchronous Backing**: Advanced consensus mechanism for performance
### Security & Decentralization
* **Environmentally-Friendly Architecture**: Leverages the world's environmentally-friendliest blockchain architecture
* **High Nakamoto Coefficient**: One of the highest Nakamoto Coefficients in the industry to ensure censorship resistance
* **EVM Compatibility**: Full EVM compatibility for familiar development tools
### Modular DePIN and DePAI Functions
Peaq offers a comprehensive suite of ready-to-use Modular DePIN and DePAI Functions, granting builders and machines essential core functionalities:
* **Self-Sovereign Machine IDs**: Unique identity for machines on-chain
* **Role-Based Access Control**: Secure permission management
* **Data Verification**: Ensure data integrity and authenticity
* **Universal Machine Time**: Synchronized time across the network
* **Seamless Machine Payment Processing**: Built-in payment infrastructure
* **Data Storage**: On-chain and off-chain storage solutions
* **Data Indexing**: Efficient data retrieval and querying
* **AI Agents**: AI-powered automation and decision-making
All functions are accessible via the Peaq SDK, allowing developers to deploy them with just \~15 lines of code.
### Network Specifications
* **Technology Stack**: EVM-compatible Layer 1
* **Network Type**: EVM-compatible blockchain
* **Consensus**: Asynchronous backing with parallelized block production
* **Transaction Speed**: Up to 10,000 TPS (scaling to 100,000+ TPS)
* **Transaction Cost**: Minimum \~\$0.00025 per transaction
### Developer Tools & Infrastructure
* **Full EVM Compatibility**: Support for standard Ethereum development tools
* **Peaq SDK**: Comprehensive SDK for deploying DePIN and DePAI functions
* **Modular Functions**: Ready-to-use functions for machine economy applications
* **Smart Contract Development**: Standard Solidity development support
* **Infrastructure**:
* Machine identity management
* Data verification systems
* Payment processing
* Storage solutions
* AI agent integration
> [card] [Peaq Documentation](https://docs.peaq.xyz/build/introduction)
>
> Official documentation for developers building on Peaq
## Data Catalog
> [card] [Logs](/data-catalog/evm/peaq-evm/raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](/data-catalog/evm/peaq-evm/raw/blocks)
>
> Information on blocks processed on Peaq EVM
> [card] [Transactions](/data-catalog/evm/peaq-evm/raw/transactions)
>
> Detailed data on transactions
> [card] [Decoded](/data-catalog/evm/peaq-evm/decoded/overview)
>
> Decoded transaction information for enhanced analysis
# peaq.evm_blocks
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/raw/blocks
Peaq EVM-compatible block data.
## Table description
The `peaq.blocks` table contains information about blocks in the peaq blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM peaq.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM peaq.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM peaq.blocks
GROUP BY 1
LIMIT 10`
# peaq.creation_traces
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/raw/creation-traces
Contract deployment records on Peaq — deployer address, factory context, and deployed bytecode.
## Table Description
The `peaq.creation_traces` table contains information about the creation of smart contracts on the peaq blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the peaq blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the peaq blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM peaq.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM peaq.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM peaq.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# peaq.logs
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/raw/logs
Smart contract event logs on Peaq — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `peaq.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/peaq/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM peaq.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM peaq.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM peaq.logs
WHERE evt_block_number = 1000000`
# peaq.traces
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/raw/traces
Internal transaction traces on Peaq — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `peaq.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/peaq/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM peaq.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# peaq.transactions
Source: https://docs.dune.com/data-catalog/evm/peaq-evm/raw/transactions
Every transaction on Peaq — from, to, value, gas, calldata, and receipt status.
## Table Description
The `peaq.transactions` table contains information about all transactions on the peaq blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the peaq blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/peaq/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM peaq.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM peaq.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM peaq.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on plasma
Source: https://docs.dune.com/data-catalog/evm/plasma/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on plasma.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for plasma transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on plasma.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=plasma](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=plasma)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plasma\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plasma\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Plasma Call Tables
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Plasma network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# plasma.contracts
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/contracts
Verified contract registry on Plasma — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the plasma blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=contracts)
# plasma.event_logs
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/event-logs
Smart contract event logs on Plasma — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# plasma.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/logs-decoded
ABI-decoded event logs on Plasma — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from plasma transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On plasma, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/plasma/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **plasma.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=logs_decoded)
# Plasma Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/overview
Simplifying Plasma smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/plasma/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/plasma/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/plasma/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# plasma.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/plasma/decoded/traces-decoded
ABI-decoded function calls on Plasma — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from plasma transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/plasma/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=traces_decoded)
# Plasma Overview
Source: https://docs.dune.com/data-catalog/evm/plasma/overview
Plasma data on Dune
## What is Plasma?
Plasma is a stablecoin-native blockchain designed specifically for building stablecoin applications. It provides a secure, scalable platform that enables zero-fee USD₮ transfers and supports custom gas tokens, making it ideal for payment applications and stablecoin-focused DeFi protocols.
## Key Features
* **Stablecoin-Native**: Purpose-built for stablecoin applications and payments
* **Zero-Fee USD₮ Transfers**: Native support for fee-free USDT transactions
* **Custom Gas Tokens**: Flexibility to use different tokens for gas payments
* **Confidential Payments**: Privacy-preserving transaction capabilities
* **Account Abstraction**: Advanced account management features
* **Bitcoin Bridge**: Native integration with Bitcoin network
## Architecture
Plasma features a unique architecture optimized for stablecoin operations:
* **Consensus**: Robust consensus mechanism for network security
* **Execution**: Optimized execution layer for stablecoin transactions
* **Bitcoin Bridge**: Secure cross-chain connectivity with Bitcoin
* **System Overview**: Comprehensive infrastructure for payment applications
## Ecosystem Highlights
* Advanced stablecoin-native smart contracts
* Zero-fee transfer capabilities for USD₮
* Support for confidential payment protocols
* Comprehensive tooling and infrastructure including:
* Block explorers and analytics
* Cross-chain bridges
* RPC providers and indexers
* Oracles and account abstraction tools
* Testnet faucets for XPL tokens
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/plasma/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/plasma/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Plasma Documentation](http://docs.plasma.to/docs/plasma-chain/introduction/start-here)
>
> Official documentation for developers building on Plasma
# plasma.blocks
Source: https://docs.dune.com/data-catalog/evm/plasma/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Plasma.
## Table description
The `plasma.blocks` table contains information about blocks in the plasma blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM plasma.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM plasma.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM plasma.blocks
GROUP BY 1
LIMIT 10`
# plasma.creation_traces
Source: https://docs.dune.com/data-catalog/evm/plasma/raw/creation-traces
Contract deployment records on Plasma — deployer address, factory context, and deployed bytecode.
## Table Description
The `plasma.creation_traces` table contains information about the creation of smart contracts on the plasma blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the plasma blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the plasma blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM plasma.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM plasma.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM plasma.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# plasma.logs
Source: https://docs.dune.com/data-catalog/evm/plasma/raw/logs
Smart contract event logs on Plasma — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `plasma.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plasma/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM plasma.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM plasma.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM plasma.logs
WHERE evt_block_number = 1000000`
# plasma.traces
Source: https://docs.dune.com/data-catalog/evm/plasma/raw/traces
Internal transaction traces on Plasma — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `plasma.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plasma/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM plasma.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# plasma.transactions
Source: https://docs.dune.com/data-catalog/evm/plasma/raw/transactions
Every transaction on Plasma — from, to, value, gas, calldata, and receipt status.
## Table Description
The `plasma.transactions` table contains information about all transactions on the plasma blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the plasma blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plasma/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plasma\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM plasma.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM plasma.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM plasma.transactions
ORDER BY gas_price DESC
LIMIT 10`
# plume.dex_aggregator_trades
Source: https://docs.dune.com/data-catalog/evm/plume/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Plume — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for plume transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on plume.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=plume](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=plume)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plume\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plume\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# plume.dex_trades
Source: https://docs.dune.com/data-catalog/evm/plume/curated-data/dex/dex-trades
DEX trade data on Plume — swaps across Uniswap, SushiSwap, and other decentralized exchanges with token amounts and USD pricing.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for plume transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on plume.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=plume](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=plume)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plume\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=plume\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# plume.contracts
Source: https://docs.dune.com/data-catalog/evm/plume/decoded/contracts
Verified contract registry on Plume — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the plume blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=contracts)
# plume.event_logs
Source: https://docs.dune.com/data-catalog/evm/plume/decoded/event-logs
Smart contract event logs on Plume — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# plume.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/plume/decoded/logs-decoded
ABI-decoded event logs on Plume — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from plume transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/plume/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on plume?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for plume on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=logs_decoded)
# Plume Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/plume/decoded/overview
Simplifying Plume smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/plume/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/plume/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/plume/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# plume.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/plume/decoded/traces-decoded
ABI-decoded function calls on Plume — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from plume transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/plume/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=traces_decoded)
# Plume Overview
Source: https://docs.dune.com/data-catalog/evm/plume/overview
Plume data on Dune
## What is Plume?
Plume is a public, EVM-compatible blockchain specifically designed for Real World Assets (RWAs). It serves as the onchain home for real-world assets, enabling them to be used like crypto-native assets through features like staking, swapping, lending, borrowing, and looping.
## Key Features
* **RWA-Focused**: Built specifically for the next evolution of Real World Assets
* **EVM-Compatible**: Seamless integration with existing Ethereum tools and infrastructure
* **Institutional Integration**: Designed to work with major institutions and asset managers
* **Composability**: RWAs can be used across the DeFi stack for yield stacking, leverage, and structured products
## Ecosystem Highlights
* Over 200 protocols onboarded and growing
* Testnet success with 18 million wallets and 280 million transactions
* Partnerships with major institutions and asset managers
* Support for various asset types including:
* Private credit
* ETFs
* Commodities
* Esoteric assets (GPUs, uranium, mineral rights, etc.)
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/plume/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/plume/decoded/overview)
>
> Human-readable contract interactions and events
> [card] [DEX Data](/data-catalog/evm/plume/curated-data/dex/dex-trades)
>
> Track DEX trading activity and aggregator trades
## Resources
> [card] [Plume Documentation](https://docs.plume.org/plume)
>
> Official documentation for developers building on Plume
# plume.blocks
Source: https://docs.dune.com/data-catalog/evm/plume/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Plume.
## Table description
The `plume.blocks` table contains information about blocks in the plume blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM plume.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM plume.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM plume.blocks
GROUP BY 1
LIMIT 10`
# plume.creation_traces
Source: https://docs.dune.com/data-catalog/evm/plume/raw/creation-traces
Contract deployment records on Plume — deployer address, factory context, and deployed bytecode.
## Table Description
The `plume.creation_traces` table contains information about the creation of smart contracts on the plume blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the plume blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the plume blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM plume.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM plume.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM plume.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# plume.logs
Source: https://docs.dune.com/data-catalog/evm/plume/raw/logs
Smart contract event logs on Plume — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `plume.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plume/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM plume.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM plume.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM plume.logs
WHERE evt_block_number = 1000000`
# plume.traces
Source: https://docs.dune.com/data-catalog/evm/plume/raw/traces
Internal transaction traces on Plume — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `plume.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plume/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM plume.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# plume.transactions
Source: https://docs.dune.com/data-catalog/evm/plume/raw/transactions
Every transaction on Plume — from, to, value, gas, calldata, and receipt status.
## Table Description
The `plume.transactions` table contains information about all transactions on the plume blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the plume blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/plume/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=plume\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM plume.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM plume.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM plume.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on Polygon zkEVM
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Polygon zkEVM — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for zkevm transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zkevm.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zkevm](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zkevm)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on Polygon zkEVM
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on Polygon zkEVM.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zkevm transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zkevm.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zkevm](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zkevm)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on Polygon zkEVM
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on Polygon zkEVM.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zkevm transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zkevm.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zkevm](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zkevm)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zkevm\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Polygon zkEVM Call Tables
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Polygon zkEVM network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# zkevm.contracts
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/contracts
Verified contract registry on Polygon zkEVM — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the zkevm blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# zkevm.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/logs-decoded
ABI-decoded event logs on Polygon zkEVM — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from zkevm transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/zkevm/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on zkevm?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for zkevm on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=logs_decoded)
# Polygon zkEVM Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/overview
Simplifying Polygon zkEVM smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/zkevm/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/zkevm/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/zkevm/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# zkevm.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/decoded/traces-decoded
ABI-decoded function calls on Polygon zkEVM — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from zkevm transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/zkevm/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=traces_decoded)
# Polygon zkEVM Overview
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/overview
Polygon zkEVM data on Dune
Polygon zkEVM is a Layer 2 scaling solution for Ethereum that leverages zero-knowledge proofs to ensure scalability. It is designed to be Ethereum Virtual Machine (EVM)-compatible, enabling developers to deploy existing Solidity smart contracts without modifications.
The core feature of Polygon zkEVM is its use of zk-SNARKs (zero-knowledge Succinct Non-Interactive Arguments of Knowledge) to bundle hundreds of transactions into a single proof, verifying them on the Ethereum mainnet. This process enhances throughput, reduces transaction costs, and maintains the robust security guarantees of Ethereum.
The native utility token for Polygon zkEVM is Ether, used primarily for transaction fees. Unlike Layer1 blockchains, Polygon zkEVM aims to provide a seamless scaling solution that inherits Ethereum's security and decentralization features while significantly improving performance and cost-efficiency.
Dune offers comprehensive datasets for Polygon zkEVM, including event logs, transactions, blocks, and token activities. These datasets enable deep insights into the network's performance, usage patterns, and smart contract interactions.
> [card] [Polygon zkEVM docs](https://polygon.technology/polygon-zkevm)
>
> The official documentation for Polygon zkEVM, providing detailed information on the protocol, architecture, and developer resources
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into contract interactions
> [card] [Blocks](./raw/blocks)
>
> Information and statistics on blocks, showcasing the network's activity and throughput
> [card] [Transactions](./raw/transactions)
>
> Detailed transaction data, highlighting the execution and efficiency of operations
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier understanding and analysis of smart contract executions
# zkevm.blocks
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Polygon zkEVM.
## Table description
The `zkevm.blocks` table contains information about blocks in the zkevm blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM zkevm.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM zkevm.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM zkevm.blocks
GROUP BY 1
LIMIT 10`
# zkevm.creation_traces
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/raw/creation-traces
Contract deployment records on Polygon zkEVM — deployer address, factory context, and deployed bytecode.
## Table Description
The `zkevm.creation_traces` table contains information about the creation of smart contracts on the zkevm blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the zkevm blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the zkevm blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM zkevm.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM zkevm.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM zkevm.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# zkevm.logs
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/raw/logs
Smart contract event logs on Polygon zkEVM — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `zkevm.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zkevm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM zkevm.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM zkevm.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM zkevm.logs
WHERE evt_block_number = 1000000`
# zkevm.traces
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/raw/traces
Internal transaction traces on Polygon zkEVM — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `zkevm.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zkevm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM zkevm.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# zkevm.transactions
Source: https://docs.dune.com/data-catalog/evm/polygon-zkEVM/raw/transactions
Every transaction on Polygon zkEVM — from, to, value, gas, calldata, and receipt status.
## Table Description
The `zkevm.transactions` table contains information about all transactions on the zkevm blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the zkevm blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zkevm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zkevm\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM zkevm.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM zkevm.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM zkevm.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on polygon
Source: https://docs.dune.com/data-catalog/evm/polygon/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Polygon — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for polygon transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on polygon.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=polygon](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=polygon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on polygon
Source: https://docs.dune.com/data-catalog/evm/polygon/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on polygon.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for polygon transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on polygon.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=polygon](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=polygon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on polygon
Source: https://docs.dune.com/data-catalog/evm/polygon/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on polygon.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for polygon transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on polygon.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=polygon](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=polygon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=polygon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Polygon PoS Network Call Tables
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Polygon PoS Network network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# polygon.contracts
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/contracts
Verified contract registry on Polygon — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the polygon blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# polygon.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/logs-decoded
ABI-decoded event logs on Polygon — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from polygon transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/polygon/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on polygon?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for polygon on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=logs_decoded)
# Polygon PoS Network Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/overview
Simplifying Polygon PoS Network smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/polygon/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/polygon/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/polygon/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# polygon.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/polygon/decoded/traces-decoded
ABI-decoded function calls on Polygon — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from polygon transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/polygon/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=traces_decoded)
# Polygon PoS Network Overview
Source: https://docs.dune.com/data-catalog/evm/polygon/overview
Polygon PoS Network data on Dune
Polygon PoS is a proof-of-stake blockchain network that serves as a scaling solution for Ethereum. It combines the security and interoperability of Ethereum with the speed and efficiency of standalone networks, facilitating faster and cheaper transactions. Polygon PoS leverages a network of validators who stake their tokens to secure the network, participate in consensus, and manage governance.
**High Performance and Low Transaction Costs:**
Polygon PoS offers significant improvements in speed and transaction costs over Ethereum's mainnet by processing transactions on a sidechain before committing them to the Ethereum blockchain. This approach minimizes congestion and gas fees.
**Ethereum Compatibility:**
Fully compatible with Ethereum, Polygon PoS enables developers to deploy existing Ethereum applications without significant changes, using familiar tools and frameworks.
**Decentralized and Secure:**
The proof-of-stake model ensures that the network remains decentralized and secure, with validators and delegators actively participating in the consensus and governance processes.
> [card] [Polygon PoS documentation](https://docs.polygon.technology/docs/home)
>
> Comprehensive documentation on the Polygon PoS network, including guides on its architecture, staking mechanisms, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through detailed event logs, providing visibility into the dynamic activity on the Polygon PoS network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on the Polygon PoS network, reflecting the network’s high throughput and capacity for handling large volumes of transactions.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, highlighting the operational efficiency and reduced costs facilitated by the PoS mechanism.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis and understanding of smart contract executions on the Polygon PoS network.
# polygon.blocks
Source: https://docs.dune.com/data-catalog/evm/polygon/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Polygon.
## Table description
The `polygon.blocks` table contains information about blocks in the polygon blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM polygon.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM polygon.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM polygon.blocks
GROUP BY 1
LIMIT 10`
# polygon.creation_traces
Source: https://docs.dune.com/data-catalog/evm/polygon/raw/creation-traces
Contract deployment records on Polygon — deployer address, factory context, and deployed bytecode.
## Table Description
The `polygon.creation_traces` table contains information about the creation of smart contracts on the polygon blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the polygon blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the polygon blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM polygon.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM polygon.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM polygon.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# polygon.logs
Source: https://docs.dune.com/data-catalog/evm/polygon/raw/logs
Smart contract event logs on Polygon — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `polygon.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/polygon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM polygon.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM polygon.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM polygon.logs
WHERE evt_block_number = 1000000`
# polygon.traces
Source: https://docs.dune.com/data-catalog/evm/polygon/raw/traces
Internal transaction traces on Polygon — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `polygon.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/polygon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM polygon.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# polygon.transactions
Source: https://docs.dune.com/data-catalog/evm/polygon/raw/transactions
Every transaction on Polygon — from, to, value, gas, calldata, and receipt status.
## Table Description
The `polygon.transactions` table contains information about all transactions on the polygon blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the polygon blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/polygon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polygon\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM polygon.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM polygon.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM polygon.transactions
ORDER BY gas_price DESC
LIMIT 10`
# RISE Call Tables
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the RISE network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# rise.contracts
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/contracts
Verified contract registry on RISE — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the rise blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=contracts)
# Event Logs - RISE
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/event-logs
Smart contracts on RISE emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# rise.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/logs-decoded
ABI-decoded event logs on RISE — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from rise transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/rise/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on rise?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for rise on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=logs_decoded)
# RISE Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/overview
Simplifying RISE Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/rise/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/rise/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/rise/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# rise.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/rise/decoded/traces-decoded
ABI-decoded function calls on RISE — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from rise transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/rise/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=traces_decoded)
# RISE Chain Overview
Source: https://docs.dune.com/data-catalog/evm/rise/overview
RISE blockchain data on Dune
## What is RISE?
RISE is a high-performance Ethereum Layer 2 designed for onchain markets, delivering near-instant transactions at scale with full EVM compatibility. The chain advertises 1ms latency, 50,000+ TPS, and 5 Ggas/s of compute throughput, while remaining secured by Ethereum. RISE pairs a low-latency execution environment with native orderbook infrastructure (RISE MarketCore) and a perpetuals platform (RISEx) so trading and other latency-sensitive applications can share deep liquidity onchain.
## Key Features
* **Sub-second blocks**: RISE produces a new block every \~1 second, enabling sub-second user-perceivable finality and very tight feedback loops for trading applications.
* **EVM compatibility**: Standard Solidity tooling (Foundry, Hardhat, etc.) works without modification — contracts deploy as on any EVM chain.
* **High throughput**: Architecture targets >50K TPS and 5 Ggas/s, well above mainstream rollups, intended for orderbook-style applications that demand many small writes per second.
* **Native market infrastructure**: RISE MarketCore exposes a shared orderbook substrate so any application can permissionlessly launch onchain spot or perpetual markets backed by network-wide liquidity.
* **Modular DA**: RISE leverages a modular data availability layer (Celestia / EigenDA) with Ethereum fallbacks for security, allowing high throughput without Ethereum L1 calldata cost.
## EVM Specifics on Dune
* **Native gas token**: ETH (gas paid in ETH like other Ethereum L2s).
* **Block time**: \~1 second average (verified against `rise.blocks` time deltas).
* **TIP-20**: RISE indexes a TIP-20 token-event family alongside ERC-20 — `tip20_rise.evt_*` tables surface RISE-specific token primitives (memo transfers, reward distribution, supply caps, transfer policies). Standard ERC-20 events live under `erc20_rise.evt_*`.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/rise/raw/blocks)
>
> Block, transaction, log, and trace data indexed directly from RISE nodes.
> [card] [Decoded Data](/data-catalog/evm/rise/decoded/overview)
>
> ABI-decoded contract interactions and events including the native RISEx perps stack.
## Resources
> [card] [RISE Chain](https://risechain.com/)
>
> Project home page.
> [card] [RISE Documentation](https://docs.risechain.com/)
>
> Architecture, tooling, and developer guides.
# rise.blocks
Source: https://docs.dune.com/data-catalog/evm/rise/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for RISE.
## Table description
The `rise.blocks` table contains information about blocks in the rise blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM rise.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM rise.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM rise.blocks
GROUP BY 1
LIMIT 10`
# rise.creation_traces
Source: https://docs.dune.com/data-catalog/evm/rise/raw/creation-traces
Contract deployment records on RISE — deployer address, factory context, and deployed bytecode.
## Table Description
The `rise.creation_traces` table contains information about the creation of smart contracts on the rise blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the rise blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the rise blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM rise.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM rise.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM rise.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# rise.logs
Source: https://docs.dune.com/data-catalog/evm/rise/raw/logs
Smart contract event logs on RISE — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `rise.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/rise/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM rise.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM rise.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM rise.logs
WHERE evt_block_number = 1000000`
# rise.traces
Source: https://docs.dune.com/data-catalog/evm/rise/raw/traces
Internal transaction traces on RISE — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `rise.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/rise/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM rise.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# rise.transactions
Source: https://docs.dune.com/data-catalog/evm/rise/raw/transactions
Every transaction on RISE — from, to, value, gas, calldata, and receipt status.
## Table Description
The `rise.transactions` table contains information about all transactions on the rise blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the rise blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/rise/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=rise\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM rise.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM rise.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM rise.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Robinhood Call Tables
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Robinhood network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# robinhood.contracts
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/contracts
Verified contract registry on Robinhood — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the robinhood blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=contracts)
# Event Logs - Robinhood
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/event-logs
Smart contracts on Robinhood emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# robinhood.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/logs-decoded
ABI-decoded event logs on Robinhood — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from robinhood transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/robinhood/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on robinhood?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for robinhood on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=logs_decoded)
# Robinhood Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/overview
Simplifying Robinhood Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/robinhood/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/robinhood/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/robinhood/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# robinhood.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/robinhood/decoded/traces-decoded
ABI-decoded function calls on Robinhood — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from robinhood transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/robinhood/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=traces_decoded)
# Robinhood Chain Overview
Source: https://docs.dune.com/data-catalog/evm/robinhood/overview
Robinhood Chain blockchain data on Dune
## What is Robinhood Chain?
Robinhood Chain is an EVM-compatible blockchain built by Robinhood to support onchain trading, tokenized assets, and related financial applications. Dune indexes Robinhood Chain under the `robinhood` schema namespace with standard EVM raw tables and ABI-decoded contract data.
## Key Features
* **EVM compatibility**: Standard Solidity contracts and familiar EVM tooling apply — raw tables follow the same schema conventions as other EVM chains on Dune.
* **Tokenized assets**: Decoded ERC-20 and ERC-721 event tables (`erc20_robinhood.evt_*`, `erc721_robinhood.evt_*`) surface token transfers and NFT activity on the chain.
* **Contract decoding**: Per-project decoded tables follow the `{project}_robinhood.{contract}_evt_{Event}` namespace pattern (for example `robinhood_arbitrum.*` for Robinhood Arbitrum-stack contracts).
## EVM Specifics on Dune
* **Schema namespace**: `robinhood` (query as `robinhood.blocks`, `robinhood.transactions`, etc.).
* **Raw tables**: `blocks`, `transactions`, `logs`, `traces`, `creation_traces`.
* **Decoded infrastructure**: `robinhood.contracts`, `robinhood.signatures`, `robinhood.logs_decoded`, `robinhood.traces_decoded`.
* **Standard token events**: `erc20_robinhood.evt_*`, `erc721_robinhood.evt_*`.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/robinhood/raw/blocks)
>
> Block, transaction, log, and trace data indexed from Robinhood Chain nodes.
> [card] [Decoded Data](/data-catalog/evm/robinhood/decoded/overview)
>
> ABI-decoded contract interactions and events, including ERC-20/721 token activity.
## Resources
> [card] [Robinhood](https://robinhood.com/)
>
> Robinhood product home page.
# robinhood.blocks
Source: https://docs.dune.com/data-catalog/evm/robinhood/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Robinhood.
## Table description
The `robinhood.blocks` table contains information about blocks in the robinhood blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM robinhood.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM robinhood.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM robinhood.blocks
GROUP BY 1
LIMIT 10`
# robinhood.creation_traces
Source: https://docs.dune.com/data-catalog/evm/robinhood/raw/creation-traces
Contract deployment records on Robinhood — deployer address, factory context, and deployed bytecode.
## Table Description
The `robinhood.creation_traces` table contains information about the creation of smart contracts on the robinhood blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the robinhood blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the robinhood blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM robinhood.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM robinhood.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM robinhood.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# robinhood.logs
Source: https://docs.dune.com/data-catalog/evm/robinhood/raw/logs
Smart contract event logs on Robinhood — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `robinhood.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/robinhood/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM robinhood.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM robinhood.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM robinhood.logs
WHERE evt_block_number = 1000000`
# robinhood.traces
Source: https://docs.dune.com/data-catalog/evm/robinhood/raw/traces
Internal transaction traces on Robinhood — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `robinhood.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/robinhood/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM robinhood.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# robinhood.transactions
Source: https://docs.dune.com/data-catalog/evm/robinhood/raw/transactions
Every transaction on Robinhood — from, to, value, gas, calldata, and receipt status.
## Table Description
The `robinhood.transactions` table contains information about all transactions on the robinhood blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the robinhood blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/robinhood/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=robinhood\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM robinhood.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM robinhood.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM robinhood.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on ronin
Source: https://docs.dune.com/data-catalog/evm/ronin/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on ronin.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ronin transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ronin.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ronin](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=ronin)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ronin\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ronin\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on ronin
Source: https://docs.dune.com/data-catalog/evm/ronin/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on ronin.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for ronin transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on ronin.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ronin](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=ronin)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ronin\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=ronin\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Ronin Call Tables
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Ronin network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# ronin.contracts
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/contracts
Verified contract registry on Ronin — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the ronin blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# ronin.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/logs-decoded
ABI-decoded event logs on Ronin — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from ronin transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/ronin/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on ronin?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for ronin on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=logs_decoded)
# Ronin Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/overview
Simplifying Ronin Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/ronin/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/ronin/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ronin/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# ronin.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/ronin/decoded/traces-decoded
ABI-decoded function calls on Ronin — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from ronin transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/ronin/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=traces_decoded)
# Ronin Chain Overview
Source: https://docs.dune.com/data-catalog/evm/ronin/overview
Ronin blockchain data on Dune
## What is Ronin?
Ronin is an EVM-based blockchain purpose-built for gaming, created by Sky Mavis, the team behind Axie Infinity. As one of the few blockchains capable of scaling a single game to millions of daily active users, Ronin powers the vibrant Axie Infinity ecosystem and has processed over \$4 billion in NFT volumes. With near-instant transactions and minimal fees, Ronin is optimized to support the high demand of Web3 gaming experiences.
## Key Features of Ronin
Ronin’s infrastructure focuses on performance, scalability, and seamless user experience for in-game transactions, making it the top choice for Web3 games.
### **Scalability and Gaming Optimization**
Ronin has demonstrated its ability to scale, processing 15% of the global NFT trading volume at its peak and handling millions of daily users in the Axie Infinity ecosystem. It prioritizes only high-quality applications and maintains high uptime, ensuring a spam-free, optimized gaming environment.
### **Low-Cost Transactions**
With negligible transaction fees, Ronin makes it feasible for users to perform frequent in-game transactions, eliminating cost barriers for players and developers alike.
### **EVM Compatibility**
As an EVM-compatible chain, Ronin allows developers familiar with Ethereum to migrate applications easily, benefiting from tools like Remix, Hardhat, and Foundry.
## Network Architecture
Ronin’s architecture is designed to support high-performance gaming applications with an emphasis on minimal latency and cost-effectiveness. It also supports selective onboarding of apps, preserving quality across the ecosystem.
* **Gaming-Focused Environment:** Allows only high-quality applications to join, reducing bloat and increasing uptime.
* **Security Measures:** Incorporates advanced security measures following past challenges, including zero-trust architecture and rigorous internal security practices.
## Consensus Mechanism
Ronin initially adopted a **Proof of Authority (PoA)** consensus, relying on a trusted validator set selected by Sky Mavis and the community. To increase decentralization, Ronin transitioned in 2023 to **Delegated Proof of Stake (DPoS)**, allowing any RON token holder to participate in validator selection, creating a more community-driven governance model.
* **Block Production and Finality Voting:** Validators are selected to produce blocks and vote for finality, with weighted voting based on staked RON.
* **Rotating Validators:** Introduced in July 2024, ensuring all validators have block production opportunities and receive rewards, fostering greater inclusivity.
## Security and Slashing Mechanism
Ronin has implemented robust security measures, including slashing penalties for validators who act maliciously or are frequently unavailable. The credit score and bailout system enables validators to recover from unexpected downtime, while tiered penalties discourage continuous underperformance.
* **Double Signing Penalties:** Validators involved in double-signing or publishing contradictory votes are permanently jailed and face RON slashing.
* **Validator Credit Score:** A unique system allows validators to earn credits daily, which can be used to bail out of jail in case of unexpected downtime.
## Token Economy
The native token, **RON**, is central to Ronin's economy, supporting validator incentives and governance:
* **Staking and Rewards:** Validators and delegators earn rewards through block production and finality voting.
* **Governance Participation:** Token holders can delegate stake to preferred validators, enhancing decentralization.
> [card] [Ronin documentation](https://docs.roninchain.com/)
>
> Access comprehensive documentation for Ronin, covering details on its consensus mechanisms, security features, and how to build on the network.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Access logs of in-game transactions and other activities on Ronin, providing insight into the chain’s high transaction volume.
> [card] [Blocks](./raw/blocks)
>
> Information on block production and finality, illustrating Ronin's ability to handle gaming-scale operations.
> [card] [Transactions](./raw/transactions)
>
> Transaction data with a focus on minimal fees, showing how Ronin enables smooth in-game interactions.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data, making it easier to analyze in-game economies and smart contract interactions.
# ronin.blocks
Source: https://docs.dune.com/data-catalog/evm/ronin/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Ronin.
## Table description
The `ronin.blocks` table contains information about blocks in the ronin blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM ronin.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM ronin.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM ronin.blocks
GROUP BY 1
LIMIT 10`
# ronin.creation_traces
Source: https://docs.dune.com/data-catalog/evm/ronin/raw/creation-traces
Contract deployment records on Ronin — deployer address, factory context, and deployed bytecode.
## Table Description
The `ronin.creation_traces` table contains information about the creation of smart contracts on the ronin blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the ronin blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the ronin blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM ronin.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM ronin.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM ronin.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# ronin.logs
Source: https://docs.dune.com/data-catalog/evm/ronin/raw/logs
Smart contract event logs on Ronin — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `ronin.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ronin/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM ronin.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM ronin.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM ronin.logs
WHERE evt_block_number = 1000000`
# ronin.traces
Source: https://docs.dune.com/data-catalog/evm/ronin/raw/traces
Internal transaction traces on Ronin — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `ronin.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ronin/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM ronin.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# ronin.transactions
Source: https://docs.dune.com/data-catalog/evm/ronin/raw/transactions
Every transaction on Ronin — from, to, value, gas, calldata, and receipt status.
## Table Description
The `ronin.transactions` table contains information about all transactions on the ronin blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the ronin blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/ronin/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ronin\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM ronin.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM ronin.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM ronin.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on scroll
Source: https://docs.dune.com/data-catalog/evm/scroll/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Scroll — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for scroll transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on scroll.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=scroll](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=scroll)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on scroll
Source: https://docs.dune.com/data-catalog/evm/scroll/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on scroll.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for scroll transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on scroll.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=scroll](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=scroll)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on scroll
Source: https://docs.dune.com/data-catalog/evm/scroll/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on scroll.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for scroll transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on scroll.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=scroll](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=scroll)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=scroll\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Scroll Call Tables
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Scroll network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# scroll.contracts
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/contracts
Verified contract registry on Scroll — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the scroll blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# scroll.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/logs-decoded
ABI-decoded event logs on Scroll — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from scroll transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/scroll/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on scroll?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for scroll on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=logs_decoded)
# Scroll Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/overview
Simplifying Scroll smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/scroll/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/scroll/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/scroll/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# scroll.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/scroll/decoded/traces-decoded
ABI-decoded function calls on Scroll — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from scroll transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/scroll/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=traces_decoded)
# Scroll Overview
Source: https://docs.dune.com/data-catalog/evm/scroll/overview
Scroll data on Dune
Scroll is a Layer 2 scaling solution for Ethereum that utilizes zk-Rollups to enhance transaction throughput while maintaining low costs and high security. Scroll is designed to facilitate scalable and efficient blockchain applications by bundling multiple transactions into a single rollup block, which is then verified on the Ethereum mainnet using zero-knowledge proofs.
**High Scalability and Efficiency:**
Scroll leverages zk-Rollups to significantly increase transaction capacity and reduce blockchain congestion. This technology allows for rapid processing and finalization of transactions at a fraction of the cost of traditional Ethereum transactions.
**Strong Security and Ethereum Compatibility:**
By using zero-knowledge proofs, Scroll ensures that all transactions maintain the same level of security as those on the Ethereum mainnet. Additionally, Scroll is fully compatible with Ethereum, enabling developers to deploy existing smart contracts and dApps without the need for extensive modifications.
**Developer-Friendly Environment:**
Scroll provides a robust environment for developers, with tools that simplify the integration and deployment of Ethereum-compatible applications on a scalable Layer 2 platform.
> [card] [Scroll documentation](https://docs.scroll.io)
>
> Access comprehensive documentation for Scroll, providing detailed insights into its zk-Rollup technology, platform architecture, and how to build on it.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, offering insights into contract interactions and the dynamics of Scroll's zk-Rollup operations.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed through Scroll’s zk-Rollups, illustrating the network's enhanced throughput and scalability.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, highlighting the efficiency and reduced costs of operations on Scroll.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of smart contract executions on the Scroll network.
# scroll.blocks
Source: https://docs.dune.com/data-catalog/evm/scroll/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Scroll.
## Table description
The `scroll.blocks` table contains information about blocks in the scroll blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM scroll.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM scroll.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM scroll.blocks
GROUP BY 1
LIMIT 10`
# scroll.creation_traces
Source: https://docs.dune.com/data-catalog/evm/scroll/raw/creation-traces
Contract deployment records on Scroll — deployer address, factory context, and deployed bytecode.
## Table Description
The `scroll.creation_traces` table contains information about the creation of smart contracts on the scroll blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the scroll blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the scroll blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM scroll.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM scroll.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM scroll.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# scroll.logs
Source: https://docs.dune.com/data-catalog/evm/scroll/raw/logs
Smart contract event logs on Scroll — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `scroll.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/scroll/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM scroll.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM scroll.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM scroll.logs
WHERE evt_block_number = 1000000`
# scroll.traces
Source: https://docs.dune.com/data-catalog/evm/scroll/raw/traces
Internal transaction traces on Scroll — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `scroll.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/scroll/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM scroll.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# scroll.transactions
Source: https://docs.dune.com/data-catalog/evm/scroll/raw/transactions
Every transaction on Scroll — from, to, value, gas, calldata, and receipt status.
## Table Description
The `scroll.transactions` table contains information about all transactions on the scroll blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the scroll blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/scroll/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=scroll\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM scroll.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM scroll.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM scroll.transactions
ORDER BY gas_price DESC
LIMIT 10`
# sei.cosmos_block_events
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_block_events
Block-level events emitted during block processing on Sei.
## Table description
The `sei.cosmos_block_events` table contains all block-level events and attributes in the chain, partitioned by `event_index`.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the event occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **event_index** | bigint | A unique index for events within the block. |
| **event_type** | varchar | The type of event that was triggered. |
| **event_source** | varchar | The source of the event. |
| **attribute_key** | varchar | The key of the event attribute. |
| **attribute_value** | varchar | The value of the event attribute. |
| **attribute_index** | bigint | A unique index for attributes within the event. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_block_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_block_events)
# sei.cosmos_blocks
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_blocks
Block data — block height, timestamp, proposer, and transaction count on Sei.
## Table description
The `sei.cosmos_blocks` table contains each validated block in the chain. `block_timestamp` is only available in this table, so you need to do an inner join on `block_height` to get `block_timestamp` to other tables.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block, a unique identifier for each block. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **proposer_address** | varchar | The address of the validator proposing the block. |
| **validators_hash** | varchar | The hash of the validators set for the block. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_blocks)
# sei.cosmos_message_events
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_message_events
Message-level events — events emitted by specific transaction messages on Sei.
## Table description
Contains all events and their corresponding attributes partitioned by `message_index`. Events are linked to transactions via column `tx_id`.
> [!TIP]
>
> On execution, transactions from Cosmos emit data in two formats:
>
> * Messages (`sei.cosmos_tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
> * Events (`sei.cosmos_message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
> * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the message event occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the message event belongs. |
| **tx_id** | varchar | The hash of the transaction containing the message event. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **event_type** | varchar | The type of event that was triggered. |
| **event_source** | varchar | The source of the event. |
| **attribute_key** | varchar | The key of the event attribute. |
| **attribute_value** | varchar | The value of the event attribute. |
| **attribute_index** | bigint | A unique index for attributes within the event. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_message_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_message_events)
# sei.cosmos_transactions
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_transactions
Transaction records — messages, fees, gas, and execution status on Sei.
## Table description
The `sei.cosmos_transactions` table contains relevant data associated with each transaction.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_height** | bigint | The height of the block where the transaction occurred. |
| **chain_id** | varchar | The ID of the chain where the transaction occurred. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_info** | varchar | Information related to the transaction. |
| **tx_log_message** | varchar | The log message associated with the transaction. |
| **memo** | varchar | A memo associated with the transaction. |
| **fee** | varchar | The fee associated with the transaction. |
| **tx_code** | bigint | The result code of the transaction. |
| **tx_index** | bigint | The index of the transaction within the block. |
| **gas_used** | bigint | The amount of gas used by the transaction. |
| **gas_wanted** | bigint | The amount of gas requested by the transaction. |
| **schema_version** | bigint | The schema version for the transaction data. |
| **fee_coins** | varchar | The coins used to pay the transaction fee. |
| **fee_granter** | varchar | The address granting the fee for the transaction. |
| **fee_payer** | varchar | The address paying the fee for the transaction. |
| **gas_limit** | bigint | The gas limit set for the transaction. |
| **single_sign_mode** | bigint | The signing mode for single-signature transactions. |
| **multi_sign_json** | varchar | JSON structure for multi-signature transactions. |
| **timeout_height** | varchar | The timeout height set for the transaction. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_transactions)
# sei.cosmos_tx_messages
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_tx_messages
Transaction messages — individual message types and payloads on Sei.
## Table description
The `sei.cosmos_tx_messages` table contains all messages submitted to the blockchain. Each row represents one message, so there may be repeated `tx_id` if the transaction contains multiple messages.
> [!TIP]
>
> On execution, transactions from Cosmos emit data in two formats:
>
> * Messages (`sei.cosmos_tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
> * Events (`sei.cosmos_message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
> * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
## Column Description
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the message occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the message belongs. |
| **tx_id** | varchar | The hash of the transaction containing the message. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **message_type** | varchar | The type of message. |
| **message** | varchar | The value/content of the message. |
| **schema_version** | bigint | The version of the schema in provider database. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_tx_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_tx_messages)
# sei.cosmos_validators
Source: https://docs.dune.com/data-catalog/evm/sei/cosmos/cosmos_validators
Validator set data — operator address, voting power, and commission on Sei.
## Table description
The `sei.cosmos_validators` table maps validator addresses to monikers (human-readable description) and other metadata.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **operator_address** | varchar | The operator address of the validator. |
| **account_address** | varchar | The account address of the validator. |
| **consensus_pubkey** | varchar | The consensus public key of the validator. |
| **jailed** | boolean | Indicates whether the validator is jailed. |
| **status** | varchar | The status of the validator (e.g., active, inactive). |
| **tokens** | varchar | The number of tokens held by the validator. |
| **moniker** | varchar | The moniker or name of the validator. |
| **identity** | varchar | The identity information of the validator. |
| **website** | varchar | The website of the validator. |
| **security_contact** | varchar | The security contact information for the validator. |
| **details** | varchar | Additional details about the validator. |
| **unbonding_height** | bigint | The block height at which the validator started unbonding. |
| **unbonding_time** | varchar | The time when the validator will complete unbonding. |
| **commission_rate** | double | The commission rate charged by the validator. |
| **commission_max_rate** | double | The maximum commission rate allowed for the validator. |
| **commission_max_change_rate** | double | The maximum rate at which the validator can change its commission. |
| **commission_update_time** | varchar | The time when the validator last updated its commission. |
| **min_self_delegation** | varchar | The minimum self-delegation required for the validator. |
| **snapshot_height** | bigint | The block height at which the snapshot was taken. |
| **snapshot_time** | varchar | The time when the snapshot was taken. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_validators](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=cosmos_validators)
# dex_aggregator.trades on sei
Source: https://docs.dune.com/data-catalog/evm/sei/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Sei — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for sei transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sei.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sei](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sei)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on sei
Source: https://docs.dune.com/data-catalog/evm/sei/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on sei.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sei transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sei.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sei](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sei)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on sei
Source: https://docs.dune.com/data-catalog/evm/sei/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on sei.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sei transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sei.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sei](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sei)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sei\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Sei Call Tables
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Sei network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# sei.contracts
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/contracts
Verified contract registry on Sei — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the sei blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# sei.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/logs-decoded
ABI-decoded event logs on Sei — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from sei transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/sei/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on sei?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for sei on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=logs_decoded)
# Sei Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/overview
Simplifying Sei smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/sei/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/sei/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/sei/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# sei.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/sei/decoded/traces-decoded
ABI-decoded function calls on Sei — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from sei transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/sei/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=traces_decoded)
# Sei Overview
Source: https://docs.dune.com/data-catalog/evm/sei/overview
Sei data on Dune
## What is Sei?
Sei is a Layer-1 blockchain optimized for trading and decentralized finance (DeFi). It combines the strengths of Solana and Ethereum by implementing a fast parallelized EVM chain, providing a hyper optimized execution layer that benefits from the tooling and mindshare around the EVM.
> [!WARNING]
>
> Sei is a Cosmos chain with EVM modules added in the [v2 upgrade](https://www.mintscan.io/sei/proposals/55). Dune indexes the EVM data separately from the Cosmos data. As such, data latency between the two can be expected.
> [!TIP]
>
> * Sei (v1) was originally a Cosmos chain. On May 20, 2024, a proposal to [upgrade Sei (v2) to include EVM support](https://www.mintscan.io/sei/proposals/55) was passed. Consequently, on May 27, 2024, Sei upgraded to [v2 with EVM support](https://github.com/sei-protocol/sei-chain/blob/main/CHANGELOG.md#v552).
> * Dune indexes the EVM component of Sei directly from RPC providers, supporting standard EVM chain decoding capabilities.
> * For Cosmos data, Dune partners with a data provider, and these tables and schemas can be found in the [Cosmos Data](#cosmos-data) section.
> * The EVM and Cosmos components share the same consensus mechanism, validated by the same validators, but they operate independently with interoperability features.
> * Interoperability between EVM and Cosmos relies on [EVM Precompiles](https://www.docs.sei.io/dev-interoperability/precompiles/addr) and [Pointer Contracts](https://www.docs.sei.io/dev-interoperability/pointer-contracts). If these do not emit events, it may result in data gaps.
> * Dune's EVM data for Sei starts from the v2 upgrade at [block height 73,123,881](https://seitrace.com/block/79123881).
### Parallelization
Parallelization allows Sei to process multiple independent transactions simultaneously, leveraging modern hardware capabilities for enhanced performance.
### Sei Optimizations
Sei introduces four major innovations:
1. **Twin Turbo Consensus**: This feature allows Sei to reach the fastest time to finality of any blockchain at 400ms, unlocking web2 like experiences for applications.
2. **Optimistic Parallelization**: This feature allows developers to unlock parallel processing for their Ethereum applications, with no additional work.
3. **SeiDB**: This major upgrade allows Sei to handle the much higher rate of data storage, reads and writes which become extremely important for a high performance blockchain.
4. **Interoperable EVM**: This allows existing developers in the Ethereum ecosystem to deploy their applications, tooling and infrastructure to Sei with no changes, while benefiting from the 100x performance improvements offered by Sei.
### Performance Metrics
* **Time to Finality**: 400 milliseconds
* **Transactions per Second**: 5,030 (12,500 theoretical max)
### Virtual Machine Interoperability
Sei supports both EVM and CosmWasm smart contracts in different execution environments. It introduces interoperability features, such as precompiled EVM contracts and Pointer Contracts, to enable smooth interactions between both environments.
For more details, visit [Sei Interoperability Documentation](https://www.docs.sei.io/dev-interoperability).
> [card] [Sei documentation](https://www.docs.sei.io/)
>
> Explore comprehensive documentation on Sei, detailing its architecture, protocol, and resources for developers.
## Data Catalog
### EVM Data
> [card] [Logs](./raw/logs)
>
> Access detailed event logs from smart contracts to analyze contract activity and interactions.
> [card] [Blocks](./raw/blocks)
>
> Explore data on blocks processed by the Sei chain, illustrating network throughput and activity.
> [card] [Transactions](./raw/transactions)
>
> Transaction details that highlight the efficiency and speed of the Sei chain.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of contract executions.
### Cosmos Data
> [!TIP]
>
> Timestamp is only available on block level tables (e.g. `sei.cosmos_blocks`) with field `block_timestamp`, so you need to do an inner join on `block_height` to get timestamp to other tables.
> [card] [Blocks](/data-catalog/evm/sei/cosmos/cosmos_blocks)
>
> Contains each validated block in the chain.
> [card] [Block Events](/data-catalog/evm/sei/cosmos/cosmos_block_events)
>
> Contains all block-level events and attributes in the chain, partitioned by event_index.
> [card] [Transactions](/data-catalog/evm/sei/cosmos/cosmos_transactions)
>
> Contains relevant data associated with each transaction.
> [card] [Transaction Message Events](/data-catalog/evm/sei/cosmos/cosmos_message_events)
>
> Contains all events and their corresponding attributes partitioned by message_index.
> [card] [Transaction Messages](/data-catalog/evm/sei/cosmos/cosmos_tx_messages)
>
> Contains all messages submitted to the blockchain.
> [card] [Validators](/data-catalog/evm/sei/cosmos/cosmos_validators)
>
> Maps validator addresses to monikers (human-readable description) and other metadata.
# sei.blocks
Source: https://docs.dune.com/data-catalog/evm/sei/raw/blocks
Block data — block height, timestamp, and metadata on Sei.
## Table description
The `sei.blocks` table contains information about blocks in the sei blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM sei.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM sei.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM sei.blocks
GROUP BY 1
LIMIT 10`
# sei.creation_traces
Source: https://docs.dune.com/data-catalog/evm/sei/raw/creation-traces
Contract deployment records on Sei — deployer address, factory context, and deployed bytecode.
## Table Description
The `sei.creation_traces` table contains information about the creation of smart contracts on the sei blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the sei blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the sei blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM sei.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM sei.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM sei.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# sei.logs
Source: https://docs.dune.com/data-catalog/evm/sei/raw/logs
Smart contract event logs on Sei — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `sei.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sei/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM sei.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM sei.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM sei.logs
WHERE evt_block_number = 1000000`
# sei.traces
Source: https://docs.dune.com/data-catalog/evm/sei/raw/traces
Internal transaction traces on Sei — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `sei.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sei/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM sei.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# sei.transactions
Source: https://docs.dune.com/data-catalog/evm/sei/raw/transactions
Transaction records — messages, fees, and execution results on Sei.
## Table Description
The `sei.transactions` table contains information about all transactions on the sei blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the sei blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sei/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sei\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM sei.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM sei.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM sei.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Sepolia Call Tables
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Sepolia network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# sepolia.contracts
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/contracts
Verified contract registry on Sepolia — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the sepolia blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# sepolia.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/logs-decoded
ABI-decoded event logs on Sepolia — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from sepolia transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/sepolia/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on sepolia?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for sepolia on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=logs_decoded)
# Sepolia Testnet Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/overview
Simplifying Sepolia Testnet smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/sepolia/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/sepolia/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/sepolia/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# sepolia.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/sepolia/decoded/traces-decoded
ABI-decoded function calls on Sepolia — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from sepolia transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/sepolia/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=traces_decoded)
# Sepolia Testnet Overview
Source: https://docs.dune.com/data-catalog/evm/sepolia/overview
Sepolia data on Dune Analytics
Sepolia is an Ethereum testnet that provides a stable environment for developers to test and deploy their applications before launching on the Ethereum mainnet. Sepolia is designed to mirror the conditions of the mainnet, providing a realistic testing environment without the financial risks.
### Key Features:
* **Mainnet Parity:** Sepolia offers an environment that closely replicates the Ethereum mainnet, allowing developers to test their applications under conditions similar to the mainnet.
* **EVM Compatibility:** Sepolia supports all Ethereum Virtual Machine (EVM) compatible codebases, enabling seamless testing and deployment of smart contracts and decentralized applications (dApps).
* **Cost-Effective Testing:** Transactions on Sepolia are conducted using test ETH, which has no real-world value, allowing developers to experiment and troubleshoot without incurring any costs.
* **Stability and Reliability:** Sepolia is maintained to ensure a stable and reliable test environment, providing developers with confidence that their applications will perform as expected on the mainnet.
* **Community Support:** Sepolia is backed by a robust community of developers and enthusiasts who contribute to its maintenance and improvement, ensuring it remains a valuable resource for the Ethereum ecosystem.
> [card] [Sepolia documentation](https://sepolia.dev/)
>
> Explore comprehensive documentation on Sepolia, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Sepolia network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Sepolia.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Sepolia.
> [card] [Decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# sepolia.blocks
Source: https://docs.dune.com/data-catalog/evm/sepolia/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Sepolia.
## Table description
The `sepolia.blocks` table contains information about blocks in the sepolia blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM sepolia.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM sepolia.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM sepolia.blocks
GROUP BY 1
LIMIT 10`
# sepolia.creation_traces
Source: https://docs.dune.com/data-catalog/evm/sepolia/raw/creation-traces
Contract deployment records on Sepolia — deployer address, factory context, and deployed bytecode.
## Table Description
The `sepolia.creation_traces` table contains information about the creation of smart contracts on the sepolia blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the sepolia blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the sepolia blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM sepolia.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM sepolia.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM sepolia.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# sepolia.logs
Source: https://docs.dune.com/data-catalog/evm/sepolia/raw/logs
Smart contract event logs on Sepolia — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `sepolia.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sepolia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM sepolia.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM sepolia.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM sepolia.logs
WHERE evt_block_number = 1000000`
# sepolia.traces
Source: https://docs.dune.com/data-catalog/evm/sepolia/raw/traces
Internal transaction traces on Sepolia — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `sepolia.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sepolia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM sepolia.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# sepolia.transactions
Source: https://docs.dune.com/data-catalog/evm/sepolia/raw/transactions
Every transaction on Sepolia — from, to, value, gas, calldata, and receipt status.
## Table Description
The `sepolia.transactions` table contains information about all transactions on the sepolia blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the sepolia blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sepolia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sepolia\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM sepolia.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM sepolia.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM sepolia.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on shape
Source: https://docs.dune.com/data-catalog/evm/shape/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Shape — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for shape transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on shape.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=shape](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=shape)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on shape
Source: https://docs.dune.com/data-catalog/evm/shape/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on shape.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for shape transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on shape.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=shape](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=shape)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on shape
Source: https://docs.dune.com/data-catalog/evm/shape/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on shape.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for shape transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on shape.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=shape](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=shape)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=shape\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Shape Call Tables
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Shape network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# shape.contracts
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/contracts
Verified contract registry on Shape — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the shape blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# shape.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/logs-decoded
ABI-decoded event logs on Shape — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from shape transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/shape/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on shape?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for shape on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=logs_decoded)
# Shape Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/overview
Simplifying Shape smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/shape/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/shape/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/shape/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# shape.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/shape/decoded/traces-decoded
ABI-decoded function calls on Shape — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from shape transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/shape/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=traces_decoded)
# Shape Overview
Source: https://docs.dune.com/data-catalog/evm/shape/overview
Shape data on Dune
Shape is the chain for creators, built on top of Ethereum. It is an EVM equivalent Layer 2 scaling solution that inherits its security directly from Ethereum, keeping the networks intrinsically linked forever.
**Chain for Creators with Gasback:**
As a creator on Shape, you can claim back 80% of sequencer fees users spend interacting with your contracts. This includes contracts you build yourself, contracts you acquire ownership of, and contracts that you deploy through other platforms.
**EVM Equivalent:**
Shape is fully EVM equivalent, providing the same creator experience as on Ethereum, just at a fraction of the cost. This enables developers to deploy existing smart contracts and dApps without the need for extensive modifications.
**Secure, Stable & Scalable:**
Shape inherits its security directly from Ethereum and prioritizes stability and scalability, utilizing Alchemy and Optimism as key infrastructure partners to help achieve and maintain these states.
**Part of the Superchain:**
Shape is a member of the Superchain, which unlocks a range of further benefits for the entire ecosystem - including ongoing network-level cooperation, funding of public goods, and additional builder incentives on Shape.
> [card] [Shape documentation](https://docs.shape.network/documentation/introduction)
>
> Access comprehensive documentation for Shape, providing detailed insights into its technology, platform architecture, and how to build on it.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, offering insights into contract interactions and the dynamics of Shape's operations.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed through Shape, illustrating the network's enhanced throughput and scalability.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, highlighting the efficiency and reduced costs of operations on Shape.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of smart contract executions on the Shape network.
# shape.blocks
Source: https://docs.dune.com/data-catalog/evm/shape/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Shape.
## Table description
The `shape.blocks` table contains information about blocks in the shape blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM shape.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM shape.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM shape.blocks
GROUP BY 1
LIMIT 10`
# shape.creation_traces
Source: https://docs.dune.com/data-catalog/evm/shape/raw/creation-traces
Contract deployment records on Shape — deployer address, factory context, and deployed bytecode.
## Table Description
The `shape.creation_traces` table contains information about the creation of smart contracts on the shape blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the shape blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the shape blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM shape.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM shape.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM shape.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# shape.logs
Source: https://docs.dune.com/data-catalog/evm/shape/raw/logs
Smart contract event logs on Shape — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `shape.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/shape/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM shape.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM shape.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM shape.logs
WHERE evt_block_number = 1000000`
# shape.traces
Source: https://docs.dune.com/data-catalog/evm/shape/raw/traces
Internal transaction traces on Shape — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `shape.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/shape/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM shape.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# shape.transactions
Source: https://docs.dune.com/data-catalog/evm/shape/raw/transactions
Every transaction on Shape — from, to, value, gas, calldata, and receipt status.
## Table Description
The `shape.transactions` table contains information about all transactions on the shape blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the shape blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/shape/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=shape\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM shape.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM shape.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM shape.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on somnia
Source: https://docs.dune.com/data-catalog/evm/somnia/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on somnia.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for somnia transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on somnia.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=somnia](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=somnia)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=somnia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=somnia\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Somnia Call Tables
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Somnia network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# somnia.contracts
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/contracts
Verified contract registry on Somnia — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the somnia blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=contracts)
# somnia.event_logs
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/event-logs
Smart contract event logs on Somnia — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# somnia.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/logs-decoded
ABI-decoded event logs on Somnia — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from somnia transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/somnia/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on somnia?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for somnia on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=logs_decoded)
# Somnia Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/overview
Simplifying Somnia smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/somnia/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/somnia/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/somnia/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# somnia.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/somnia/decoded/traces-decoded
ABI-decoded function calls on Somnia — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from somnia transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/somnia/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=traces_decoded)
# Somnia Overview
Source: https://docs.dune.com/data-catalog/evm/somnia/overview
Somnia data on Dune
## What is Somnia?
Somnia is a high-performance, cost-efficient EVM-compatible Layer 1 blockchain capable of processing over 1,000,000 transactions per second (TPS) with sub-second finality. It is suitable for serving millions of users and building real-time mass-consumer applications like games, social applications, metaverses, and more, all fully on-chain.
## Key Features
* **Ultra-High Performance**: Capable of processing over 1,000,000 TPS with sub-second finality
* **EVM-Compatible**: Full compatibility with Ethereum smart contracts and tooling
* **Mass-Consumer Focus**: Designed for real-time applications serving millions of users
* **Cost-Efficient**: Optimized for high-throughput, low-cost transactions
* **Gaming & Metaverse Ready**: Specialized infrastructure for gaming and metaverse applications
* **Social Applications**: Built to support large-scale social platforms and applications
## Performance Benchmarks
* **1,050,000 TPS**: Achieved with ERC-20 transfers between several hundred thousand accounts
* **50,000 Uniswaps per second**: Running Uniswap V3 with several hundred thousand accounts trading one LP pool
* **300,000 NFT mints per second**: Supporting 100,000 accounts minting NFTs simultaneously
## Ecosystem Highlights
* High-performance infrastructure for mass-consumer applications
* Gaming and metaverse platform capabilities
* Social application support at scale
* Real-time transaction processing
* Support for various application types including:
* Games
* Social applications
* Metaverses
* Real-time consumer applications
* High-throughput DeFi protocols
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/somnia/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/somnia/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Somnia Documentation](https://docs.somnia.network/)
>
> Official documentation for developers building on Somnia
# somnia.blocks
Source: https://docs.dune.com/data-catalog/evm/somnia/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Somnia.
## Table description
The `somnia.blocks` table contains information about blocks in the somnia blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM somnia.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM somnia.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM somnia.blocks
GROUP BY 1
LIMIT 10`
# somnia.creation_traces
Source: https://docs.dune.com/data-catalog/evm/somnia/raw/creation-traces
Contract deployment records on Somnia — deployer address, factory context, and deployed bytecode.
## Table Description
The `somnia.creation_traces` table contains information about the creation of smart contracts on the somnia blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the somnia blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the somnia blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM somnia.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM somnia.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM somnia.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# somnia.logs
Source: https://docs.dune.com/data-catalog/evm/somnia/raw/logs
Smart contract event logs on Somnia — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `somnia.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/somnia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM somnia.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM somnia.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM somnia.logs
WHERE evt_block_number = 1000000`
# somnia.traces
Source: https://docs.dune.com/data-catalog/evm/somnia/raw/traces
Internal transaction traces on Somnia — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `somnia.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/somnia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM somnia.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# somnia.transactions
Source: https://docs.dune.com/data-catalog/evm/somnia/raw/transactions
Every transaction on Somnia — from, to, value, gas, calldata, and receipt status.
## Table Description
The `somnia.transactions` table contains information about all transactions on the somnia blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the somnia blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/somnia/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=somnia\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM somnia.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM somnia.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM somnia.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on sonic
Source: https://docs.dune.com/data-catalog/evm/sonic/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Sonic — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for sonic transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sonic.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sonic](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sonic)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on sonic
Source: https://docs.dune.com/data-catalog/evm/sonic/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on sonic.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sonic transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sonic.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sonic](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sonic)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on sonic
Source: https://docs.dune.com/data-catalog/evm/sonic/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on sonic.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sonic transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sonic.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sonic](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sonic)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sonic\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Sonic Call Tables
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Sonic network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# sonic.contracts
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/contracts
Verified contract registry on Sonic — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the sonic blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# sonic.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/logs-decoded
ABI-decoded event logs on Sonic — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from sonic transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/sonic/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on sonic?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for sonic on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=logs_decoded)
# Sonic Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/overview
Simplifying Sonic smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/sonic/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/sonic/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/sonic/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# sonic.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/sonic/decoded/traces-decoded
ABI-decoded function calls on Sonic — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from sonic transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/sonic/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=traces_decoded)
# Sonic Overview
Source: https://docs.dune.com/data-catalog/evm/sonic/overview
Sonic data on Dune
Sonic is an EVM layer-1 blockchain platform that offers developers attractive incentives and powerful infrastructure, powering the next generation of decentralized applications. The platform features exceptional performance metrics including 10,000 transactions per second and sub-second finality while maintaining full EVM compatibility.
**High Scalability and Efficiency:**
Sonic delivers exceptional performance with:
* 10,000 Transactions per Second
* Sub-Second Finality
* Low Transaction Costs
* Full EVM Compatibility
**Strong Security and Ethereum Compatibility:**
Sonic maintains robust security through its aBFT (asynchronous Byzantine Fault Tolerance) consensus while offering full EVM compatibility. This allows developers to easily port their Ethereum applications to Sonic or build new ones using familiar tools and languages.
**Developer-Friendly Environment:**
Sonic provides developers with powerful incentives and infrastructure including:
* Fee Monetization: Earn up to 90% of the fees your apps generate
* Innovator Fund: Up to 200 million S to support new ventures
* Solidity/Vyper Support
* Comprehensive development tooling
> [card] [Sonic documentation](https://docs.soniclabs.com/sonic/overview)
>
> Access comprehensive documentation for Sonic, providing detailed insights into its consensus mechanism, architecture, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, offering insights into contract interactions and network activities on Sonic.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed through Sonic's Lachesis consensus, demonstrating the network's high throughput and fast finality.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the high-performance and cost-effective nature of operations on Sonic.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and deeper understanding of smart contract executions on the Sonic network.
# sonic.blocks
Source: https://docs.dune.com/data-catalog/evm/sonic/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Sonic.
## Table description
The `sonic.blocks` table contains information about blocks in the sonic blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM sonic.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM sonic.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM sonic.blocks
GROUP BY 1
LIMIT 10`
# sonic.creation_traces
Source: https://docs.dune.com/data-catalog/evm/sonic/raw/creation-traces
Contract deployment records on Sonic — deployer address, factory context, and deployed bytecode.
## Table Description
The `sonic.creation_traces` table contains information about the creation of smart contracts on the sonic blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the sonic blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the sonic blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM sonic.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM sonic.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM sonic.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# sonic.logs
Source: https://docs.dune.com/data-catalog/evm/sonic/raw/logs
Smart contract event logs on Sonic — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `sonic.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sonic/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM sonic.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM sonic.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM sonic.logs
WHERE evt_block_number = 1000000`
# sonic.traces
Source: https://docs.dune.com/data-catalog/evm/sonic/raw/traces
Internal transaction traces on Sonic — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `sonic.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sonic/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM sonic.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# sonic.transactions
Source: https://docs.dune.com/data-catalog/evm/sonic/raw/transactions
Every transaction on Sonic — from, to, value, gas, calldata, and receipt status.
## Table Description
The `sonic.transactions` table contains information about all transactions on the sonic blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the sonic blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sonic/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sonic\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM sonic.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM sonic.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM sonic.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on sophon
Source: https://docs.dune.com/data-catalog/evm/sophon/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Sophon — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for sophon transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sophon.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sophon](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=sophon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on sophon
Source: https://docs.dune.com/data-catalog/evm/sophon/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on sophon.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sophon transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sophon.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sophon](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=sophon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on sophon
Source: https://docs.dune.com/data-catalog/evm/sophon/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on sophon.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for sophon transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on sophon.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sophon](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=sophon)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=sophon\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Sophon Call Tables
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Sophon network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# sophon.contracts
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/contracts
Verified contract registry on Sophon — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the sophon blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# sophon.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/logs-decoded
ABI-decoded event logs on Sophon — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from sophon transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/sophon/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on sophon?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for sophon on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=logs_decoded)
# Sophon Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/overview
Simplifying Sophon smart contract analysis through human-readable tables.
> [!WARNING]
>
> Due to bugs in the Sophon client, some contract creation traces are missing, and data in the code field is incomplete for certain blocks. Consequently, we cannot support factory and bytecode matching for this chain. Once the bugs are addressed, we will work to restore this functionality. We apologize for the inconvenience.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/sophon/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/sophon/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/sophon/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# sophon.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/sophon/decoded/traces-decoded
ABI-decoded function calls on Sophon — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from sophon transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/sophon/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=traces_decoded)
# Sophon Overview
Source: https://docs.dune.com/data-catalog/evm/sophon/overview
Sophon data on Dune
Sophon is a ZK chain that redefines onchain experiences by combining real applications with a simple user experience and high scalability. Built on ZK technology, Sophon aims to bring crypto accessibility to a wider audience while maintaining robust security and performance.
**Architecture and Technology:**
Sophon is built on three key technological pillars:
* **Validiums**: A ZK-based scaling solution that provides high throughput and security
* **The ZK Stack**: A comprehensive infrastructure that powers the network
* **Native Account Abstraction**: Built-in support for smart accounts and improved user experience
* **Paymasters**: Advanced fee abstraction mechanisms for better user onboarding
**Enhanced User Experience:**
Sophon focuses on simplifying the blockchain experience while maintaining high performance. The platform is designed to make crypto applications accessible to everyday users while providing the tools and infrastructure developers need to build sophisticated applications.
**Developer-Centric Approach:**
The platform provides a comprehensive environment for developers to build and deploy applications, with native support for advanced features like account abstraction and paymaster functionality, enabling more sophisticated and user-friendly dApps.
> [card] [Sophon documentation](https://docs.sophon.xyz/welcome)
>
> Access the official documentation for Sophon to explore its architecture, features, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into interactions and activities on the Sophon network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed using Sophon's ZK technology, reflecting the network's capacity for high transaction throughput.
> [card] [Transactions](./raw/transactions)
>
> Detailed transaction data, showcasing the operational efficiency and cost-effectiveness of Sophon's validium solution.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of smart contract executions on Sophon.
# sophon.blocks
Source: https://docs.dune.com/data-catalog/evm/sophon/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Sophon.
## Table description
The `sophon.blocks` table contains information about blocks in the sophon blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM sophon.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM sophon.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM sophon.blocks
GROUP BY 1
LIMIT 10`
# sophon.creation_traces
Source: https://docs.dune.com/data-catalog/evm/sophon/raw/creation-traces
Contract deployment records on Sophon — deployer address, factory context, and deployed bytecode.
## Table Description
The `sophon.creation_traces` table contains information about the creation of smart contracts on the sophon blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the sophon blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the sophon blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM sophon.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM sophon.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM sophon.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# sophon.logs
Source: https://docs.dune.com/data-catalog/evm/sophon/raw/logs
Smart contract event logs on Sophon — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `sophon.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sophon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM sophon.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM sophon.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM sophon.logs
WHERE evt_block_number = 1000000`
# sophon.traces
Source: https://docs.dune.com/data-catalog/evm/sophon/raw/traces
Internal transaction traces on Sophon — cross-contract calls, delegate calls, and value transfers with full call stack context.
> [!WARNING]
>
> You may see duplicate records in the `traces` table for the Sophon chain. This is not a bug, but a result of trace calls appearing twice within the same transaction. These consecutive calls—an outer and an inner call—are identical except for their gas values. They share the same `from`, `to`, `input`, `output`, `success`, and `value` fields.
## Table Description
The `sophon.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sophon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM sophon.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# sophon.transactions
Source: https://docs.dune.com/data-catalog/evm/sophon/raw/transactions
Every transaction on Sophon — from, to, value, gas, calldata, and receipt status.
## Table Description
The `sophon.transactions` table contains information about all transactions on the sophon blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the sophon blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/sophon/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sophon\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM sophon.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM sophon.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM sophon.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on story
Source: https://docs.dune.com/data-catalog/evm/story/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on story.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for story transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on story.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=story](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=story)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=story\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=story\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Story Call Tables
Source: https://docs.dune.com/data-catalog/evm/story/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Story network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# story.contracts
Source: https://docs.dune.com/data-catalog/evm/story/decoded/contracts
Verified contract registry on Story — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the story blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/story/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# story.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/story/decoded/logs-decoded
ABI-decoded event logs on Story — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from story transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/story/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on story?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for story on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=logs_decoded)
# Story Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/story/decoded/overview
Simplifying Story smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/story/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/story/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/story/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# story.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/story/decoded/traces-decoded
ABI-decoded function calls on Story — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from story transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/story/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=traces_decoded)
# Story Overview
Source: https://docs.dune.com/data-catalog/evm/story/overview
Story data on Dune
## What is Story?
Story is the world's IP blockchain - a purpose-built layer 1 blockchain designed specifically for intellectual property. You can register your IP on-chain and add usage terms to it in seconds, massively lowering the barrier to the currently complex & antiquated legal system for IP.
By making IP programmable on the blockchain, it becomes a transparent & decentralized global IP repository where AI agents (or any other software) and humans alike can transact on & monetize IP with a simple API call.
## Key Features and Advantages
### The World's IP Blockchain
Story Network is a purpose-built layer 1 blockchain achieving the best of EVM and Cosmos SDK. It is 100% EVM-compatible alongside deep execution layer optimizations to support graph data structures, purpose-built for handling complex data structures like IP quickly and cost-efficiently.
### Proof-of-Creativity Protocol
The "Proof-of-Creativity" Protocol, made up of smart contracts written in Solidity, are natively deployed on Story Network and allow anyone to onramp IP to Story.
* **IP Assets**: Creators register their IP as IP Assets on Story. IP could be an image, a song, an RWA, AI training data, or anything in-between.
* **Modules**: You use Modules to interact with IP Assets. For example:
* **Licensing Module**: Enforcing proper usage of your IP
* **Royalty Module**: Paying & claiming revenue
* **Dispute Module**: Disputing infringing IP
* **Ownership**: Each IP Asset has an associated ERC721 NFT, which represents ownership over the IP. This means IP ownership can be bought & sold.
* **IPFi**: The licenses minted from an IP are also ERC721 NFTs, meaning you can buy & sell the rights to use an IP under certain terms, unlocking a new realm of IP Finance.
### Programmable IP License (PIL)
Although on-chain, an IP's usage terms and minted licenses are enforced by an off-chain legal contract called the Programmable IP License (PIL). The PIL allows anyone to offramp tokenized IP on Story into the "real world" legal system and outlines real legal terms for how creators can remix, monetize, and create derivatives of their IP.
### Network Specifications
* **Technology Stack**: EVM-compatible Layer 1 with Cosmos SDK
* **Gas Token**: \$IP
* **Network Type**: EVM-compatible Layer 1
* **Consensus**: CometBFT-based consensus layer for fast finality and cheap transactions
* **Optimizations**: Precompiled primitives to traverse complex data structures like IP graphs within seconds at marginal costs
### Developer Tools & Infrastructure
* **Full EVM Compatibility**: Support for standard Ethereum development tools
* **Smart Contract Development**: Solidity smart contracts
* **Graph Data Structures**: Purpose-built for handling complex IP data structures
* **Infrastructure**:
* Cross-chain bridges (Stargate, deBridge, Orbiter Finance)
* Stablecoin support (bridged USDC.e)
* Wallet support (MetaMask, OKX, and other EVM-based wallets)
> [card] [Story Documentation](https://docs.story.foundation/introduction)
>
> Official documentation for developers building on Story
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on Story
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# story.blocks
Source: https://docs.dune.com/data-catalog/evm/story/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Story.
## Table description
The `story.blocks` table contains information about blocks in the story blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM story.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM story.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM story.blocks
GROUP BY 1
LIMIT 10`
# story.creation_traces
Source: https://docs.dune.com/data-catalog/evm/story/raw/creation-traces
Contract deployment records on Story — deployer address, factory context, and deployed bytecode.
## Table Description
The `story.creation_traces` table contains information about the creation of smart contracts on the story blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the story blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the story blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM story.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM story.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM story.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# story.logs
Source: https://docs.dune.com/data-catalog/evm/story/raw/logs
Smart contract event logs on Story — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `story.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/story/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM story.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM story.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM story.logs
WHERE evt_block_number = 1000000`
# story.traces
Source: https://docs.dune.com/data-catalog/evm/story/raw/traces
Internal transaction traces on Story — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `story.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/story/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM story.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# story.transactions
Source: https://docs.dune.com/data-catalog/evm/story/raw/transactions
Every transaction on Story — from, to, value, gas, calldata, and receipt status.
## Table Description
The `story.transactions` table contains information about all transactions on the story blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the story blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/story/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=story\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM story.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM story.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM story.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on superseed
Source: https://docs.dune.com/data-catalog/evm/superseed/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on superseed.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for superseed transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on superseed.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=superseed](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=superseed)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=superseed\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=superseed\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Hemi Call Tables
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Hemi network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# superseed.contracts
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/contracts
Verified contract registry on Superseed — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the superseed blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=contracts)
# superseed.event_logs
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/event-logs
Smart contract event logs on Superseed — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# superseed.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/logs-decoded
ABI-decoded event logs on Superseed — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from superseed transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/superseed/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on superseed?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for superseed on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=logs_decoded)
# Superseed Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/overview
Simplifying Superseed smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/superseed/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/superseed/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/superseed/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# superseed.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/superseed/decoded/traces-decoded
ABI-decoded function calls on Superseed — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from superseed transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/superseed/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=traces_decoded)
# Superseed Overview
Source: https://docs.dune.com/data-catalog/evm/superseed/overview
Superseed data on Dune
## What is Superseed?
Superseed is a network that transforms Ethereum scaling into self-repaying loans. Built on the OP Stack, Superseed is an optimistic rollup that extends Ethereum's ability to enable financial freedom by maximizing capital efficiency and returning 100% of protocol revenue to users.
## Key Features
* **Zero Interest Yield**: Access yield at zero percent interest, with loans repaid effortlessly through protocol-generated fees
* **Proof-of-Repayment**: A unique programmatic reward mechanism where a small percentage of the native token's total supply is distributed daily through an auction, with proceeds used to repay Supercollateral users
* **Supercollateral**: Superseed's governance token plays a special role within the CDP protocol, allowing borrowers who meet safety requirements (e.g., a collateralization ratio of 500%) to secure loans without interest
* **Dynamic Repayment Vault**: Channels protocol fees into a smart contract that systematically burns debt, stabilizing the repayment rate for Supercollateral users
* **Native CDP Platform**: A Collateralized Debt Position platform enshrined in the rollup protocol
* **Superseed Stablecoin**: An overcollateralized stablecoin generated when users borrow against their assets, requiring collateral value to exceed 150% of the stablecoin's value
## Protocol Components
* **General-purpose Ethereum Layer 2**: Built on the OP stack, open-source, permissionless, and Ethereum-equivalent
* **CDP Protocol**: Native collateralized debt position platform integrated into the rollup
* **Revenue Sources**: Sequencer profits, CDP interest, and inflationary rewards
* **Automatic Loan Repayment**: All fees generated across the network are used to burn the debt of Supercollateral users
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/superseed/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/superseed/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Superseed Documentation](https://docs.superseed.xyz/)
>
> Official documentation for developers building on Superseed
# superseed.blocks
Source: https://docs.dune.com/data-catalog/evm/superseed/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Superseed.
## Table description
The `superseed.blocks` table contains information about blocks in the superseed blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM superseed.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM superseed.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM superseed.blocks
GROUP BY 1
LIMIT 10`
# superseed.creation_traces
Source: https://docs.dune.com/data-catalog/evm/superseed/raw/creation-traces
Contract deployment records on Superseed — deployer address, factory context, and deployed bytecode.
## Table Description
The `superseed.creation_traces` table contains information about the creation of smart contracts on the superseed blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the superseed blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the superseed blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM superseed.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM superseed.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM superseed.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# superseed.logs
Source: https://docs.dune.com/data-catalog/evm/superseed/raw/logs
Smart contract event logs on Superseed — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `superseed.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/superseed/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM superseed.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM superseed.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM superseed.logs
WHERE evt_block_number = 1000000`
# superseed.traces
Source: https://docs.dune.com/data-catalog/evm/superseed/raw/traces
Internal transaction traces on Superseed — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `superseed.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/superseed/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM superseed.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# superseed.transactions
Source: https://docs.dune.com/data-catalog/evm/superseed/raw/transactions
Every transaction on Superseed — from, to, value, gas, calldata, and receipt status.
## Table Description
The `superseed.transactions` table contains information about all transactions on the superseed blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the superseed blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/superseed/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=superseed\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM superseed.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM superseed.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM superseed.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on tac
Source: https://docs.dune.com/data-catalog/evm/tac/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on tac.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for tac transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on tac.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=tac](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=tac)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=tac\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=tac\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# TAC Call Tables
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the TAC network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# tac.contracts
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/contracts
Verified contract registry on Tac — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the tac blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=contracts)
# tac.event_logs
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/event-logs
Smart contract event logs on Tac — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# tac.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/logs-decoded
ABI-decoded event logs on Tac — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from tac transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/tac/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on tac?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for tac on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=logs_decoded)
# TAC Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/overview
Simplifying TAC smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/tac/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/tac/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/tac/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# tac.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/tac/decoded/traces-decoded
ABI-decoded function calls on Tac — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from tac transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/tac/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=traces_decoded)
# TAC Overview
Source: https://docs.dune.com/data-catalog/evm/tac/overview
TAC data on Dune
## What is TAC?
TAC (The Asset Chain) is a Layer 2 blockchain built on Ethereum that provides a secure, scalable, and efficient platform for real-world asset tokenization and trading. It enables the seamless integration of traditional financial assets into the blockchain ecosystem, offering institutional-grade infrastructure for asset management and trading.
## Key Features
* **Real-World Asset Focus**: Specialized infrastructure for tokenizing and trading real-world assets
* **Ethereum L2**: Built on Ethereum for security and composability
* **Institutional Grade**: Designed to meet regulatory and institutional requirements
* **High Performance**: Optimized for high-throughput trading and asset management
* **Composability**: Seamless integration with the broader Ethereum ecosystem
## Ecosystem Highlights
* Advanced infrastructure for real-world asset tokenization
* Institutional-grade trading and settlement capabilities
* Regulatory-compliant framework for asset management
* Support for various asset classes including:
* Real estate
* Commodities
* Private equity
* Fixed income instruments
* Alternative investments
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/tac/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/tac/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [TAC Documentation](https://docs.tac.build/core-concepts/overview/what-is-tac)
>
> Official documentation for developers building on TAC
# tac.blocks
Source: https://docs.dune.com/data-catalog/evm/tac/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Tac.
## Table description
The `tac.blocks` table contains information about blocks in the tac blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM tac.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM tac.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM tac.blocks
GROUP BY 1
LIMIT 10`
# tac.creation_traces
Source: https://docs.dune.com/data-catalog/evm/tac/raw/creation-traces
Contract deployment records on Tac — deployer address, factory context, and deployed bytecode.
## Table Description
The `tac.creation_traces` table contains information about the creation of smart contracts on the tac blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the tac blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the tac blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM tac.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM tac.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM tac.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# tac.logs
Source: https://docs.dune.com/data-catalog/evm/tac/raw/logs
Smart contract event logs on Tac — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `tac.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tac/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM tac.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM tac.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM tac.logs
WHERE evt_block_number = 1000000`
# tac.traces
Source: https://docs.dune.com/data-catalog/evm/tac/raw/traces
Internal transaction traces on Tac — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `tac.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tac/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM tac.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# tac.transactions
Source: https://docs.dune.com/data-catalog/evm/tac/raw/transactions
Every transaction on Tac — from, to, value, gas, calldata, and receipt status.
## Table Description
The `tac.transactions` table contains information about all transactions on the tac blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the tac blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tac/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tac\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM tac.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM tac.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM tac.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on taiko
Source: https://docs.dune.com/data-catalog/evm/taiko/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on taiko.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for taiko transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on taiko.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=taiko](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=taiko)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=taiko\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=taiko\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Taiko Call Tables
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Taiko network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# taiko.contracts
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/contracts
Verified contract registry on Taiko — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the taiko blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=contracts)
# taiko.event_logs
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/event-logs
Smart contract event logs on Taiko — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# taiko.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/logs-decoded
ABI-decoded event logs on Taiko — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from taiko transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/taiko/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on taiko?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for taiko on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=logs_decoded)
# Taiko Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/overview
Simplifying Taiko smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/taiko/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/taiko/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/taiko/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# taiko.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/taiko/decoded/traces-decoded
ABI-decoded function calls on Taiko — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from taiko transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/taiko/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=traces_decoded)
# Taiko Overview
Source: https://docs.dune.com/data-catalog/evm/taiko/overview
Taiko data on Dune
## What is Taiko?
Taiko is a decentralized, Ethereum-equivalent ZK-Rollup that provides a seamless and secure scaling solution for Ethereum. Built with the Taiko Alethia Protocol, it offers full EVM compatibility while maintaining the security and decentralization of Ethereum through zero-knowledge proofs.
## Key Features
* **Ethereum-Equivalent**: Full EVM compatibility with no modifications required
* **ZK-Rollup Technology**: Secure scaling through zero-knowledge proofs
* **Decentralized**: Maintains Ethereum's security and decentralization principles
* **High Performance**: Significantly higher throughput than Ethereum mainnet
* **Gas Efficiency**: Reduced transaction costs while maintaining security
## Ecosystem Highlights
* Based on the Taiko Alethia Protocol for secure and efficient scaling
* Full compatibility with existing Ethereum tools and infrastructure
* Decentralized sequencer network for enhanced security
* Support for all Ethereum smart contracts and dApps
* Advanced ZK-proof generation for transaction validation
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/taiko/raw/blocks)
>
> Access to raw blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/evm/taiko/decoded/overview)
>
> Human-readable contract interactions and events
## Resources
> [card] [Taiko Documentation](https://docs.taiko.xyz/taiko-alethia-protocol/what-is-taiko-alethia)
>
> Official documentation for developers building on Taiko
# taiko.blocks
Source: https://docs.dune.com/data-catalog/evm/taiko/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Taiko.
## Table description
The `taiko.blocks` table contains information about blocks in the taiko blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM taiko.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM taiko.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM taiko.blocks
GROUP BY 1
LIMIT 10`
# taiko.creation_traces
Source: https://docs.dune.com/data-catalog/evm/taiko/raw/creation-traces
Contract deployment records on Taiko — deployer address, factory context, and deployed bytecode.
## Table Description
The `taiko.creation_traces` table contains information about the creation of smart contracts on the taiko blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the taiko blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the taiko blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM taiko.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM taiko.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM taiko.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# taiko.logs
Source: https://docs.dune.com/data-catalog/evm/taiko/raw/logs
Smart contract event logs on Taiko — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `taiko.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/taiko/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM taiko.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM taiko.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM taiko.logs
WHERE evt_block_number = 1000000`
# taiko.traces
Source: https://docs.dune.com/data-catalog/evm/taiko/raw/traces
Internal transaction traces on Taiko — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `taiko.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/taiko/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM taiko.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# taiko.transactions
Source: https://docs.dune.com/data-catalog/evm/taiko/raw/transactions
Every transaction on Taiko — from, to, value, gas, calldata, and receipt status.
## Table Description
The `taiko.transactions` table contains information about all transactions on the taiko blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the taiko blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/taiko/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=taiko\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM taiko.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM taiko.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM taiko.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Tempo Call Tables
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Tempo network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# tempo.contracts
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/contracts
Verified contract registry on Tempo — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the tempo blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=contracts)
# Event Logs - Tempo
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/event-logs
Smart contracts on Tempo emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# tempo.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/logs-decoded
ABI-decoded event logs on Tempo — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from tempo transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/tempo/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on tempo?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for tempo on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=logs_decoded)
# Tempo Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/overview
Simplifying Tempo Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/tempo/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/tempo/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/tempo/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# tempo.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/tempo/decoded/traces-decoded
ABI-decoded function calls on Tempo — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from tempo transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/tempo/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=traces_decoded)
# Tempo Chain Overview
Source: https://docs.dune.com/data-catalog/evm/tempo/overview
Tempo blockchain data on Dune
## What is Tempo?
Tempo is a Layer 1 blockchain purpose-built for stablecoin payments at scale. Incubated by Paradigm and Stripe, Tempo is built on Paradigm's high-performance Ethereum client Reth and uses Simplex BFT consensus for sub-second, deterministic finality. It is fully EVM-compatible, allowing developers to use familiar Solidity tooling like Foundry and Hardhat.
Tempo is often referred to as a "stablechain" because its entire design is optimized around stablecoin-based payments rather than general-purpose computation.
## Key Features of Tempo
### **No Native Gas Token**
Unlike virtually every other blockchain, Tempo has no native cryptocurrency. Gas fees are paid directly in USD-denominated stablecoins (USDC, USDT, etc.) via a Fee AMM that converts user-selected fee tokens to validator-preferred assets. This means `value` fields in transactions and traces behave differently than on other EVM chains — there is no native ETH-like asset being transferred.
### **Sub-Second Finality**
Tempo produces blocks every \~0.5 seconds with deterministic, immediate finality powered by Simplex BFT consensus. Once a block is committed, it is final with no re-orgs or probabilistic finality.
### **Ultra-Low Fees**
Transaction costs target under \$0.001 per transaction, with dedicated payment lanes that reserve blockspace for payment transactions to ensure low fees even during congestion.
### **TIP-20 Token Standard**
Tempo extends ERC-20 with its own TIP-20 standard, adding currency identifiers (USD, EUR), gas payment capability, a 32-byte memo field for invoice IDs and metadata, reward distribution mechanisms, and compliance policy integration. TIP-20 events are indexed on Dune under `tip20_tempo.*` tables alongside standard ERC-20 tables.
### **Built-in StablecoinDEX**
A native decentralized exchange optimized for stablecoin conversions and tokenized deposits. The StablecoinDEX is decoded on Dune under `tempoexchange_tempo.stablecoindex_*` tables.
## EVM Differences Impacting Data
While Tempo is EVM-compatible, several design choices affect how data appears compared to standard EVM chains:
* **No native token**: The `value` field in transactions and traces is not meaningful in the traditional sense since there is no native gas token. Token transfers happen via TIP-20/ERC-20 events instead.
* **TIP-20 events**: In addition to standard ERC-20 `Transfer` and `Approval` events, Tempo tokens emit TIP-20-specific events like `TransferWithMemo`, `RewardDistributed`, `QuoteTokenUpdate`, `TransferPolicyUpdate`, and `SupplyCapUpdate`.
* **Gas paid in stablecoins**: Gas fee fields (`gas_price`, `max_fee_per_gas`) denominate fees in stablecoins rather than a native token, which affects `gas.fees` computations.
> [card] [Tempo documentation](https://docs.tempo.xyz)
>
> Access full documentation for Tempo, including architecture, token standards, and developer guides.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Smart contract event logs on Tempo.
> [card] [Blocks](./raw/blocks)
>
> Information on processed blocks, highlighting Tempo's sub-second throughput.
> [card] [Transactions](./raw/transactions)
>
> Data on transactions, illustrating Tempo's ultra-low-cost stablecoin payments.
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data for in-depth analysis of contract executions including the native StablecoinDEX and Uniswap deployments.
# tempo.blocks
Source: https://docs.dune.com/data-catalog/evm/tempo/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Tempo.
## Table description
The `tempo.blocks` table contains information about blocks in the tempo blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM tempo.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM tempo.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM tempo.blocks
GROUP BY 1
LIMIT 10`
# tempo.creation_traces
Source: https://docs.dune.com/data-catalog/evm/tempo/raw/creation-traces
Contract deployment records on Tempo — deployer address, factory context, and deployed bytecode.
## Table Description
The `tempo.creation_traces` table contains information about the creation of smart contracts on the tempo blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the tempo blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the tempo blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM tempo.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM tempo.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM tempo.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# tempo.logs
Source: https://docs.dune.com/data-catalog/evm/tempo/raw/logs
Smart contract event logs on Tempo — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `tempo.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tempo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM tempo.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM tempo.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM tempo.logs
WHERE evt_block_number = 1000000`
# tempo.traces
Source: https://docs.dune.com/data-catalog/evm/tempo/raw/traces
Internal transaction traces on Tempo — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `tempo.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tempo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM tempo.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# tempo.transactions
Source: https://docs.dune.com/data-catalog/evm/tempo/raw/transactions
Every transaction on Tempo — from, to, value, gas, calldata, and receipt status.
## Table Description
The `tempo.transactions` table contains information about all transactions on the tempo blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the tempo blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tempo/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tempo\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM tempo.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM tempo.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM tempo.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Tezos EVM Call Tables
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Tezos EVM network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# tezos_evm.contracts
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/contracts
Verified contract registry on Tezos EVM — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the tezos_evm blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=contracts)
# Event Logs - Tezos EVM
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/event-logs
Smart contracts on Tezos EVM emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# tezos_evm.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/logs-decoded
ABI-decoded event logs on Tezos EVM — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from tezos_evm transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/tezos_evm/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on tezos_evm?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for tezos_evm on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=logs_decoded)
# Tezos EVM Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/overview
Simplifying Tezos EVM smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/tezos_evm/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/tezos_evm/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/tezos_evm/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# tezos_evm.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/decoded/traces-decoded
ABI-decoded function calls on Tezos EVM — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from tezos_evm transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/tezos_evm/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=traces_decoded)
# Tezos EVM Chain Overview
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/overview
Tezos EVM blockchain data on Dune
## What is Tezos EVM?
Tezos EVM is the EVM-compatible execution environment running as an L2 rollup on Tezos. It is an optimistic rollup that posts proofs back to Tezos L1 for settlement and uses Tezos' Smart Rollup framework for data availability. Standard Ethereum tooling (Solidity, Foundry, Hardhat, MetaMask, etc.) works without modification, while transaction costs and finality benefit from Tezos' underlying consensus.
## Key Features
* **EVM compatibility**: Full bytecode compatibility — Solidity contracts deploy with no source changes; Ethereum wallets and RPC clients work out of the box.
* **Tezos-backed settlement**: An optimistic rollup anchored to Tezos L1. Sequencing and DA leverage Tezos' Smart Rollup primitives, with fraud-proof–style dispute resolution on L1.
* **Sub-second blocks**: The chain produces a new block every \~2 seconds on average (verified against `tezos_evm.blocks` time deltas), enabling fast UX for trading and other latency-sensitive use cases.
* **Native gas token**: Gas is paid in XTZ (Tezos' native token) bridged into the EVM context, not ETH — be careful when comparing fee data with other EVM chains.
## Data on Dune
> [card] [Raw Data](/data-catalog/evm/tezos_evm/raw/blocks)
>
> Block, transaction, log, and trace data indexed directly from Tezos EVM nodes.
> [card] [Decoded Data](/data-catalog/evm/tezos_evm/decoded/overview)
>
> ABI-decoded contract interactions and events from verified Tezos EVM contracts.
## Resources
> [card] [Tezos EVM](https://www.etherlink.com/)
>
> Project home page.
> [card] [Tezos EVM Documentation](https://docs.etherlink.com/)
>
> Architecture, tooling, and developer guides.
# tezos_evm.blocks
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Tezos EVM.
## Table description
The `tezos_evm.blocks` table contains information about blocks in the tezos_evm blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM tezos_evm.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM tezos_evm.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM tezos_evm.blocks
GROUP BY 1
LIMIT 10`
# tezos_evm.creation_traces
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/raw/creation-traces
Contract deployment records on Tezos EVM — deployer address, factory context, and deployed bytecode.
## Table Description
The `tezos_evm.creation_traces` table contains information about the creation of smart contracts on the tezos_evm blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the tezos_evm blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the tezos_evm blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM tezos_evm.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM tezos_evm.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM tezos_evm.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# tezos_evm.logs
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/raw/logs
Smart contract event logs on Tezos EVM — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `tezos_evm.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tezos_evm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM tezos_evm.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM tezos_evm.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM tezos_evm.logs
WHERE evt_block_number = 1000000`
# tezos_evm.traces
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/raw/traces
Internal transaction traces on Tezos EVM — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `tezos_evm.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tezos_evm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM tezos_evm.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# tezos_evm.transactions
Source: https://docs.dune.com/data-catalog/evm/tezos_evm/raw/transactions
Every transaction on Tezos EVM — from, to, value, gas, calldata, and receipt status.
## Table Description
The `tezos_evm.transactions` table contains information about all transactions on the tezos_evm blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the tezos_evm blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/tezos_evm/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=tezos_evm\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM tezos_evm.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM tezos_evm.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM tezos_evm.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on unichain
Source: https://docs.dune.com/data-catalog/evm/unichain/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Unichain — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for unichain transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on unichain.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=unichain](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=unichain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on unichain
Source: https://docs.dune.com/data-catalog/evm/unichain/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on unichain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for unichain transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on unichain.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=unichain](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=unichain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on unichain
Source: https://docs.dune.com/data-catalog/evm/unichain/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on unichain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for unichain transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on unichain.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=unichain](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=unichain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=unichain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Unichain Call Tables
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Unichain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# unichain.contracts
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/contracts
Verified contract registry on Unichain — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the unichain blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# unichain.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/logs-decoded
ABI-decoded event logs on Unichain — human-readable event names and parsed parameters from verified contracts.
## Table Description
The `logs_decoded` table contains decoded logs from unichain transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches `topic0` to the event signature and the corresponding event name.
On unichain, this table also exposes the full event payload via the `decoded_json` column, so you can read every event parameter directly from this table without joining the per-event tables described in [Event Logs](/data-catalog/evm/unichain/decoded/event-logs).
> [!NOTE]
>
> **Coverage is limited to decoded contracts.** Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can [submit it for decoding](/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
> [!NOTE]
>
> **unichain.logs_decoded includes the `decoded_json` column.** Each row contains the fully decoded event parameters as a JSON object (parameter name → value), so you can read event payloads on this chain directly without joining the per-event tables. Because the table only contains logs from decoded contracts, `decoded_json` is populated for every row.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that emitted the event |
| `contract_address` | `varbinary` | Address of the contract that emitted the event |
| `tx_hash` | `varbinary` | Hash of the transaction containing this log |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `index` | `integer` | Position of the log within the block |
| `signature` | `varbinary` | Event signature hash (topic0) |
| `event_name` | `varchar` | Decoded name of the event |
| `decoded_json` | `varchar` | Full event parameters as a JSON object (parameter name → value). Populated for every row, since the table only contains logs from decoded contracts. |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=logs_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=logs_decoded)
# Unichain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/overview
Simplifying Unichain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/unichain/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/unichain/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/unichain/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# unichain.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/unichain/decoded/traces-decoded
ABI-decoded function calls on Unichain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from unichain transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/unichain/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=traces_decoded)
# Unichain Overview
Source: https://docs.dune.com/data-catalog/evm/unichain/overview
Unichain data on Dune
Unichain is a DeFi-native Ethereum Layer 2 solution designed to be the home for cross-chain liquidity. It aims to revolutionize DeFi by providing the fastest, most cost-effective Layer 2 network for uniting fragmented blockchain ecosystems.
**Key Features:**
**Instant Transactions:**
Unichain launches with 1-second block times, with plans to achieve 250ms block times. This reduced latency significantly improves market efficiency by increasing arbitrage frequency and reducing MEV impact.
**Cost-Effective & Decentralized:**
Built to leverage Ethereum's scaling roadmap, Unichain reduces transaction costs by approximately 95% in the short term, with further reductions expected over time. While utilizing a single sequencer for efficiency, it enhances decentralization through full node block verification.
**Cross-Chain Liquidity:**
As part of the Superchain ecosystem, Unichain supports native interoperability across dozens of chains, making it seamless to access liquidity regardless of users' origin chains. Uniswap Labs continues to pioneer standards for seamless cross-chain interoperability.
> [card] [Unichain documentation](https://docs.unichain.org/docs)
>
> Explore comprehensive documentation on Unichain, including technical details and developer resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the Unichain network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on Unichain.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on Unichain.
> [card] [decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# unichain.blocks
Source: https://docs.dune.com/data-catalog/evm/unichain/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Unichain.
## Table description
The `unichain.blocks` table contains information about blocks in the unichain blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM unichain.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM unichain.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM unichain.blocks
GROUP BY 1
LIMIT 10`
# unichain.creation_traces
Source: https://docs.dune.com/data-catalog/evm/unichain/raw/creation-traces
Contract deployment records on Unichain — deployer address, factory context, and deployed bytecode.
## Table Description
The `unichain.creation_traces` table contains information about the creation of smart contracts on the unichain blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the unichain blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the unichain blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM unichain.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM unichain.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM unichain.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# unichain.logs
Source: https://docs.dune.com/data-catalog/evm/unichain/raw/logs
Smart contract event logs on Unichain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `unichain.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/unichain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM unichain.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM unichain.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM unichain.logs
WHERE evt_block_number = 1000000`
# unichain.traces
Source: https://docs.dune.com/data-catalog/evm/unichain/raw/traces
Internal transaction traces on Unichain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `unichain.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/unichain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM unichain.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# unichain.transactions
Source: https://docs.dune.com/data-catalog/evm/unichain/raw/transactions
Every transaction on Unichain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `unichain.transactions` table contains information about all transactions on the unichain blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the unichain blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/unichain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=unichain\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM unichain.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM unichain.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM unichain.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on viction
Source: https://docs.dune.com/data-catalog/evm/viction/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on viction.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for viction transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on viction.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=viction](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=viction)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=viction\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=viction\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on viction
Source: https://docs.dune.com/data-catalog/evm/viction/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on viction.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for viction transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on viction.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=viction](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=viction)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=viction\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=viction\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Viction Call Tables
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Viction network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# viction.contracts
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/contracts
Verified contract registry on Viction — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the viction blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# viction.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/logs-decoded
ABI-decoded event logs on Viction — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from viction transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/viction/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on viction?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for viction on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=logs_decoded)
# Viction Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/overview
Simplifying Viction Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/viction/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/viction/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/viction/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# viction.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/viction/decoded/traces-decoded
ABI-decoded function calls on Viction — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from viction transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/viction/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=traces_decoded)
# Viction Chain Overview
Source: https://docs.dune.com/data-catalog/evm/viction/overview
Viction blockchain data on Dune
## What is Viction?
Viction is a people-centric blockchain designed to make Web3 accessible and secure for all users. With zero-gas transactions and enhanced security, Viction empowers a wide range of applications, from decentralized finance to social networks and beyond. Viction introduces the **Viction World Wide Chain**, a groundbreaking network of app chains anchored by a common settlement layer, enabling extensive scalability and a seamless user experience.
## Key Features of Viction
Viction’s infrastructure centers around security, scalability, and ease of use, ensuring a smooth experience for both developers and end-users across the Web3 ecosystem.
### **Zero-Gas Transactions**
Viction removes cost barriers for users, enabling frequent and effortless in-chain transactions without the need for gas fees, making it an ideal platform for consumer-facing applications.
### **App Chain Scalability**
The Viction World Wide Chain supports a network of app chains that operate concurrently, anchored to Viction’s main chain. This allows each app chain to scale independently, enhancing overall network capacity while maintaining secure, frictionless interactions across chains.
### **EVM Compatibility**
With support for all EVM-compatible smart contracts, Viction allows Ethereum-based developers to build seamlessly on its platform, leveraging familiar tools like Solidity, Hardhat, and Remix.
## Network Architecture
Viction’s architecture is optimized for high performance, low-latency transactions, and robust security, accommodating a diverse ecosystem of decentralized applications.
* **150 Masternode Network:** Viction operates through a Proof-of-Stake Voting (PoSV) consensus with 150 masternodes, providing stability and incentivizing participation.
* **Interchain Connectivity via WWCP:** The Viction World Wide Chain Protocol (WWCP) facilitates seamless asset and data transfer between app chains, creating a cohesive ecosystem.
## Consensus Mechanism
Viction’s PoSV consensus combines security and scalability, incentivizing active participation from token holders and ensuring an equitable validation process.
* **Double Validation:** This feature enhances security by requiring each block to be validated by two independent masternodes, reducing the risk of forks and other attacks.
* **Fair Voting Mechanism:** All Viction token holders have the power to vote for masternodes, supporting a community-driven governance structure that aligns with Viction’s decentralized mission.
## Security and Reliability
Viction incorporates advanced security measures, including slashing and bailout options, to maintain network reliability and incentivize responsible behavior among validators.
* **Randomization for Security:** Randomized validator selection further secures the network by preventing collusion and increasing resilience to targeted attacks.
* **Validator Slashing and Bailout:** Misbehaving validators face slashing penalties, while a credit system allows recovery from unexpected downtime, promoting stability across the ecosystem.
## Token Economy
The native **VIC** token powers Viction’s economy, supporting staking rewards, governance, and ecosystem incentives.
* **Staking and Rewards:** Validators and delegators receive rewards for participating in block production and governance, encouraging ongoing involvement.
* **Governance Participation:** VIC token holders can delegate their stake to preferred masternode candidates, helping shape the future of the Viction network.
> [card] [Viction Documentation](https://docs.viction.xyz/)
>
> Explore the complete documentation for Viction, covering consensus mechanisms, security features, and developer resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Access transaction logs and other activities on Viction, providing transparency into the chain’s operational data.
> [card] [Blocks](./raw/blocks)
>
> Information on block production and finality, demonstrating Viction's capacity for high-throughput operations.
> [card] [Transactions](./raw/transactions)
>
> Transaction data showcasing Viction’s zero-gas approach, enabling low-cost interactions across applications.
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction data, facilitating insights into Viction’s app chain interactions and economic activity.
# viction.blocks
Source: https://docs.dune.com/data-catalog/evm/viction/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Viction.
## Table description
The `viction.blocks` table contains information about blocks in the viction blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM viction.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM viction.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM viction.blocks
GROUP BY 1
LIMIT 10`
# viction.creation_traces
Source: https://docs.dune.com/data-catalog/evm/viction/raw/creation-traces
Contract deployment records on Viction — deployer address, factory context, and deployed bytecode.
## Table Description
The `viction.creation_traces` table contains information about the creation of smart contracts on the viction blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the viction blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the viction blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM viction.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM viction.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM viction.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# viction.logs
Source: https://docs.dune.com/data-catalog/evm/viction/raw/logs
Smart contract event logs on Viction — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `viction.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/viction/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM viction.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM viction.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM viction.logs
WHERE evt_block_number = 1000000`
# viction.traces
Source: https://docs.dune.com/data-catalog/evm/viction/raw/traces
Internal transaction traces on Viction — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `viction.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/viction/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM viction.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# viction.transactions
Source: https://docs.dune.com/data-catalog/evm/viction/raw/transactions
Every transaction on Viction — from, to, value, gas, calldata, and receipt status.
## Table Description
The `viction.transactions` table contains information about all transactions on the viction blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the viction blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/viction/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=viction\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM viction.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM viction.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM viction.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on worldchain
Source: https://docs.dune.com/data-catalog/evm/worldchain/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on World Chain — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for worldchain transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on worldchain.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=worldchain](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=worldchain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on worldchain
Source: https://docs.dune.com/data-catalog/evm/worldchain/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on worldchain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for worldchain transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on worldchain.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=worldchain](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=worldchain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on worldchain
Source: https://docs.dune.com/data-catalog/evm/worldchain/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on worldchain.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for worldchain transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on worldchain.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=worldchain](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=worldchain)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=worldchain\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# World Chain Call Tables
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the World Chain network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# worldchain.contracts
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/contracts
Verified contract registry on World Chain — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the worldchain blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# worldchain.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/logs-decoded
ABI-decoded event logs on World Chain — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from worldchain transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/worldchain/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on worldchain?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for worldchain on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=logs_decoded)
# World Chain Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/overview
Simplifying World Chain smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/worldchain/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/worldchain/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/worldchain/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# worldchain.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/worldchain/decoded/traces-decoded
ABI-decoded function calls on World Chain — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from worldchain transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/worldchain/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=traces_decoded)
# World Chain Overview
Source: https://docs.dune.com/data-catalog/evm/worldchain/overview
World Chain data on Dune
World Chain is a blockchain for humans, designed to empower developers with unique primitives and enable never-before-seen applications. By offering free gas fees to all verified humans, native mobile distribution through mini apps, and sybil resistance via World ID, World Chain is set to revolutionize the blockchain landscape for a global audience.
**Human-Centric Primitives:**
World Chain provides a set of powerful tools for developers:
* **Free Gas for Verified Humans:** Eliminating transaction fees for verified users.
* **Native Mobile Mini Apps:** Seamlessly distribute mini apps to all World App users, unlocking new opportunities for global reach and engagement.
* **Sybil Resistance:** Built-in World ID technology ensures that developers can trust the unique identity of their users, reducing fraud and increasing transparency.
**Scalable and Decentralized:**
World Chain is **built on the Superchain**, a horizontally scalable network of OP Chains that share security, governance, and a communication layer. By leveraging the OP Stack, World Chain benefits from decentralized scalability while maintaining ease of integration for developers.
**Mini Apps:**
World Chain supports mini apps, allowing third-party developers to create native-like applications within World App. This opens the door to global payments, sign-in with Ethereum, and other crypto transactions. Developers can access a rapidly growing user network and monetize via WLD and USDC through mini apps.
**Worldcoin and World ID:**
* **Worldcoin Token (WLD):** The first token to be freely distributed globally for both utility and governance, rewarding users just for being verified as unique individuals.
* **World ID:** A privacy-preserving digital identity that proves you are a real and unique person, forming the foundation for sybil-resistant applications and secure digital interactions.
> [card] [World Chain documentation](https://world-id-docs-git-world-chain-docs-main-worldcoin.vercel.app/world-chain)
>
> Explore comprehensive documentation of World Chain, detailing its architecture, protocol, and resources for developers.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Detailed event logs from smart contracts, providing insights into interactions within the World Chain network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks, illustrating the operational capacity and activity levels on World Chain.
> [card] [Transactions](./raw/transactions)
>
> Extensive transaction data, showcasing the efficiency and execution of operations on World Chain.
> [card] [decoded](./decoded/overview)
>
> Enhanced transaction data decoded for better analysis and understanding of contract executions.
# worldchain.blocks
Source: https://docs.dune.com/data-catalog/evm/worldchain/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for World Chain.
## Table description
The `worldchain.blocks` table contains information about blocks in the worldchain blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM worldchain.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM worldchain.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM worldchain.blocks
GROUP BY 1
LIMIT 10`
# worldchain.creation_traces
Source: https://docs.dune.com/data-catalog/evm/worldchain/raw/creation-traces
Contract deployment records on World Chain — deployer address, factory context, and deployed bytecode.
## Table Description
The `worldchain.creation_traces` table contains information about the creation of smart contracts on the worldchain blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the worldchain blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the worldchain blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM worldchain.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM worldchain.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM worldchain.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# worldchain.logs
Source: https://docs.dune.com/data-catalog/evm/worldchain/raw/logs
Smart contract event logs on World Chain — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `worldchain.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/worldchain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM worldchain.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM worldchain.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM worldchain.logs
WHERE evt_block_number = 1000000`
# worldchain.traces
Source: https://docs.dune.com/data-catalog/evm/worldchain/raw/traces
Internal transaction traces on World Chain — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `worldchain.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/worldchain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM worldchain.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# worldchain.transactions
Source: https://docs.dune.com/data-catalog/evm/worldchain/raw/transactions
Every transaction on World Chain — from, to, value, gas, calldata, and receipt status.
## Table Description
The `worldchain.transactions` table contains information about all transactions on the worldchain blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the worldchain blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/worldchain/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=worldchain\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM worldchain.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM worldchain.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM worldchain.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex.trades on xlayer
Source: https://docs.dune.com/data-catalog/evm/xlayer/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on xlayer.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for xlayer transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on xlayer.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=xlayer](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=xlayer)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=xlayer\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=xlayer\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# X Layer Call Tables
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the X Layer network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# xlayer.contracts
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/contracts
Verified contract registry on X Layer — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the xlayer blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# xlayer.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/logs-decoded
ABI-decoded event logs on X Layer — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from xlayer transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/xlayer/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on xlayer?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for xlayer on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=logs_decoded)
# X Layer Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/overview
Simplifying X Layer smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/xlayer/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/xlayer/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/xlayer/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# xlayer.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/xlayer/decoded/traces-decoded
ABI-decoded function calls on X Layer — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from xlayer transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/xlayer/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=traces_decoded)
# X Layer Overview
Source: https://docs.dune.com/data-catalog/evm/xlayer/overview
X Layer data on Dune
## What is X Layer?
X Layer is an Ethereum Layer 2 (L2) network, built by OKX on an enhanced Optimism Stack, designed to provide developers with a superior environment for scaling applications. It uses an optimistic rollup architecture where transactions are considered valid by default, with a 7-day challenge period for fraud proofs.
## Key Features and Advantages
### Full EVM Equivalence
* Deploy existing Ethereum applications without any code modifications
* Complete compatibility with standard Ethereum development tools
* Seamless migration from Ethereum mainnet
### Exceptional Performance
* Support for up to 5,000 transactions per second (TPS)
* Negligible gas fees for cost-effective transactions
* 1-second block times for fast execution
* Immediate transaction finality on L2 for most operations
### Battle-Tested Security
* Leverages robust optimistic rollup architecture
* Inherits security guarantees of Ethereum
* Cryptographic fraud proofs when needed
* All L2 data published to L1, ensuring trustless and censorship-resistant operation
### Enterprise-Grade Reliability
* Conductor high-availability cluster ensures sequencer redundancy
* 99.9% uptime for production-ready dApps
* Continuous synchronization between L2 and L1
### Network Specifications
* **Technology Stack**: Enhanced OP Stack
* **Gas Token**: OKB
* **Network Type**: EVM-compatible Layer 2
* **Base Chain**: Ethereum
* **Consensus**: Optimistic Rollup with 7-day challenge period
### Architecture Components
* **Virtual Machine**: EVM-equivalent
* **Sequencer**: Trusted (op-node in sequencer mode with op-geth via Engine API)
* **Bridge Service**: Monitors and syncs L1/L2 contract events
* **AggLayer Integration**: ZK proof generation for cross-chain settlement
> [card] [X Layer Documentation](https://web3.okx.com/xlayer/docs/developer/build-on-xlayer/about-xlayer)
>
> Official documentation for developers building on X Layer
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Insights into smart contract interactions through event logs
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed on X Layer
> [card] [Transactions](./raw/transactions)
>
> Detailed data on transactions
> [card] [Decoded](./decoded/overview)
>
> Decoded transaction information for enhanced analysis
# xlayer.blocks
Source: https://docs.dune.com/data-catalog/evm/xlayer/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for X Layer.
## Table description
The `xlayer.blocks` table contains information about blocks in the xlayer blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM xlayer.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM xlayer.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM xlayer.blocks
GROUP BY 1
LIMIT 10`
# xlayer.creation_traces
Source: https://docs.dune.com/data-catalog/evm/xlayer/raw/creation-traces
Contract deployment records on X Layer — deployer address, factory context, and deployed bytecode.
## Table Description
The `xlayer.creation_traces` table contains information about the creation of smart contracts on the xlayer blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the xlayer blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the xlayer blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM xlayer.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM xlayer.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM xlayer.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# xlayer.logs
Source: https://docs.dune.com/data-catalog/evm/xlayer/raw/logs
Smart contract event logs on X Layer — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `xlayer.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/xlayer/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM xlayer.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM xlayer.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM xlayer.logs
WHERE evt_block_number = 1000000`
# xlayer.traces
Source: https://docs.dune.com/data-catalog/evm/xlayer/raw/traces
Internal transaction traces on X Layer — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `xlayer.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/xlayer/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM xlayer.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# xlayer.transactions
Source: https://docs.dune.com/data-catalog/evm/xlayer/raw/transactions
Every transaction on X Layer — from, to, value, gas, calldata, and receipt status.
## Table Description
The `xlayer.transactions` table contains information about all transactions on the xlayer blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the xlayer blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/xlayer/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=xlayer\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM xlayer.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM xlayer.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM xlayer.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on zksync
Source: https://docs.dune.com/data-catalog/evm/zksync/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on zkSync — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for zksync transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zksync.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zksync](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zksync)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on zksync
Source: https://docs.dune.com/data-catalog/evm/zksync/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on zksync.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zksync transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zksync.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zksync](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zksync)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on zksync
Source: https://docs.dune.com/data-catalog/evm/zksync/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on zksync.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zksync transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zksync.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zksync](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zksync)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zksync\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# zkSync Call Tables
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the zkSync network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# zksync.contracts
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/contracts
Verified contract registry on zkSync — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the zksync blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# zksync.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/logs-decoded
ABI-decoded event logs on zkSync — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from zksync transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/zksync/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on zksync?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for zksync on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=logs_decoded)
# zkSync Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/overview
Simplifying zkSync smart contract analysis through human-readable tables.
> [!WARNING]
>
> Due to bugs in the zkSync client, some contract creation traces are missing, and data in the code field is incomplete for certain blocks. Consequently, we cannot support factory and bytecode matching for this chain. Once the bugs are addressed, we will work to restore this functionality. We apologize for the inconvenience.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/zksync/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/zksync/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/zksync/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# zksync.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/zksync/decoded/traces-decoded
ABI-decoded function calls on zkSync — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from zksync transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/zksync/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=traces_decoded)
# zkSync Overview
Source: https://docs.dune.com/data-catalog/evm/zksync/overview
zkSync data on Dune
zkSync is a Layer 2 scaling solution for Ethereum that utilizes zk-Rollups technology to offer low-cost, high-speed transactions with strong security guarantees. By employing zero-knowledge proofs, zkSync ensures data availability and correctness without compromising the underlying security of the Ethereum mainnet.
**Enhanced Scalability and Efficiency:**
zkSync enhances Ethereum's scalability by aggregating multiple transactions into a single rollup block. This process significantly reduces transaction costs and increases processing speed, making it ideal for high-throughput applications.
**Robust Security and Ethereum Compatibility:**
zkSync maintains a high level of security through its use of zero-knowledge proofs, which verify the validity of transactions without revealing any underlying data. Furthermore, zkSync is fully compatible with Ethereum, allowing for seamless migration of existing dApps and smart contracts.
**Developer-Friendly Platform:**
zkSync provides a supportive environment for developers with comprehensive tooling and resources designed to facilitate the development and deployment of Ethereum-compatible applications on its Layer 2 platform.
> [card] [zkSync documentation](https://docs.zksync.io)
>
> Access the official documentation for zkSync, offering extensive information on its technology, platform capabilities, and development resources.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, providing insights into interactions and activities on the zkSync network.
> [card] [Blocks](./raw/blocks)
>
> Information on blocks processed using zkSync’s technology, reflecting the network's capacity for high transaction throughput.
> [card] [Transactions](./raw/transactions)
>
> Detailed transaction data, showcasing the operational efficiency and cost-effectiveness of zkSync’s rollup solution.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and better understanding of smart contract executions on zkSync.
# zksync.blocks
Source: https://docs.dune.com/data-catalog/evm/zksync/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for zkSync.
## Table description
The `zksync.blocks` table contains information about blocks in the zksync blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM zksync.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM zksync.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM zksync.blocks
GROUP BY 1
LIMIT 10`
# zksync.creation_traces
Source: https://docs.dune.com/data-catalog/evm/zksync/raw/creation-traces
Contract deployment records on zkSync — deployer address, factory context, and deployed bytecode.
## Table Description
The `zksync.creation_traces` table contains information about the creation of smart contracts on the zksync blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the zksync blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the zksync blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM zksync.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM zksync.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM zksync.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# zksync.logs
Source: https://docs.dune.com/data-catalog/evm/zksync/raw/logs
Smart contract event logs on zkSync — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `zksync.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zksync/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM zksync.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM zksync.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM zksync.logs
WHERE evt_block_number = 1000000`
# zksync.traces
Source: https://docs.dune.com/data-catalog/evm/zksync/raw/traces
Internal transaction traces on zkSync — cross-contract calls, delegate calls, and value transfers with full call stack context.
> [!WARNING]
>
> You may see duplicate records in the `traces` table for the zkSync chain. This is not a bug, but a result of trace calls appearing twice within the same transaction. These consecutive calls—an outer and an inner call—are identical except for their gas values. They share the same `from`, `to`, `input`, `output`, `success`, and `value` fields.
## Table Description
The `zksync.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zksync/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM zksync.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# zksync.transactions
Source: https://docs.dune.com/data-catalog/evm/zksync/raw/transactions
Every transaction on zkSync — from, to, value, gas, calldata, and receipt status.
## Table Description
The `zksync.transactions` table contains information about all transactions on the zksync blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the zksync blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zksync/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zksync\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM zksync.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM zksync.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM zksync.transactions
ORDER BY gas_price DESC
LIMIT 10`
# dex_aggregator.trades on zora
Source: https://docs.dune.com/data-catalog/evm/zora/curated-data/dex/dex-aggregator-trades
DEX aggregator swaps on Zora — trades routed through aggregators like 1inch, Paraswap, and CoW Swap with pricing and routing details.
> [!NOTE]
>
> This table is a cross-chain table but can be filtered for zora transactions.
## Table Description
The `dex_aggregator.trades` table captures high-level data on trades executed via decentralized exchange (DEX) aggregators. These aggregators aggregate liquidity from multiple DEXs to provide users with the best possible trade execution. Unlike the `dex.trades` table, which records each intermediary step of a trade, `dex_aggregator.trades` condenses the trade data to reflect the user's intended trade, presenting it as a single entry.
## Functional Overview
Users can expect the `dex_aggregator.trades` table to provide a high-level view of DEX trades facilitated by aggregators. This table simplifies trade records by showing a single entry for trades that may involve multiple DEXs and liquidity pools.
For instance, a user might initiate a trade to swap USDC for PEPE via a DEX aggregator. The aggregator might route this trade through several liquidity pools such as WETH-USDC and WETH-PEPE, but `dex_aggregator.trades` will record it as a single USDC → PEPE trade.
Complimentary to `dex_aggregator.trades` is the `dex.trades` table, where detailed trade executions are recorded. This table captures the granular steps of each trade, including interactions with different liquidity pools. The volume routed through aggregators is also recorded in the `dex.trades` table. One row in `dex_aggregator.trades` corresponds to one or more rows in `dex.trades`, providing a comprehensive view of the detailed execution path that aggregated trades take.
## Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zora.
[https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zora](https://dune.com/embeds/3762297/6327689?blockchain_t6c1ea=zora)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | Aggregator project name (e.g., 1inch, paraswap) |
| `version` | `varchar` | Version of the aggregator protocol |
| `block_date` | `timestamp` | Date of the block |
| `block_month` | `timestamp` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `trace_address` | `array(bigint)` | Path of the trace within the call tree |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex_aggregator)
# dex.trades on zora
Source: https://docs.dune.com/data-catalog/evm/zora/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on zora.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zora transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zora.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zora](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=zora)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# NFT.trades on zora
Source: https://docs.dune.com/data-catalog/evm/zora/curated-data/nft/nft-trades
The `nft.trades` table captures detailed data on NFT marketplaces, recording all trade events across various protocols on zora.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for zora transactions.
## Table Description
The `nft.trades` table on Dune Analytics is central to capturing and analyzing Non-Fungible Token (NFT) transactions across various marketplaces. It is a pivotal resource for dissecting the intricacies of NFT trade execution, market behavior, and collector activity within the NFT space.
## Usage
The `nft.trades` table serves as an essential tool for delving into the NFT market's complexities. It offers a detailed snapshot of each NFT transaction, encompassing data points such as sale price, transaction timestamp, buyer and seller addresses, and the specific NFT assets involved. This table allows analysts to explore trends in NFT valuation, trading volumes, and marketplace dynamics, providing insights into the evolving landscape of digital collectibles and art.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on zora.
[https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zora](https://dune.com/embeds/3796770/6383301?blockchain_t6c1ea=zora)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, polygon) |
| `project` | `varchar` | NFT marketplace name (e.g., opensea, blur) |
| `version` | `varchar` | Version of the marketplace protocol |
| `block_date` | `date` | Date of the block (UTC) |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `token_id` | `uint256` | Token ID of the NFT traded |
| `collection` | `varchar` | Name of the NFT collection |
| `amount_usd` | `double` | Trade value in USD |
| `token_standard` | `varchar` | Token standard (ERC-721, ERC-1155) |
| `trade_type` | `varchar` | Type of trade (buy, sell, offer accepted) |
| `number_of_items` | `uint256` | Number of items in the trade |
| `trade_category` | `varchar` | Category of the trade |
| `evt_type` | `varchar` | Event type |
| `seller` | `varbinary` | Address of the seller |
| `buyer` | `varbinary` | Address of the buyer |
| `amount_original` | `double` | Trade amount in the payment currency |
| `amount_raw` | `uint256` | Raw trade amount (no decimal adjustment) |
| `currency_symbol` | `varchar` | Symbol of the payment currency |
| `currency_contract` | `varbinary` | Contract address of the payment currency |
| `nft_contract_address` | `varbinary` | Contract address of the NFT collection |
| `project_contract_address` | `varbinary` | Address of the marketplace contract |
| `aggregator_name` | `varchar` | Name of the aggregator (if trade was via aggregator) |
| `aggregator_address` | `varbinary` | Address of the aggregator contract |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `platform_fee_amount_raw` | `uint256` | Raw platform fee amount |
| `platform_fee_amount` | `double` | Decimal-adjusted platform fee amount |
| `platform_fee_amount_usd` | `double` | Platform fee in USD |
| `platform_fee_percentage` | `double` | Platform fee as a percentage of the trade |
| `royalty_fee_receive_address` | `varbinary` | Address receiving the royalty fee |
| `royalty_fee_currency_symbol` | `varchar` | Symbol of the royalty fee currency |
| `royalty_fee_amount_raw` | `uint256` | Raw royalty fee amount |
| `royalty_fee_amount` | `double` | Decimal-adjusted royalty fee amount |
| `royalty_fee_amount_usd` | `double` | Royalty fee in USD |
| `royalty_fee_percentage` | `double` | Royalty fee as a percentage of the trade |
| `unique_trade_id` | `varchar` | Unique identifier for the trade |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=zora\&table_name_t6c1ea=trades\&table_schema_t6c1ea=nft)
# Zora Call Tables
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Zora network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# zora.contracts
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/contracts
Verified contract registry on Zora — contract name, namespace, ABI, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the zora blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=contracts)
# Event Logs
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/event-logs
Smart Contracts emit event logs when certain predefined actions are completed.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# zora.logs_decoded
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/logs-decoded
ABI-decoded event logs on Zora — human-readable event names and parsed parameters from verified contracts.
\## Table Description
The \`logs_decoded\` table contains decoded logs from zora transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/zora/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on zora?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for zora on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=logs_decoded)
# Zora Decoded Overview
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/overview
Simplifying Zora smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/zora/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/zora/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/zora/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# zora.traces_decoded
Source: https://docs.dune.com/data-catalog/evm/zora/decoded/traces-decoded
ABI-decoded function calls on Zora — parsed function names, inputs, and outputs from verified contracts.
## Table Description
The `traces_decoded` table contains decoded traces from zora transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/zora/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=traces_decoded)
# Zora Overview
Source: https://docs.dune.com/data-catalog/evm/zora/overview
Zora data on Dune
> [!WARNING]
>
> Starting from the 8th of October 2025 Dune is not live ingesting and indexing Zora data. The historical data of the chain will remain available to be used.
Zora is a blockchain platform designed specifically to support digital creators and the broader creative economy. Leveraging the power of decentralized technology, Zora Chain facilitates the minting, buying, and trading of digital assets, including NFTs, with enhanced scalability and reduced transaction costs. Zora is based on the OP stack and uses Ether as its native currency.
**Creative Economy Focused:**
Zora Chain is built to cater to the needs of digital artists, musicians, and other creators, providing them with a blockchain infrastructure that supports direct and fair monetization of their work.
**Low-Cost Transactions:**
By optimizing transaction efficiency, Zora Chain minimizes the costs associated with minting and trading digital assets, making it more accessible for creators and collectors alike.
**Scalability and Performance:**
Designed for high throughput, Zora Chain ensures that the growing demand for NFTs and digital goods doesn't compromise performance, enabling a seamless user experience.
> [card] [Zora documentation](https://docs.zora.co)
>
> Explore comprehensive documentation for Zora Chain, including detailed guides on its architecture, features, and how creators can leverage the platform for their digital assets.
## Data Catalog
> [card] [Logs](./raw/logs)
>
> Event logs from smart contracts, offering insights into interactions and activities within the Zora Chain network.
> [card] [Blocks](./raw/blocks)
>
> Data on blocks processed on Zora Chain, reflects the network's capacity for handling large volumes of transactions efficiently.
> [card] [Transactions](./raw/transactions)
>
> Comprehensive transaction data, showcasing the operational efficiency and reduced costs achieved through Zora Chain’s optimized blockchain solutions.
> [card] [decoded](./decoded/overview)
>
> Decoded transaction data for easier analysis and a better understanding of smart contract executions on Zora.
# zora.blocks
Source: https://docs.dune.com/data-catalog/evm/zora/raw/blocks
Block headers, timestamps, gas limits, base fees, and validator/miner data for Zora.
## Table description
The `zora.blocks` table contains information about blocks in the zora blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM zora.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM zora.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM zora.blocks
GROUP BY 1
LIMIT 10`
# zora.creation_traces
Source: https://docs.dune.com/data-catalog/evm/zora/raw/creation-traces
Contract deployment records on Zora — deployer address, factory context, and deployed bytecode.
## Table Description
The `zora.creation_traces` table contains information about the creation of smart contracts on the zora blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the zora blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the zora blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM zora.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM zora.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM zora.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# zora.logs
Source: https://docs.dune.com/data-catalog/evm/zora/raw/logs
Smart contract event logs on Zora — indexed topics and data fields from token transfers, swaps, and protocol actions.
## Table Description
The `zora.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zora/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM zora.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM zora.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM zora.logs
WHERE evt_block_number = 1000000`
# zora.traces
Source: https://docs.dune.com/data-catalog/evm/zora/raw/traces
Internal transaction traces on Zora — cross-contract calls, delegate calls, and value transfers with full call stack context.
## Table Description
The `zora.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zora/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM zora.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# zora.transactions
Source: https://docs.dune.com/data-catalog/evm/zora/raw/transactions
Every transaction on Zora — from, to, value, gas, calldata, and receipt status.
## Table Description
The `zora.transactions` table contains information about all transactions on the zora blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the zora blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/zora/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=zora\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM zora.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM zora.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM zora.transactions
ORDER BY gas_price DESC
LIMIT 10`
# flow.cadence_blocks
Source: https://docs.dune.com/data-catalog/flow/cadence/blocks
Flow Cadence block data — block details specific to Flow's Cadence execution environment.
## Table Description
The `flow.cadence_blocks` table contains block-level data from the Flow Cadence blockchain including block headers, timestamps, and network fee information.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the block |
| timestamp | timestamp | Timestamp when the block was created |
| block_hash | string | Unique hash identifier for the block |
| block_height | bigint | The block number/height |
| parent_block_hash | string | Hash of the parent block |
| slot | bigint | Slot number |
| difficulty | decimal(38,9) | Block difficulty |
| total_difficulty | decimal(38,9) | Cumulative difficulty |
| network_fee_used | decimal(38,9) | Network fee consumed in this block |
| network_fee_limit | decimal(38,9) | Maximum network fee limit for the block |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_blocks)
# flow.cadence_contracts
Source: https://docs.dune.com/data-catalog/flow/cadence/contracts
Flow Cadence contract deployments — contract code and account bindings.
## Table Description
The `flow.cadence_contracts` table contains Cadence smart contract deployment data on the Flow blockchain including contract code and metadata.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the contract deployment |
| timestamp | timestamp | Timestamp when the contract was deployed |
| transaction_hash | string | Hash of the deployment transaction |
| contract_address | string | Address where the contract is deployed |
| valid_from | long | Block height from which the contract is valid |
| code | binary | The contract bytecode |
| name | string | Name of the contract |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_contracts)
# flow.cadence_events
Source: https://docs.dune.com/data-catalog/flow/cadence/events
Flow Cadence events — structured events emitted by Cadence smart contracts.
## Table Description
The `flow.cadence_events` table contains event logs emitted by Cadence smart contracts on the Flow blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the event |
| timestamp | timestamp | Timestamp when the event was emitted |
| block_height | bigint | The block number containing this event |
| block_hash | string | Hash of the block containing this event |
| transaction_hash | string | Hash of the transaction that emitted this event |
| log_index | bigint | Index of the event within the transaction |
| topics | array\ | Array of indexed event topics |
| data | string | Event data payload |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_events)
# flow.cadence_native_token_balances
Source: https://docs.dune.com/data-catalog/flow/cadence/native-token-balances
Flow native FLOW token balances — account holdings over time.
## Table Description
The `flow.cadence_native_token_balances` table contains FLOW native token balance snapshots for addresses on the Flow Cadence blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the balance snapshot |
| timestamp | timestamp | Timestamp of the balance snapshot |
| address | string | Address holding the FLOW tokens |
| amount | decimal(38,9) | Balance amount in FLOW |
| transaction_hash | string | Hash of the transaction that affected this balance |
| block_height | bigint | Block height at the time of the snapshot |
| block_hash | string | Hash of the block at the time of the snapshot |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_native_token_balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_native_token_balances)
# flow.cadence_participations
Source: https://docs.dune.com/data-catalog/flow/cadence/participations
Flow network participations — staking, delegation, and epoch participation records.
## Table Description
The `flow.cadence_participations` table contains staking and validator participation data on the Flow Cadence blockchain. This table tracks delegator participations in the Flow staking system.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the participation record |
| timestamp | timestamp | Timestamp of the participation event |
| delegator_id | string | Unique identifier for the delegator |
| node_id | string | Identifier of the validator node |
| amount | decimal | Amount of FLOW tokens staked |
| action | string | Type of participation action (stake, unstake, withdraw) |
| transaction_hash | string | Hash of the transaction |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_participations](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_participations)
# flow.cadence_token_collections
Source: https://docs.dune.com/data-catalog/flow/cadence/token-collections
Flow Cadence NFT collections — collection metadata and token types.
## Table Description
The `flow.cadence_token_collections` table contains token collection metadata for NFT and fungible token contracts on the Flow Cadence blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the collection record |
| timestamp | timestamp | Timestamp when the collection was created/updated |
| transaction_hash | string | Hash of the transaction that created/updated the collection |
| contract_address | string | Address of the token contract |
| token_id | string | Identifier for the token collection |
| symbol | string | Symbol of the token collection |
| name | string | Name of the token collection |
| description | string | Description of the collection |
| url | string | URL to the collection metadata |
| decimals | decimal(38,9) | Number of decimals for fungible tokens |
| total_supply | decimal(38,9) | Total supply of tokens in the collection |
| category | string | Category of the token (NFT, FT, etc.) |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_token_collections](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_token_collections)
# flow.cadence_token_transfers
Source: https://docs.dune.com/data-catalog/flow/cadence/token-transfers
Flow Cadence token transfers — fungible and NFT movement events.
## Table Description
The `flow.cadence_token_transfers` table contains token transfer events on the Flow Cadence blockchain including NFT and fungible token transfers.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the transfer |
| timestamp | timestamp | Timestamp when the transfer occurred |
| block_height | bigint | The block number containing this transfer |
| block_hash | string | Hash of the block containing this transfer |
| transaction_hash | string | Hash of the transaction containing this transfer |
| contract_address | string | Address of the token contract |
| token_id | string | Identifier of the token being transferred |
| from | string | Address of the sender |
| to | string | Address of the recipient |
| amount | decimal(38,9) | Amount of tokens transferred |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_token_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_token_transfers)
# flow.cadence_tokens
Source: https://docs.dune.com/data-catalog/flow/cadence/tokens
Flow Cadence token metadata — fungible and non-fungible token type definitions.
## Table Description
The `flow.cadence_tokens` table contains token metadata for NFTs and fungible tokens on the Flow Cadence blockchain.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the token record |
| timestamp | timestamp | Timestamp when the token was created/updated |
| token_id | string | Unique identifier for the token |
| contract_address | string | Address of the token contract |
| name | string | Name of the token |
| description | string | Description of the token |
| content_url | string | URL to the token content/media |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_tokens](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_tokens)
# flow.cadence_transaction_receipts
Source: https://docs.dune.com/data-catalog/flow/cadence/transaction-receipts
Flow Cadence transaction receipts — execution results, events, and status.
## Table Description
The `flow.cadence_transaction_receipts` table contains transaction receipt data from the Flow Cadence blockchain including execution status and fee information.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the transaction |
| timestamp | timestamp | Timestamp when the transaction was executed |
| block_height | bigint | The block number containing this transaction |
| block_hash | string | Hash of the block containing this transaction |
| transaction_hash | string | Unique hash identifier for the transaction |
| success | boolean | Whether the transaction executed successfully |
| status_message | string | Status message or error description |
| network_fee_used | decimal(38,9) | Actual network fee consumed |
| cost_per_network_fee | decimal(38,9) | Cost per unit of network fee |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_transaction_receipts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_transaction_receipts)
# flow.cadence_transactions
Source: https://docs.dune.com/data-catalog/flow/cadence/transactions
Flow Cadence transactions — script and transaction interactions with the Cadence runtime.
## Table Description
The `flow.cadence_transactions` table contains transaction data from the Flow Cadence blockchain including sender, receiver, and transaction payload information.
## Column Descriptions
| Column | Type | Description |
| - | - | - |
| block_date | date | The date of the transaction |
| timestamp | timestamp | Timestamp when the transaction was executed |
| block_height | bigint | The block number containing this transaction |
| block_hash | string | Hash of the block containing this transaction |
| transaction_hash | string | Unique hash identifier for the transaction |
| transaction_index | bigint | Index of the transaction within the block |
| from | string | Address of the transaction sender |
| to | string | Address of the transaction recipient |
| sequence_number | bigint | Sequence number of the transaction |
| data | string | Transaction payload data |
| network_fee_limit | decimal(38,9) | Maximum network fee for this transaction |
| max_network_fee_unit_price | decimal(38,9) | Maximum price per unit of network fee |
| chain_specific | string | Chain-specific metadata in JSON format |
| \_updated_at | timestamp | Timestamp when the record was last updated |
| \_ingested_at | timestamp | Timestamp when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=cadence_transactions)
# dex.trades on flow
Source: https://docs.dune.com/data-catalog/flow/curated-data/dex/dex-trades
The `dex.trades` table captures detailed data on decentralized exchange (DEX) trades, recording all raw trade events across various protocols on flow.
> [!NOTE]
>
> This is a cross-chain table but can be filtered for flow transactions.
## Table Description
The `dex.trades` table captures detailed data on trades executed via decentralized exchanges (DEXs). This table captures all raw trade events that happen across all liqudity pools. It provides a comprehensive view of the entire trade execution process, detailing the specific paths and liquidity sources utilized.
## Functional Overview
The `dex.trades` table provides an in-depth view of trades on decentralized exchanges like Uniswap or Curve. This table includes entries for each segment of a trade that passes through different liquidity pools, as well as single-step trades. For example, a user may initiate a trade to swap USDC for PEPE. If this trade is executed through multiple liquidity pools, such as USDC-WETH and WETH-PEPE, the `dex.trades` table will record each segment of the trade as a separate entry. Conversely, a single-step trade, such as directly swapping USDC for ETH, will be recorded as a single entry.
This detailed approach allows for granular analysis of trade execution paths, enabling users to:
- **Analyze Liquidity Sources:** Understand which liquidity pools are used and how they interact in both single-step and multi-step trades.
- **Track Trade Execution Paths:** Follow the exact route a trade takes across different DEXs and liquidity pools
- **Assess Slippage and Execution Quality:** Evaluate the impact of each step on the overall trade execution, including slippage and price changes.
- **Monitor Market Dynamics:** Gain insights into the behavior and dynamics of different liquidity pools and DEXs over time.
## Table Coverage
The following table shows which projects and versions of those projects are covered in the `dex.trades` table on flow.
[https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=flow](https://dune.com/embeds/3740060/6289929?blockchain_t6c1ea=flow)
## Column Descriptions
| Column | Type | Description |
| `blockchain` | `varchar` | Blockchain network (e.g., ethereum, arbitrum) |
| `project` | `varchar` | DEX project name (e.g., uniswap, curve) |
| `version` | `varchar` | Version of the DEX protocol |
| `block_month` | `date` | Month of the block (for partitioning) |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trade |
| `block_number` | `bigint` | Block number containing this trade |
| `token_bought_symbol` | `varchar` | Symbol of the token bought |
| `token_sold_symbol` | `varchar` | Symbol of the token sold |
| `token_pair` | `varchar` | Token pair (e.g., WETH-USDC) |
| `token_bought_amount` | `double` | Decimal-adjusted amount of the token bought |
| `token_sold_amount` | `double` | Decimal-adjusted amount of the token sold |
| `token_bought_amount_raw` | `uint256` | Raw amount of the token bought (no decimal adjustment) |
| `token_sold_amount_raw` | `uint256` | Raw amount of the token sold (no decimal adjustment) |
| `amount_usd` | `double` | Trade value in USD |
| `token_bought_address` | `varbinary` | Contract address of the token bought |
| `token_sold_address` | `varbinary` | Contract address of the token sold |
| `taker` | `varbinary` | Address of the trade taker |
| `maker` | `varbinary` | Address of the trade maker (liquidity provider) |
| `project_contract_address` | `varbinary` | Address of the DEX contract (pool/router) |
| `tx_hash` | `varbinary` | Hash of the transaction containing this trade |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `evt_index` | `bigint` | Index of the event log within the transaction |
## Table Sample
[https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flow\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex](https://dune.com/embeds/3793075/6376888?param_col_t6c1ea=blockchain\¶m_value_t6c1ea=flow\&table_name_t6c1ea=trades\&table_schema_t6c1ea=dex)
# Flow EVM Call Tables
Source: https://docs.dune.com/data-catalog/flow/decoded/call-tables
On Dune, we parse all message calls and transactions made to smart contracts on the Flow EVM network in their own tables.
## Overview
On Dune, we parse all message calls and transactions made to smart contracts in their own tables. This allows us to isolate the logic of a specific smart contract and analyze how it interacts with other smart contracts.
The data is stored in the format:
`[projectname_blockchain].[contractName]_call_[functionName]`
This allows us to analyze how a specific function is used in a smart contract, and how often it is called, as well as how it interacts with other smart contracts.
Call tables always originate from the `traces` table, which contains all the transactions and message calls on the Ethereum network. We parse the `data` field of the `traces` table to decode the function call and parameters.
## Decoding
When a transaction is sent to a smart contract on the Ethereum network, it contains a `data` field. This `data` field is the encoded function call and parameters. Dune decodes this data and stores it in the corresponding table.
For example, when a transaction is sent to the [Uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) contract on the Ethereum network, Dune will decode the `data` field and store it in the table:
`uniswap_v3_ethereum.Factory_call_createPool`
[https://dune.com/embeds/3456944/5809273](https://dune.com/embeds/3456944/5809273)
## Multiple Instances
For a contract where multiple instances exist, we will decode all calls to all instances of this smart contract into one table. If there are transactions calling the `swap` function of any instance of the [Uniswap v3 pair](https://etherscan.io/address/0x8f8ef111b67c04eb1641f5ff19ee54cda062f163#writeContract) contract, we will decode this data into the table `uniswap_v3_ethereum.Pair_call_swap`. The `pair` contract is a template contract and there are many instances of it, each with its own address. The column `contract_address` will indicate the address of the instance of the pair contract that was called.
[https://dune.com/embeds/3456960/5809303](https://dune.com/embeds/3456960/5809303)
## Common misconceptions
One thing to keep in mind here is that [web3.js](https://web3js.readthedocs.io), [web3.py](https://web3py.readthedocs.io/en/stable) and all other methods of (locally) calling a `pure`, `read`, or `constant` function do not broadcast or publish anything on the blockchain and are therefore not recorded in Dune.
However, if one of these functions is invoked by another smart contract in the context of a transaction, this will be broadcast on the chain and therefore accessible in Dune.
In short: **State data stored in the memory of a smart contract is not available on Dune!**
A good example of this is the function `decimals` of the [erc20 token contract](https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984#readContract) `Uni` which is a `constant` state variable that is able to be accessed through an automatically created "[getter function](https://docs.soliditylang.org/en/v0.7.4/contracts.html#getter-functions)". Should a smart contract invoke this function in the context of transaction, this message call will be recorded in the Dune table [`uniswap."UNI_call_decimals"`](https://dune.com/queries/741354).
This is in contrast to anyone calling this function locally using web3.py/web3.js or using the Etherscan frontend to access this state. These local calls are not recorded in Dune.
## Further Reading
> [card] [What is the difference between a transaction and a call?](https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call)
> [card] [Soliditylang.org documentation](https://docs.soliditylang.org/en/v0.8.13/contracts.html#function-visibility)
> [card] [How Calldata is Encoded](https://degatchi.com/articles/reading-raw-evm-calldata)
# flow.contracts
Source: https://docs.dune.com/data-catalog/flow/decoded/contracts
Verified contract registry on Flow — contract name, code, and deployment metadata.
## Table Description
This table contains information about the contracts Dune has decoded on the flow blockchain.
## Column Descriptions
| Column | Type | Description |
| `abi_id` | `varchar` | Unique identifier for the ABI |
| `abi` | `array(varchar)` | Contract ABI (Application Binary Interface) |
| `address` | `varbinary` | Contract address |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Deployed bytecode of the contract |
| `name` | `varchar` | Name of the contract |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `dynamic` | `boolean` | Whether the contract was dynamically detected |
| `base` | `boolean` | Whether this is the base contract submission |
| `factory` | `boolean` | Whether this contract is a factory contract |
| `detection_source` | `varchar` | How the contract was detected (manual, factory, etc.) |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=contracts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=contracts)
# flow.event_logs
Source: https://docs.dune.com/data-catalog/flow/decoded/event-logs
Smart contract event logs on Flow — indexed topics and data fields emitted during transaction execution.
## Overview
Smart contracts emit event logs when certain predefined actions are completed. The emitted event logs are stored on the blockchain and are publicly accessible. Event logs are an important tool for smart contract developers to communicate with the outside world, as well as for data analysts to keep track of what happens inside of a smart contract.
For example, the ERC20 standard defines the `Transfer` event, which is emitted every time a token transfer occurs. The event log contains the sender, the recipient and the amount of tokens transferred.
```solidity theme={null}
event Transfer(address indexed from, address indexed to, uint256 value);
```
Decoded event logs always originate from the fields `topic0`, `topic1`, `topic2`, `topic3` and `data` in the `logs` table.
## Event Logs in Dune
In Dune, we store all event logs of decoded smart contracts in separate tables.
The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analyzed post factum. If you ever want to see which logs *can* be emitted by a smart contract, you can simply search for the keyword `emit` in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema:
`[projectname_blockchain].[contractName]_evt_[eventName]`
## Example
Let's take the [uniswap v3 factory](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984#code) as an example and look at the event that gets emitted upon the creation of a new pool. The event is called `PoolCreated` and gets emitted every time somebody successfully deploys a new Uniswap V3 pool by calling the function `createPool`. The event will readily give us information like the tokens in the pool, the fee tier of this pool and the tick spacing. In Etherscan, you can easily look at the event logs of transaction by opening the [logs tab](https://etherscan.io/tx/0xdeb368592f3de0f2840754bce61d2c3f29cdb3407c63c699052e68a854c71eaa#eventlog). In Dune, this particular event will be stored in the table:
`uniswap_v3_ethereum.Factory_evt_PoolCreated`
[https://dune.com/embeds/3456741/5808942](https://dune.com/embeds/3456741/5808942)
## Multiple Instances
If there is multiple instances of a contract we will collect all event logs across all instances of this smart contract in one table. For example, all uniswap v3 pool `swap` events (on ethereum) are stored in the table: `uniswap_v3_ethereum.Pair_evt_Swap`
The column `contract_address` indicates as to which smart contract emitted this event.
[https://dune.com/embeds/3456754/5808958](https://dune.com/embeds/3456754/5808958)
## Further Reading
* [Understanding event logs on the Ethereum blockchain](https://medium.com/mycrypto/understanding-event-logs-on-the-ethereum-blockchain-f4ae7ba50378)
* [Everything You Ever Wanted to Know About Events and Logs on Ethereum](https://medium.com/linum-labs/everything-you-ever-wanted-to-know-about-events-and-logs-on-ethereum-fec84ea7d0a5)
> [card] [Submit any contract for decoding](/web-app/decoding/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/ethereum/decoded/contracts)
# flow.logs_decoded
Source: https://docs.dune.com/data-catalog/flow/decoded/logs-decoded
ABI-decoded Flow event logs — parsed event names and parameters.
\## Table Description
The \`logs_decoded\` table contains decoded logs from flow transactions — that is, only logs emitted by contracts whose ABI has been registered with Dune. The table matches \`topic0\` to the event signature and the corresponding event name.
The table does not contain the full event data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in \[Event Logs]\(/data-catalog/evm/flow/decoded/event-logs).
\> \[!NOTE]
\>
\> \*\*Coverage is limited to decoded contracts.\*\* Logs from contracts whose ABI has not been submitted to Dune do not appear in this table at all (the rows are missing, not just empty). If a contract you care about is not decoded yet, anyone can \[submit it for decoding]\(/web-app/decoding/decoding-contracts) — once accepted, its logs start showing up here automatically.
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
\> \[!TIP]
\>
\> \*\*Need \`decoded_json\` on flow?\*\* Some chains expose a \`decoded_json\` column on \`logs_decoded\` that contains the full event payload as JSON, removing the need to join the per-event tables. We can enable it for flow on request — reach out via the \[Dune enterprise contact form]\(https\://dune.com/enterprise#contact-form).
\## Column Descriptions
\\\\| Column\ | \Type\ | \Description\ | \
\
\\\| \`block_date\`\ | \\`date\`\ | \Date of the block (UTC)\ | \
\\| \`block_time\`\ | \\`timestamp\`\ | \Timestamp of the block containing this log\ | \
\\| \`block_number\`\ | \\`bigint\`\ | \Block number containing this log\ | \
\\| \`namespace\`\ | \\`varchar\`\ | \Project namespace (e.g., uniswap_v3)\ | \
\\| \`contract_name\`\ | \\`varchar\`\ | \Name of the contract that emitted the event\ | \
\\| \`contract_address\`\ | \\`varbinary\`\ | \Address of the contract that emitted the event\ | \
\\| \`tx_hash\`\ | \\`varbinary\`\ | \Hash of the transaction containing this log\ | \
\\| \`tx_from\`\ | \\`varbinary\`\ | \Address that initiated the transaction\ | \
\\| \`tx_to\`\ | \\`varbinary\`\ | \Address the transaction was sent to\ | \
\\| \`tx_index\`\ | \\`integer\`\ | \Position of the transaction within the block\ | \
\\| \`index\`\ | \\`integer\`\ | \Position of the log within the block\ | \
\\| \`signature\`\ | \\`varbinary\`\ | \Event signature hash (topic0)\ | \
\\| \`event_name\`\ | \\`varchar\`\ | \Decoded name of the event\ | \
\\| \`created_at\`\ | \\`timestamp\`\ | \When this record was created in Dune\ | \
\\
\## Table Sample
\[https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=logs_decoded]\(https\://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=logs_decoded)
# Flow EVM Decoded Overview
Source: https://docs.dune.com/data-catalog/flow/decoded/overview
Simplifying Flow EVM smart contract analysis through human-readable tables.
## Overview of Dune's Decoded Data Approach
Dune uses the ABI (Application Binary Interface) of smart contracts to decode blockchain transactions into structured tables. Each event log and function call from the ABI are parsed into their own tables. This decoding process transforms the raw, encoded data on the blockchain into human-readable tables, simplifying the analysis of smart contract data.
Dune's decoded data approach offers several benefits:
- **Enhanced Readability:** The decoded data tables provide a clear and intuitive representation of smart contract activities.
- **Efficient Analysis:** The structured tables enable efficient querying and analysis of smart contract data.
- **Handling Multiple Contract Instances:** For smart contracts with multiple instances, Dune aggregates the data from these instances into a single table, simplifying the analysis process.
- **Collaborative Mapping:** Dune's smart contract library is continuously expanded through the active participation of the Dune community, ensuring that the decoding coverage remains comprehensive and current.
> [card] [Explore decoded logs](/data-catalog/evm/flow/decoded/event-logs)
> [card] [Explore decoded traces](/data-catalog/evm/flow/decoded/call-tables)
## Which contracts have decoded data?
Contract submission on Dune are driven by the community. Usually, the odds are good that the contract you are looking at is already decoded, but especially for new projects or new contracts, it might be that the contract is not decoded yet. In those cases, you can submit the contract to be decoded. Decoding usually takes about 24 hours, in special cases it might take longer.
You can check if contracts are already decoded by querying the `[blockchain].contracts` tables, the [data explorer](/web-app/query-editor/data-explorer), or use [this dashboard](https://dune.com/dune/is-my-contract-decoded-yet-v2).
> [card] [Submit any contract for decoding](/web-app/decoding-contracts)
> [card] [Explore already decoded contracts](/data-catalog/evm/flow/decoded/contracts)
## How does decoding work?
Smart Contracts on any EVM blockchain are mostly written in high-level languages like [Solidity](https://docs.soliditylang.org/en/v0.8.2) or [Vyper](https://vyper.readthedocs.io/en/stable). In order for them to be deployed to an EVM execution environment, they need to be compiled to EVM executable bytecode. Once deployed, the bytecode gets associated with an address on the respective chain and is permanently stored in the chain's state storage.
To be able to interact with this smart contract, which is now just bytecode, we need a guide to call the functions defined in the high-level languages. This translation of names and arguments into byte representation is done using an **Application Binary Interface (ABI)**. The ABI documents names, types, and arguments precisely, which allows us to interact with the smart contract using a somewhat human-readable format. The ABI can be compiled using the high-level language source code.
**The ABI is used to call a smart contract or interpret the data it emits.**

## Decoding Example
We are going to look at an event log of an ERC20 transfer event from the [smart contract](https://etherscan.io/token/0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5#readContract) that represents the \$PICKLE token. On [Etherscan](https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog), the undecoded event looks like this:

If we query for this transaction in the `ethereum.logs` table in the Dune database, we will receive the same encoded bytecode as our result dataset.
`SELECT *
FROM ethereum.logs
WHERE tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455255/5806543](https://dune.com/embeds/3455255/5806543)
We could make short work of this encoded bytecode by using [DuneSQL Varbinary functions](/query-engine/Functions-and-operators/varbinary) to decode it, but having the contract's ABI at hand makes this process much easier.
This contract is decoded in Dune, so we can use the `pickle_finance_ethereum.PickleToken_evt_Transfer` table to access the decoded event log.
`SELECT *
FROM pickle_finance_ethereum.PickleToken_evt_Transfer
WHERE evt_tx_hash = 0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5`
[https://dune.com/embeds/3455274/5806581](https://dune.com/embeds/3455274/5806581)
**Now this is actually useful for analyzing this transaction!**
This data is much more readable and understandable than the encoded bytecode. We can see the sender, receiver, and the amount of tokens transferred in this event log.
## How do I understand decoded data?
Decoded data is the high level programming language representation of two pieces of software talking to each other via the blockchain.
It's not always easy for a human to understand what exactly is going on in these interactions, but most of the time, looking at column names and the data that is transmitted within them should help you to understand what is happening within that specific log or call.
If you are not able to make sense of the data by just searching the tables, it usually helps to look at single transactions using the transaction hash and [Etherscan](https://etherscan.io).
Furthermore, going into the code of the smart contract (our favorite way to do this is [DethCode](https://etherscan.deth.net)) to read the comments or the actual logic can help to understand the smart contract's emitted data.
If that also doesn't lead to satisfactory results, scouring the relevant docs and GitHub of the project can lead you to the desired answers. Furthermore, talking to the developers and core community of a project can also help you to get an understanding of the smart contracts.
# flow.traces_decoded
Source: https://docs.dune.com/data-catalog/flow/decoded/traces-decoded
ABI-decoded Flow function calls — parsed function names and arguments.
## Table Description
The `traces_decoded` table contains decoded traces from flow transactions. The table matches `MethodID`, which consists of the first 4 bytes of any eth call, to the trace signature and the corresponding Method name. The table does not contain the full trace data and is not suitable for analysis of smart contract level data. For that, use the specific event tables as described in [Call-tables](/data-catalog/evm/flow/decoded/traces-decoded).
This table is great for gaining a high level understanding of the types of events that are being emitted by a smart contract or smart contracts of a certain protocol.
## Column Descriptions
| Column | Type | Description |
| `block_date` | `date` | Date of the block (UTC) |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `namespace` | `varchar` | Project namespace (e.g., uniswap_v3) |
| `contract_name` | `varchar` | Name of the contract that was called |
| `to` | `varbinary` | Address of the contract that was called |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `tx_index` | `integer` | Position of the transaction within the block |
| `success` | `boolean` | Whether this trace executed successfully |
| `signature` | `varbinary` | Function signature (first 4 bytes of calldata) |
| `function_name` | `varchar` | Decoded name of the function called |
| `created_at` | `timestamp` | When this record was created in Dune |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=traces_decoded](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=traces_decoded)
# Flow Overview
Source: https://docs.dune.com/data-catalog/flow/overview
Flow blockchain data on Dune - EVM and Cadence
## What is Flow?
Flow is a fast, decentralized, and developer-friendly blockchain designed for the next generation of apps, games, and digital assets. Flow features a unique multi-node architecture that enables high throughput while maintaining decentralization and security.
**On Dune, Flow data is available for both execution environments:**
* **Flow EVM** - Ethereum-compatible environment for Solidity developers
* **Flow Cadence** - Flow's native smart contract environment with resource-oriented programming
## Flow EVM vs Cadence: Key Differences
| Aspect | Flow EVM | Flow Cadence |
| - | - | - |
| **Smart Contract Language** | Solidity | Cadence |
| **Compatibility** | Full EVM equivalence | Native Flow |
| **Developer Tooling** | Ethereum toolchain (Hardhat, Foundry, etc.) | Flow CLI, Cadence tools |
| **Account Model** | EOA + Contract accounts | Resource-oriented accounts |
| **Gas Token** | FLOW | FLOW |
| **Interoperability** | Cross-VM bridge to Cadence | Cross-VM bridge to EVM |
Both environments share the same underlying Flow blockchain and use FLOW as the native gas token, enabling seamless cross-VM interactions.
## Flow EVM
Flow EVM is a fast EVM equivalent blockchain with low fees, making it an ideal **Ethereum alternative for apps** that need both performance and affordability. With EVM equivalency, Solidity developers can deploy existing contracts on Flow without rewriting code.
### EVM Key Features
* **EVM Equivalence**: Full compatibility with Ethereum smart contracts and tooling
* **Ultra-Fast Performance**: Transaction throughput peaked to 2M daily transactions
* **Low Gas Fees**: Ultra-low cost gas fees with support for gasless experiences
* **MEV Resilience**: Robust design offering improved market efficiency and fairness
* **Cross-VM Integration**: Seamless token transfers between EVM and Cadence
### EVM Data on Dune
> [card] [Raw Data](/data-catalog/flow/raw/blocks)
>
> Access to raw EVM blockchain data including blocks, transactions, logs, and traces
> [card] [Decoded Data](/data-catalog/flow/decoded/overview)
>
> Human-readable EVM contract interactions and events
## Flow Cadence
Flow Cadence is Flow's native smart contract environment using the resource-oriented Cadence programming language. It offers unique capabilities for digital ownership, NFTs, and complex on-chain logic.
### Cadence Key Features
* **Resource-Oriented Programming**: First-class digital ownership at the language level
* **Account Linking**: Advanced account abstraction enabling smooth user onboarding
* **Native NFT Support**: Purpose-built for digital collectibles and assets
* **Upgradeable Contracts**: Safe contract upgrade patterns
* **Multi-Role Node Architecture**: Heterogeneous node roles ensuring security
### Cadence Data on Dune
> [card] [Blocks](/data-catalog/flow/cadence/blocks)
>
> Cadence block data including headers and network fees
> [card] [Transactions](/data-catalog/flow/cadence/transactions)
>
> Cadence transaction data with sender and payload info
> [card] [Transaction Receipts](/data-catalog/flow/cadence/transaction-receipts)
>
> Execution status and fee information
> [card] [Events](/data-catalog/flow/cadence/events)
>
> Events emitted by Cadence smart contracts
> [card] [Contracts](/data-catalog/flow/cadence/contracts)
>
> Cadence contract deployments and code
> [card] [Token Transfers](/data-catalog/flow/cadence/token-transfers)
>
> NFT and fungible token transfers
> [card] [Token Collections](/data-catalog/flow/cadence/token-collections)
>
> Token collection metadata
> [card] [Tokens](/data-catalog/flow/cadence/tokens)
>
> Individual token metadata
> [card] [Native Balances](/data-catalog/flow/cadence/native-token-balances)
>
> FLOW token balance snapshots
## Resources
> [card] [Flow Documentation](https://developers.flow.com)
>
> Official Flow developer documentation
> [card] [Flow EVM Documentation](https://developers.flow.com/build/evm/about)
>
> Documentation for building on Flow EVM
> [card] [Cadence Documentation](https://cadence-lang.org)
>
> Cadence programming language documentation
# flow.blocks
Source: https://docs.dune.com/data-catalog/flow/raw/blocks
Flow block data — block height, timestamp, and collection guarantees.
## Table description
The `flow.blocks` table contains information about blocks in the flow blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
## Column Descriptions
| Column | Type | Description |
| `time` | `timestamp` | The time when the block was mined |
| `number` | `bigint` | The block number (height) |
| `gas_limit` | `decimal` | Maximum gas allowed in the block |
| `gas_used` | `decimal` | Total gas used by all transactions in the block |
| `difficulty` | `bigint` | Mining difficulty of the block |
| `total_difficulty` | `decimal` | Cumulative difficulty of the chain up to this block |
| `size` | `bigint` | Size of the block in bytes |
| `base_fee_per_gas` | `bigint` | Base fee per gas unit (EIP-1559) |
| `hash` | `varbinary` | Hash of the block |
| `parent_hash` | `varbinary` | Hash of the parent block |
| `miner` | `varbinary` | Address of the miner/validator |
| `nonce` | `varbinary` | Nonce used in mining the block |
| `date` | `date` | Date of the block (UTC) |
| `blob_gas_used` | `bigint` | Total blob gas used in the block (EIP-4844) |
| `excess_blob_gas` | `bigint` | Excess blob gas for fee calculation (EIP-4844) |
| `parent_beacon_block_root` | `varbinary` | Root of the parent beacon block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=blocks)
## Examples
### Show the most recent blocks
`SELECT
number,
hash,
size,
gas_used
FROM flow.blocks
ORDER BY number DESC
LIMIT 10`
### Show the number of blocks mined each day
`SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM flow.blocks
GROUP BY day
ORDER BY day DESC`
### Show the number of transactions in each block
`SELECT
number,
count(*)
FROM flow.blocks
GROUP BY 1
LIMIT 10`
# flow.creation_traces
Source: https://docs.dune.com/data-catalog/flow/raw/creation-traces
Flow contract deployment records — deployer and deployed contract details.
## Table Description
The `flow.creation_traces` table contains information about the creation of smart contracts on the flow blockchain. This includes the address of the contract, the address of the creator, the block number at which the contract was created, the transaction hash, and the contract's bytecode. This table is useful for understanding the deployment of smart contracts on the flow blockchain.
> [!TIP]
>
> This table is a subset of the `traces` table, which contains information about all traces on the flow blockchain. The `creation_traces` table is filtered to only include traces that create new smart contracts. The filter for this is `type = 'create'`.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this creation trace |
| `block_number` | `bigint` | Block number containing this creation trace |
| `tx_hash` | `varbinary` | Hash of the transaction that created the contract |
| `address` | `varbinary` | Address of the newly created contract |
| `from` | `varbinary` | Address that deployed the contract |
| `code` | `varbinary` | Bytecode of the deployed contract |
| `block_month` | `date` | Month of the block (for partitioning) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=creation_traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=creation_traces)
## Examples
### Show the creation of a specific smart contract
`SELECT * FROM flow.creation_traces
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d`
### Show the creation of smart contracts by a specific creator
`SELECT * FROM flow.creation_traces
WHERE "from" = 0x0d4a11d5eeaac28ec3f61d100da81f6a1b65c9d6`
### Show the creation of smart contracts in the last 10 days
`SELECT
date_trunc('day', block_time) AS day,
COUNT(*)
FROM flow.creation_traces
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
# flow.logs
Source: https://docs.dune.com/data-catalog/flow/raw/logs
Flow event logs — events emitted during Cadence smart contract execution.
## Table Description
The `flow.logs` table represents the logs generated by the Ethereum Virtual Machine (EVM) when a contract is executed. Logs are a way to store data on the blockchain. Logs originate from events that occur during the execution of a smart contract. A log consists of:
- topic list: a list of 0 to 3 32-byte data topics. `Topic0` is the hash of the signature of the event (indexed), and the remaining topics are indexed parameters of the event.
- data: contains non-indexed data.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flow/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this log |
| `block_number` | `bigint` | Block number containing this log |
| `block_hash` | `varbinary` | Hash of the block containing this log |
| `contract_address` | `varbinary` | Address of the contract that emitted the log |
| `topic0` | `varbinary` | Event signature hash (first indexed topic) |
| `topic1` | `varbinary` | First indexed event parameter |
| `topic2` | `varbinary` | Second indexed event parameter |
| `topic3` | `varbinary` | Third indexed event parameter |
| `data` | `varbinary` | Non-indexed event data |
| `tx_hash` | `varbinary` | Hash of the transaction that generated this log |
| `index` | `integer` | Position of the log within the block |
| `tx_index` | `integer` | Position of the transaction within the block |
| `block_date` | `date` | Date of the block (UTC) |
| `tx_from` | `varbinary` | Address that initiated the transaction |
| `tx_to` | `varbinary` | Address the transaction was sent to |
| `blob_gas_price` | `bigint` | Blob gas price of the transaction (EIP-4844) |
| `blob_gas_used` | `bigint` | Blob gas used by the transaction (EIP-4844) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=logs)
## Examples
### Filter the logs for a specific contract
`SELECT *
FROM flow.logs
WHERE contract_address = 0x06012c8cf97bead5deae237070f9587f8e7a266d
LIMIT 10`
### Filter the logs for a specific topic
`SELECT *
FROM flow.logs
WHERE topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`
### Show the logs of a specific block
`SELECT *
FROM flow.logs
WHERE evt_block_number = 1000000`
# flow.traces
Source: https://docs.dune.com/data-catalog/flow/raw/traces
Flow execution traces — internal call data during transaction processing.
## Table Description
The `flow.traces` table contains the traces of the transactions executed on the Ethereum Virtual Machine (EVM). It includes the traces of the transaction and the traces of the internal transactions. Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as `internal transactions` and can be used to understand the execution of a transaction.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flow/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this trace |
| `block_number` | `bigint` | Block number containing this trace |
| `value` | `uint256` | Amount of native token transferred (in wei) |
| `gas` | `bigint` | Gas provided for this trace |
| `gas_used` | `bigint` | Gas consumed by this trace |
| `block_hash` | `varbinary` | Hash of the block containing this trace |
| `success` | `boolean` | Whether this trace executed successfully |
| `tx_index` | `integer` | Position of the transaction within the block |
| `sub_traces` | `bigint` | Number of child traces spawned by this trace |
| `error` | `varchar` | Error message if the trace failed |
| `tx_success` | `boolean` | Whether the parent transaction succeeded |
| `tx_hash` | `varbinary` | Hash of the parent transaction |
| `from` | `varbinary` | Address that initiated this trace |
| `to` | `varbinary` | Address the trace was sent to |
| `trace_address` | `array(bigint)` | Path of this trace within the call tree |
| `type` | `varchar` | Type of trace (call, create, suicide, reward) |
| `address` | `varbinary` | Address of the contract created (for create traces) |
| `code` | `varbinary` | Bytecode of the contract created |
| `call_type` | `varchar` | Type of call (call, delegatecall, staticcall) |
| `input` | `varbinary` | Input data for the trace |
| `output` | `varbinary` | Output data from the trace |
| `refund_address` | `varbinary` | Address receiving refund (for selfdestruct) |
| `block_date` | `date` | Date of the block (UTC) |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=traces)
## Example
### Querying traces for a specific transaction hash
`SELECT *
FROM flow.traces
WHERE tx_hash = 0xb30d6d67cf7d148c2257bf598c5f5cdf5912a3d05c7d3b000398d675d2fa912c`
# flow.transactions
Source: https://docs.dune.com/data-catalog/flow/raw/transactions
Flow transaction records — authorizers, payer, gas limit, and execution status.
## Table Description
The `flow.transactions` table contains information about all transactions on the flow blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the flow blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.
> [!TIP]
>
> This is the raw version of this table. If the chain is a Fully Managed chain, decoded transaction calls will be available, see [call tables](/data-catalog/evm/flow/decoded/call-tables) section. If this is a Hosted chain, decoded call tables will not be available.
## Column Descriptions
| Column | Type | Description |
| `block_time` | `timestamp` | Timestamp of the block containing this transaction |
| `block_number` | `bigint` | Block number containing this transaction |
| `value` | `decimal` | Amount of native token transferred (in wei) |
| `gas_limit` | `bigint` | Maximum gas the sender is willing to use |
| `gas_price` | `bigint` | Price per gas unit (in wei) |
| `gas_used` | `bigint` | Actual gas consumed by the transaction |
| `max_fee_per_gas` | `bigint` | Maximum total fee per gas (EIP-1559) |
| `max_priority_fee_per_gas` | `bigint` | Maximum priority fee (tip) per gas (EIP-1559) |
| `priority_fee_per_gas` | `bigint` | Actual priority fee per gas paid |
| `nonce` | `bigint` | Transaction count of the sender before this transaction |
| `index` | `bigint` | Position of the transaction within the block |
| `success` | `boolean` | Whether the transaction executed successfully |
| `from` | `varbinary` | Address of the transaction sender |
| `to` | `varbinary` | Address of the transaction recipient |
| `block_hash` | `varbinary` | Hash of the block containing this transaction |
| `data` | `varbinary` | Calldata sent with the transaction |
| `hash` | `varbinary` | Unique hash of the transaction |
| `type` | `varchar` | Transaction type (legacy, EIP-2930, EIP-1559, EIP-4844) |
| `access_list` | `array(row)` | List of addresses and storage keys accessed (EIP-2930) |
| `block_date` | `date` | Date of the block (UTC) |
| `blob_versioned_hashes` | `array(varbinary)` | Versioned hashes of blobs (EIP-4844) |
| `max_fee_per_blob_gas` | `bigint` | Maximum fee per blob gas (EIP-4844) |
| `authorization_list` | `array(row)` | Authorization list for EIP-7702 transactions |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=transactions)
## Examples
### Show all transactions sent by a specific address
`SELECT *
FROM flow.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'`
### Count the number of transactions per block
`SELECT
block_number,
COUNT(*)
FROM flow.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10`
### Show the top 10 transactions with the highest gas price
`SELECT
hash,
gas_price
FROM flow.transactions
ORDER BY gas_price DESC
LIMIT 10`
# Blocks
Source: https://docs.dune.com/data-catalog/fuel/blocks
Fuel blockchain blocks data
# Table Description
This table contains data about blocks in the Fuel blockchain, including block headers, consensus data, and transaction information.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **block_time** | bigint | Block creation timestamp |
| **block_date** | date | Block creation date |
| **height** | bigint | Block height/number |
| **time** | bigint | Unix timestamp |
| **transactions_count** | bigint | Number of transactions |
| **transactions_root** | binary | Merkle root of transactions |
| **application_hash** | binary | Application state hash |
| **consensus_parameters_version** | bigint | Consensus parameters version |
| **da_height** | bigint | Data availability height |
| **event_inbox_root** | binary | Event inbox Merkle root |
| **id** | binary | Block identifier |
| **message_outbox_root** | binary | Message outbox Merkle root |
| **message_receipt_count** | bigint | Number of message receipts |
| **prev_root** | binary | Previous block root |
| **state_transition_bytecode_version** | bigint | State transition version |
| **version** | string | Block version |
| **consensus_type** | string | Consensus mechanism type |
| **poa_consensus_data_signature** | binary | PoA consensus signature |
| **producer** | binary | Block producer address |
| **\_updated_at** | timestamp | Last update timestamp |
| **\_ingested_at** | timestamp | Ingestion timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=blocks)
# Fuel Data
Source: https://docs.dune.com/data-catalog/fuel/overview
Fuel blockchain data on Dune
## What is Fuel?
Fuel is an operating system purpose built for Ethereum Rollups. It implements improvements suggested to the Ethereum VM (EVM) for many years that couldn't be implemented due to the need to maintain backward compatibility, including parallel transaction execution and multiple native assets.
Fuel delivers unmatched processing capacity through its ability to execute transactions in parallel by using strict state access lists in the form of a UTXO model. With the FuelVM, Fuel full nodes identify the accounts a transaction touches, mapping out dependencies before execution.
## Key Features
* **Parallel Transaction Execution**: Fuel can execute transactions in parallel, significantly increasing throughput
* **UTXO Model**: Uses a strict state access list model for efficient transaction processing
* **Multiple Native Assets**: Supports multiple native assets natively
* **FuelVM**: A purpose-built virtual machine that improves upon the EVM
* **Sway Language**: A domain-specific language based on Rust for smart contract development
## Fuel Data on Dune
Fuel blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Blocks](/data-catalog/fuel/blocks)
>
> Core block data including block headers, validators, and block statistics.
> [card] [Transactions](/data-catalog/fuel/transactions)
>
> Detailed transaction data including computation, actions, and state changes.
> [card] [Receipts](/data-catalog/fuel/receipts)
>
> Transaction receipts containing execution results and event logs.
# Receipts
Source: https://docs.dune.com/data-catalog/fuel/receipts
Fuel blockchain receipts data
# Table Description
This table contains data about transaction receipts in the Fuel blockchain, including execution results, gas usage, and associated metadata.
## Column Description
| Column Name | Data Type | Description |
| - | - | - |
| **block_time** | bigint | Block creation timestamp |
| **block_height** | bigint | Block height/number |
| **block_version** | string | Block version |
| **block_producer** | binary | Block producer address |
| **transaction_id** | binary | Transaction identifier |
| **amount** | bigint | Token amount |
| **asset_id** | binary | Asset identifier |
| **contract_id** | binary | Contract identifier |
| **data** | string | Receipt data |
| **digest** | binary | Receipt hash |
| **gas** | bigint | Gas limit |
| **gas_used** | bigint | Gas consumed |
| **id** | string | Receipt identifier |
| **is** | bigint | State indicator |
| **len** | bigint | Data length |
| **nonce** | binary | Transaction nonce |
| **param1** | bigint | Parameter 1 |
| **param2** | bigint | Parameter 2 |
| **ptr** | bigint | Pointer value |
| **ra** | bigint | Register A |
| **rb** | bigint | Register B |
| **rc** | bigint | Register C |
| **rd** | bigint | Register D |
| **reason_reason** | int | Failure reason code |
| **reason_instruction** | bigint | Failed instruction |
| **receipt_type** | string | Receipt type |
| **recipient** | binary | Recipient address |
| **result** | bigint | Execution result |
| **sender** | binary | Sender address |
| **sub_id** | binary | Sub-identifier |
| **to** | binary | Destination address |
| **to_address** | string | Destination address string |
| **val** | bigint | Value amount |
| **\_updated_at** | timestamp | Last update timestamp |
| **\_ingested_at** | timestamp | Ingestion timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=receipts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=receipts)
# Transactions
Source: https://docs.dune.com/data-catalog/fuel/transactions
Fuel blockchain transactions data
# Table Description
This table contains data about transactions in the Fuel blockchain, including transaction details, inputs, outputs, and associated metadata. Fuel transactions can be of different types: Script, Create, Mint, or Upgrade transactions.
## Column Description
| Column Name | Data Type | Description |
| - | - | - |
| **block_height** | bigint | The height of the block containing this transaction |
| **block_time** | bigint | The timestamp when the block was created |
| **block_id** | binary | The unique identifier of the block |
| **block_version** | string | The version of the block |
| **block_producer** | binary | The address of the block producer |
| **status** | string | The status of the transaction (Success/Failure) |
| **id** | binary | The unique identifier of the transaction |
| **type** | string | The type of transaction (Script/Create/Mint/Upgrade) |
| **tx_pointer_block_height** | bigint | Block height for UTXO validation |
| **tx_pointer_tx_index** | int | Transaction index for UTXO validation |
| **tx_pointer** | struct | Reference to previous transaction in UTXO model |
| **bytecode_root** | binary | Root hash of script bytecode |
| **bytecode_witness_index** | bigint | Index in witnesses array |
| **blob_id** | binary | Identifier for blob transactions |
| **maturity** | bigint | Minimum block height for execution |
| **mint_amount** | bigint | Amount of tokens to mint |
| **mint_asset_id** | binary | Asset identifier for minting |
| **mint_gas_price** | bigint | Gas price for minting |
| **receipts_root** | binary | Merkle root of transaction receipts |
| **salt** | binary | Unique value for transaction |
| **script_gas_limit** | bigint | Maximum gas for script execution |
| **subsection_index** | bigint | Index in multi-section transaction |
| **subsections_number** | bigint | Total sections in transaction |
| **input_asset_ids** | array(binary) | Asset IDs used as inputs |
| **proof_set** | array(binary) | Zero-knowledge proofs for validation |
| **input_contract** | struct | Input contract data (balances, state, UTXO) |
| **output_contract** | struct | Output contract data (new balances, state) |
| **policies** | struct | Transaction policies (maturity, fees, limits) |
| **raw_payload** | binary | Raw transaction data |
| **script** | binary | Compiled script bytecode |
| **script_data** | binary | Script input data |
| **storage_slots** | array(struct) | Contract storage updates |
| **upgrade_purpose** | struct | Contract upgrade details |
| **witnesses** | array(binary) | Transaction validation data |
| **script_length** | bigint | Script bytecode length |
| **script_data_length** | bigint | Script input data length |
| **storage_slots_count** | bigint | Number of storage updates |
| **proof_set_count** | bigint | Number of validation proofs |
| **witnesses_count** | bigint | Number of witnesses |
| **inputs_count** | bigint | Number of inputs |
| **outputs_count** | bigint | Number of outputs |
| **is_create** | boolean | Contract creation flag |
| **is_mint** | boolean | Minting transaction flag |
| **is_script** | boolean | Script transaction flag |
| **is_upgrade** | boolean | Contract upgrade flag |
| **is_upload** | boolean | Bytecode upload flag |
| **is_blob** | boolean | Blob transaction flag |
| **\_updated_at** | timestamp | Last update timestamp |
| **\_ingested_at** | timestamp | Ingestion timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=fuel\&table_name_t6f0df=transactions)
# Balances
Source: https://docs.dune.com/data-catalog/initia/balances
Initia blockchain account balances data
# Table Description
This table contains data about account balances in the Initia blockchain, including token holdings and balance snapshots.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the balance was recorded. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **address** | varchar | The account address. |
| **denom** | varchar | The denomination of the token. |
| **amount** | decimal(38, 0) | The balance amount. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=balances)
# Block Events
Source: https://docs.dune.com/data-catalog/initia/block_events
Initia blockchain block events data
# Table Description
This table contains data about block-level events and attributes in the Initia blockchain, including event types, sources, and associated metadata. The schema is modeled after Cosmos block events.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the event occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **event_index** | bigint | A unique index for events within the block. |
| **event_type** | varchar | The type of event that was triggered. |
| **event_source** | varchar | The source of the event. |
| **attribute_key** | varchar | The key of the event attribute. |
| **attribute_value** | varchar | The value of the event attribute. |
| **attribute_index** | bigint | A unique index for attributes within the event. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=block_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=block_events)
# Blocks
Source: https://docs.dune.com/data-catalog/initia/blocks
Initia blockchain blocks data
# Table Description
This table contains data about blocks in the Initia blockchain, including block headers, consensus data, and transaction information.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block, a unique identifier for each block. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **proposer_address** | varchar | The address of the validator proposing the block. |
| **validators_hash** | varchar | The hash of the validators set for the block. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=blocks)
# Bridge Transfers
Source: https://docs.dune.com/data-catalog/initia/bridge_transfers
Initia blockchain cross-chain bridge transfer data
# Table Description
This table contains data about cross-chain bridge transfers in the Initia blockchain, including transfer details, source and destination chains, and transfer status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the transfer occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **action_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **receiver** | varchar | The address of the receiver. |
| **token_amount** | decimal(38, 0) | The amount of tokens transferred. |
| **token_denom** | varchar | The denomination of the token. |
| **src_domain** | varchar | The source domain of the transfer. |
| **dst_domain** | varchar | The destination domain of the transfer. |
| **protocol** | varchar | The protocol used for the transfer. |
| **protocol_metadata** | varchar | Additional metadata related to the protocol. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=bridge_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=bridge_transfers)
# Message Events
Source: https://docs.dune.com/data-catalog/initia/message_events
Initia blockchain message events data
# Table Description
This table contains data about message-related events in the Initia blockchain, including message types, attributes, and associated metadata.
## Table Schema
| Column name | Description | Type |
| - | - | - |
| **block_date** | The date of the block. | date |
| **block_height** | The height of the block where the event occurred. | bigint |
| **block_timestamp** | Timestamp when the block was validated. | timestamp(3) with time zone |
| **chain_id** | The ID of the chain where the block belongs. | varchar |
| **tx_id** | The hash of the transaction where the event occurred. | varchar |
| **tx_index** | The index of the transaction in the block. | bigint |
| **message_index** | The index of the message in the transaction. | bigint |
| **event_index** | A unique index for events within the message. | bigint |
| **event_type** | The type of event that was triggered. | varchar |
| **attribute_key** | The key of the event attribute. | varchar |
| **attribute_value** | The value of the event attribute. | varchar |
| **attribute_index** | A unique index for attributes within the event. | bigint |
| **updated_at** | Timestamp of when the record was last updated. | timestamp(3) with time zone |
| **ingested_at** | Timestamp of when the record was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=message_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=message_events)
# Initia Data
Source: https://docs.dune.com/data-catalog/initia/overview
Initia blockchain data on Dune
## What is Initia?
Initia's core philosophy is to make opinionated decisions on the underlying infrastructure such as data availability, interoperability, and oracles. By reducing decision fatigue, the Interwoven Stack empowers developers with the tools to craft application-specific environments while maintaining un-fragmented accessibility to the application ecosystem.
Initia provides a framework that powers all of Initia's rollups through the Interwoven Stack, featuring enshrined liquidity solutions for bootstrapping cross-chain liquidity while maintaining network security. The platform includes InitiaDEX, Minitswap, and a Vested Interest Program (VIP) that aims to foster long-term ecosystem-wide alignment.
## Key Features
* **Interwoven Stack**: Framework that powers all of Initia's rollups, enabling developers to craft application-specific environments
* **Enshrined Liquidity**: Solution for bootstrapping cross-chain liquidity while maintaining network security
* **VIP Program**: Incentive program that aims to foster long-term ecosystem-wide alignment
* **InitiaDEX**: Decentralized exchange built on the Initia network
* **Minitswap**: Swap functionality integrated into the ecosystem
* **Developer-Friendly**: Tools and infrastructure that reduce decision fatigue for developers
## Initia Data on Dune
Initia blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Balances](/data-catalog/initia/balances)
>
> Account balance snapshots and token holdings
> [card] [Blocks](/data-catalog/initia/blocks)
>
> Contains each validated block in the chain
> [card] [Block Events](/data-catalog/initia/block_events)
>
> Contains all block-level events and attributes in the chain, partitioned by event_index
> [card] [Bridge Transfers](/data-catalog/initia/bridge_transfers)
>
> Cross-chain bridge transfer data
> [card] [Message Events](/data-catalog/initia/message_events)
>
> Contains all events and their corresponding attributes partitioned by message_index
> [card] [Swaps](/data-catalog/initia/swaps)
>
> Token swap and liquidity pool data
> [card] [Transactions](/data-catalog/initia/transactions)
>
> Contains relevant data associated with each transaction
> [card] [Transaction Messages](/data-catalog/initia/tx_messages)
>
> Contains all messages submitted to the blockchain
> [card] [Validators](/data-catalog/initia/validators)
>
> Maps validator addresses to monikers (human-readable description) and other metadata
# Swaps
Source: https://docs.dune.com/data-catalog/initia/swaps
Initia blockchain token swap transactions data
# Table Description
This table contains data about token swap transactions in the Initia blockchain, including swap details, token pairs, and execution status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the swap occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **action_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **token_amount_in** | decimal(38, 0) | The amount of tokens swapped in. |
| **token_denom_in** | varchar | The denomination of the token swapped in. |
| **token_amount_out** | decimal(38, 0) | The amount of tokens swapped out. |
| **token_denom_out** | varchar | The denomination of the token swapped out. |
| **routes** | varchar | The routes used for the swap. |
| **fees** | varchar | The fees associated with the swap. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=swaps](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=swaps)
# Transactions
Source: https://docs.dune.com/data-catalog/initia/transactions
Initia blockchain transactions data
# Table Description
This table contains data about transactions in the Initia blockchain, including transaction details, gas usage, and execution status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_height** | bigint | The height of the block where the transaction occurred. |
| **chain_id** | varchar | The ID of the chain where the transaction occurred. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_info** | varchar | Information related to the transaction. |
| **tx_log_message** | varchar | The log message associated with the transaction. |
| **memo** | varchar | A memo associated with the transaction. |
| **fee** | varchar | The fee associated with the transaction. |
| **tx_code** | bigint | The result code of the transaction. |
| **tx_index** | bigint | The index of the transaction within the block. |
| **gas_used** | bigint | The amount of gas used by the transaction. |
| **gas_wanted** | bigint | The amount of gas requested by the transaction. |
| **schema_version** | bigint | The schema version for the transaction data. |
| **fee_coins** | varchar | The coins used to pay the transaction fee. |
| **fee_granter** | varchar | The address granting the fee for the transaction. |
| **fee_payer** | varchar | The address paying the fee for the transaction. |
| **gas_limit** | bigint | The gas limit set for the transaction. |
| **single_sign_mode** | bigint | The signing mode for single-signature transactions. |
| **multi_sign_json** | varchar | JSON structure for multi-signature transactions. |
| **timeout_height** | varchar | The timeout height set for the transaction. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=transactions)
# Transaction Messages
Source: https://docs.dune.com/data-catalog/initia/tx_messages
Initia blockchain transaction messages data
# Table Description
This table contains data about messages contained within transactions in the Initia blockchain, including message types, content, and associated metadata.
> [!TIP]
>
> On execution, transactions from Cosmos emit data in two formats:
>
> * Messages (`initia.tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
> * Events (`initia.message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
> * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the message occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the message belongs. |
| **tx_id** | varchar | The hash of the transaction containing the message. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **message_type** | varchar | The type of message. |
| **message** | varchar | The value/content of the message. |
| **schema_version** | bigint | The version of the schema in provider database. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=tx_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=tx_messages)
# Validators
Source: https://docs.dune.com/data-catalog/initia/validators
Initia blockchain validators data
# Table Description
This table contains data about validators in the Initia blockchain, including their performance metrics, voting power, and status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **operator_address** | varchar | The operator address of the validator. |
| **account_address** | varchar | The account address of the validator. |
| **consensus_pubkey** | varchar | The consensus public key of the validator. |
| **jailed** | boolean | Indicates whether the validator is jailed. |
| **status** | varchar | The status of the validator (e.g., active, inactive). |
| **tokens** | varchar | The number of tokens held by the validator. |
| **moniker** | varchar | The moniker or name of the validator. |
| **identity** | varchar | The identity information of the validator. |
| **website** | varchar | The website of the validator. |
| **security_contact** | varchar | The security contact information for the validator. |
| **details** | varchar | Additional details about the validator. |
| **unbonding_height** | bigint | The block height at which the validator started unbonding. |
| **unbonding_time** | varchar | The time when the validator will complete unbonding. |
| **commission_rate** | double | The commission rate charged by the validator. |
| **commission_max_rate** | double | The maximum commission rate allowed for the validator. |
| **commission_max_change_rate** | double | The maximum rate at which the validator can change its commission. |
| **commission_update_time** | varchar | The time when the validator last updated its commission. |
| **min_self_delegation** | varchar | The minimum self-delegation required for the validator. |
| **snapshot_height** | bigint | The block height at which the snapshot was taken. |
| **snapshot_time** | varchar | The time when the snapshot was taken. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=validators](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=initia\&table_name_t6f0df=validators)
# kalshi.market_report
Source: https://docs.dune.com/data-catalog/kalshi/market_report
Kalshi market metadata — event contract details, categories, settlement rules, and current status.
The `kalshi.market_report` table contains market data and information about event contracts on Kalshi. Each row represents market statistics and metrics for a specific event contract ticker.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| block_volume | double | Trading volume for the block period |
| category | string | Category of the event contract (e.g., Politics, Economics, Sports, etc.) |
| daily_volume | double | Total trading volume for the day |
| date | string | Date of the market report |
| high | double | Highest price reached during the reporting period |
| low | double | Lowest price reached during the reporting period |
| open_interest | double | Total number of outstanding contracts |
| payout_type | string | Type of payout for the event contract |
| report_ticker | string | Unique ticker identifier for the market report |
| status | string | Current status of the event contract market |
| ticker_name | string | Name or description of the event contract ticker |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
# Kalshi
Source: https://docs.dune.com/data-catalog/kalshi/overview
Kalshi event contracts data on Dune
Kalshi is the first CFTC regulated exchange dedicated to trading on the outcome of future events. From inflation, to fed rates, to unemployment, to will the government shut down, Kalshi allows people to trade on a broad range of topics. Kalshi has developed a new asset class, event contracts, where you can buy Yes or No positions with respect to whether an event will happen or not. Kalshi's vision is to allow people to capitalize on their opinions, trade in the domain of every day, and hedge risks that relate to them.
## Event Contracts
Kalshi's Event Contracts give people the ability to trade based on their opinions about a specific yes-or-no question. For example, if you have student debt and are worried about relief not passing, you can purchase a contract and get a payout even if it doesn't pass. If you're worried about the economic fallout of the government shutting down, you can place a trade to hedge against it. If you've developed a model on inflation, you can profit from that and maybe even offset your rising costs.
Event Contracts have an interesting side effect - the price that a given event contract trades at is actually the market's assessment of the probability that the event will happen. Kalshi's inflation and federal rate forecasts have been more accurate than economists, pundits, and traditional news outlets over the past year.
Kalshi offers Event Contracts on a wide range of topics, including economics, culture, weather, scientific advancements, and traditional financial markets such as commodities, forex, S\&P, and NASDAQ indices.
## Key Features
* **CFTC Regulated**: Kalshi is regulated by the Commodity Futures Trading Commission (CFTC) as a Designated Contract Market (DCM)
* **Event-Based Trading**: Trade on the outcome of future events with Yes or No positions
* **Broad Market Coverage**: Event contracts on economics, politics, sports, culture, crypto, climate, health, and more
* **Market Probability Assessment**: Event contract prices reflect the market's assessment of event probability
* **Risk Hedging**: Ability to hedge against everyday risks and economic events
* **Election Trading**: First fully regulated platform in over a century to offer legal election trading in the United States
## Company History
Kalshi was founded in 2018 by Tarek Mansour and Luana Lopes Lara, who met while studying at the Massachusetts Institute of Technology (MIT). During their early careers at financial institutions like Goldman Sachs, Citadel, and Bridgewater, Tarek and Luana observed that many financial decisions were driven by predictions about future events. However, they noticed a gap in the market: there was no straightforward way for people to trade directly on event outcomes.
In 2019, Kalshi was accepted into Y Combinator's Winter batch, where the team further developed the platform. In 2020, Kalshi made history by becoming the first fully regulated financial exchange in the U.S. specifically for event contracts, officially designated as a Designated Contract Market (DCM) by the CFTC.
In 2024, Kalshi achieved a historic milestone by becoming the first fully regulated platform in over a century to offer legal election trading in the United States, following a federal appeals court ruling that upheld Kalshi's right to list contracts on political outcomes.
## Kalshi Data on Dune
> [card] [Market Report](/data-catalog/kalshi/market_report)
>
> Contains market data and information about event contracts
> [card] [Trade Report](/data-catalog/kalshi/trade_report)
>
> Contains trade execution data and transaction information
> [card] [Kalshi Website](https://kalshi.com/about)
>
> Learn more about Kalshi, event contracts, and the platform
# kalshi.trade_report
Source: https://docs.dune.com/data-catalog/kalshi/trade_report
Kalshi trade data — individual trades on event contracts with price, size, and execution details.
The `kalshi.trade_report` table contains trade execution data and transaction information for event contracts on Kalshi. Each row represents a trade execution for a specific event contract ticker.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| contracts_traded | double | Number of contracts traded in the transaction |
| date | string | Date of the trade report |
| price | double | Price at which the contracts were traded |
| report_ticker | string | Unique ticker identifier for the trade report |
| ticker_name | string | Name or description of the event contract ticker |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
# layerzero.messages
Source: https://docs.dune.com/data-catalog/layerzero/messages
LayerZero cross-chain messages — message payloads, endpoints, and routing data.
The `layerzero.messages` table contains all cross-chain messages sent through the LayerZero protocol. Each message represents a cross-chain communication event between source and destination chains.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| timestampUpdated | timestamp | Timestamp of the last update |
| primary_key | string | Unique identifier for the message |
| transfer_foreign_key | string | Foreign key reference to the transfer |
| tx_hash_source | string | Transaction hash on the source chain |
| tx_hash_destination | string | Transaction hash on the destination chain |
| ts_source | timestamp | Timestamp of the message on source chain |
| ts_destination | timestamp | Timestamp of the message on destination chain |
| block_number_source | decimal(38,0) | Block number on the source chain |
| block_number_destination | decimal(38,0) | Block number on the destination chain |
| addr_from | string | Address of the message sender |
| usd_dvn_fee | double | USD value of the DVN fee |
| usd_executor_fee | double | USD value of the executor fee |
| usd_value | double | Total USD value of the message |
| source_contract | string | Contract address on the source chain |
| source_chain | string | Source chain identifier |
| source_chain_key | string | Source chain key |
| source_layer | string | Source chain layer |
| destination_contract | string | Contract address on the destination chain |
| destination_chain | string | Destination chain identifier |
| destination_chain_key | string | Destination chain key |
| destination_layer | string | Destination chain layer |
| project | string | Project identifier |
| state | string | Current state of the message |
| layerzero_version | string | Version of LayerZero protocol used |
| uln_version | string | Version of ULN used |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
## Sample Query
```sql theme={null}
-- Get the total number of messages and total value transferred per chain pair
SELECT
source_chain,
destination_chain,
COUNT(*) as message_count,
SUM(usd_value) as total_value_usd
FROM layerzero.messages
WHERE ts_source >= NOW() - INTERVAL '7' DAY
GROUP BY source_chain, destination_chain
ORDER BY total_value_usd DESC
LIMIT 10;
```
# LayerZero
Source: https://docs.dune.com/data-catalog/layerzero/overview
LayerZero crosschain data on Dune
LayerZero is a cross-chain messaging protocol that enables the transfer of messages and assets between different blockchain networks. It provides a secure and efficient way for applications to communicate and transfer value across chains.
## Key Features
* **Omnichain Interoperability**: Enables seamless communication between different blockchain networks
* **Security**: Uses a decentralized network of oracles and validators
* **Efficiency**: Optimized for gas efficiency and fast message delivery
* **Developer-Friendly**: Simple integration with existing applications
* **Wide Chain Support**: Compatible with major EVM and non-EVM chains
## LayerZero Data on Dune
> [card] [Messages](/data-catalog/layerzero/messages)
>
> Contains all cross-chain messages sent through the LayerZero protocol
> [card] [Transfers](/data-catalog/layerzero/transfers)
>
> Contains all cross-chain transfers executed through the LayerZero protocol
> [card] [LayerZero Documentation](https://docs.layerzero.network/v2)
>
> The official documentation for LayerZero, providing detailed information on the protocol, architecture, and developer resources
# layerzero.transfers
Source: https://docs.dune.com/data-catalog/layerzero/transfers
LayerZero cross-chain token transfers — bridged assets with source/destination chain details.
The `layerzero.transfers` table contains all cross-chain transfers executed through the LayerZero protocol. Each transfer represents a value transfer event between source and destination chains.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| timestampUpdated | timestamp | Timestamp of the last update |
| primary_key | string | Unique identifier for the transfer |
| messages_foreign_key | string | Foreign key reference to the associated message |
| addr_to | string | Recipient address |
| type_transfer | string | Type of transfer |
| symbol | string | Token symbol |
| token | string | Token address |
| usd_value | double | USD value of the transfer |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
## Sample Query
```sql theme={null}
-- Get the top tokens by volume transferred in the last 24 hours
SELECT
symbol,
COUNT(*) as transfer_count,
SUM(usd_value) as total_volume_usd
FROM layerzero.transfers
WHERE timestampUpdated >= NOW() - INTERVAL '24' HOUR
GROUP BY symbol
ORDER BY total_volume_usd DESC
LIMIT 10;
```
# Blocks
Source: https://docs.dune.com/data-catalog/midnight/blocks
Midnight blockchain blocks data
# Table Description
This table contains block-level data for the Midnight blockchain, including height, hash, parent hash, author, and protocol version.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal block identifier. |
| **hash** | varchar | Hash uniquely identifying the block. |
| **height** | bigint | Block height (sequential number) in the chain. |
| **protocol_version** | bigint | Protocol version active for this block. |
| **parent_hash** | varchar | Hash of the parent block. |
| **author** | varchar | Block author / producer identifier. |
| **block_time** | timestamp | Timestamp when the block was produced. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=blocks)
# cNIGHT Registrations
Source: https://docs.dune.com/data-catalog/midnight/cnight_registrations
Midnight cNIGHT registration data
# Table Description
This table contains cNIGHT registrations linking Cardano addresses to Midnight DUST addresses for cross-chain NIGHT / DUST flows.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal registration identifier. |
| **cardano_address** | varchar | Cardano address associated with the registration. |
| **dust_address** | varchar | Midnight DUST address linked to the registration. |
| **valid** | boolean | Whether the registration is currently valid. |
| **registered_at** | bigint | Registration time (network time representation). |
| **removed_at** | bigint | Removal time, if the registration was removed. |
| **block_id** | bigint | Block id associated with the registration update. |
| **utxo_tx_hash** | varchar | Cardano UTXO transaction hash for the registration. |
| **utxo_output_index** | bigint | Cardano UTXO output index for the registration. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=cnight_registrations](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=cnight_registrations)
# Committee Membership
Source: https://docs.dune.com/data-catalog/midnight/committee_membership
Midnight committee membership data
# Table Description
This table records committee membership for SPOs by epoch, including position and expected slots.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **spo_sk** | varchar | Stake pool operator key / identifier. |
| **sidechain_pubkey** | varchar | Sidechain public key for the committee member. |
| **epoch_no** | bigint | Epoch number. |
| **position** | bigint | Position of the member in the committee. |
| **expected_slots** | bigint | Expected slots assigned to the member. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=committee_membership](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=committee_membership)
# Contract Actions
Source: https://docs.dune.com/data-catalog/midnight/contract_actions
Midnight contract actions data
# Table Description
This table contains smart contract actions on Midnight, including contract address, action variant, and attributes.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal contract action identifier. |
| **transaction_id** | bigint | Foreign key to `midnight.transactions.id`. |
| **variant** | varchar | Contract action variant / type. |
| **address** | varchar | Contract address. |
| **attributes_json** | varchar | Action attributes encoded as JSON. |
| **action_ordinal** | bigint | Ordinal position of the action within the transaction. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=contract_actions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=contract_actions)
# DUST Generation Info
Source: https://docs.dune.com/data-catalog/midnight/dust_generation_info
Midnight DUST generation info data
# Table Description
This table describes NIGHT UTXO state used to generate DUST, including owner, value, and merkle index.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal record identifier. |
| **night_utxo_hash** | varchar | Hash of the NIGHT UTXO generating DUST. |
| **value** | decimal(38,0) | NIGHT value associated with the UTXO. |
| **owner** | varchar | Owner of the NIGHT UTXO. |
| **nonce** | varchar | Nonce for the generation entry. |
| **ctime** | bigint | Creation time of the generation entry. |
| **dtime** | bigint | Dust-related time field for the entry. |
| **merkle_index** | bigint | Merkle index of the UTXO in the generation tree. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=dust_generation_info](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=dust_generation_info)
# Ledger Events
Source: https://docs.dune.com/data-catalog/midnight/ledger_events
Midnight ledger events data
# Table Description
This table contains ledger events emitted in Midnight transactions, including variant, grouping, and JSON attributes.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal ledger event identifier. |
| **transaction_id** | bigint | Foreign key to `midnight.transactions.id`. |
| **variant** | varchar | Event variant / type. |
| **grouping** | varchar | Logical grouping for the event. |
| **attributes_json** | varchar | Event attributes encoded as JSON. |
| **event_ordinal** | bigint | Ordinal position of the event within the transaction. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=ledger_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=ledger_events)
# Midnight Data
Source: https://docs.dune.com/data-catalog/midnight/overview
Midnight blockchain data on Dune
## What is Midnight?
Midnight is a privacy-focused partner chain of Cardano. It uses zero-knowledge proofs and the Compact language for programmable privacy, with a dual-ledger model that supports both shielded (private) and unshielded (public) state.
Midnight separates value from network capacity: **NIGHT** is the unshielded native utility and governance token, and holding NIGHT generates **DUST**, a shielded, non-transferable resource consumed to pay transaction fees. The network inherits security properties from Cardano through the partner-chain framework while running its own consensus and application layer.
## Key Features
* **Programmable privacy**: Zero-knowledge smart contracts written in Compact
* **Dual ledger**: Shielded and unshielded state on the same network
* **NIGHT + DUST**: NIGHT for utility/governance; DUST for fee payment
* **Cardano partner chain**: Linked to Cardano for settlement and staking-related flows (including cNIGHT registrations)
* **UTXO-style unshielded outputs**: Public UTXO tracking alongside private ledger events
## Midnight Data on Dune
Midnight data on Dune is a custom (non-EVM) schema under `midnight.*`. Tables cover blocks, transactions, ledger events, contract actions, unshielded UTXOs, DUST generation, cNIGHT registrations, and stake-pool / committee metadata.
> [card] [Blocks](/data-catalog/midnight/blocks)
>
> Block headers, height, author, and protocol version.
> [card] [Transactions](/data-catalog/midnight/transactions)
>
> Transaction records linked to blocks, including variant and hash.
> [card] [Regular Transactions](/data-catalog/midnight/regular_transactions)
>
> Fee and merkle-tree details for regular (user) transactions.
> [card] [Ledger Events](/data-catalog/midnight/ledger_events)
>
> Ledger events emitted by transactions (variant, grouping, attributes).
> [card] [Contract Actions](/data-catalog/midnight/contract_actions)
>
> Smart contract actions with address and attributes JSON.
> [card] [Unshielded UTXOs](/data-catalog/midnight/unshielded_utxos)
>
> Public unshielded UTXO creates and spends.
> [card] [cNIGHT Registrations](/data-catalog/midnight/cnight_registrations)
>
> Cardano ↔ Midnight cNIGHT / DUST address registrations.
> [card] [DUST Generation Info](/data-catalog/midnight/dust_generation_info)
>
> NIGHT UTXO state used for DUST generation.
> [card] [SPO History](/data-catalog/midnight/spo_history)
>
> Stake pool operator status history by epoch.
> [card] [SPO Identity](/data-catalog/midnight/spo_identity)
>
> Stake pool identity keys and pool IDs.
> [card] [SPO Stake History](/data-catalog/midnight/spo_stake_history)
>
> Live and active stake snapshots for pools.
> [card] [SPO Epoch Performance](/data-catalog/midnight/spo_epoch_performance)
>
> Expected vs produced blocks per SPO per epoch.
> [card] [Committee Membership](/data-catalog/midnight/committee_membership)
>
> Committee membership and expected slots by epoch.
> [card] [Pool Metadata Cache](/data-catalog/midnight/pool_metadata_cache)
>
> Cached pool display metadata (name, ticker).
> [card] [Midnight documentation](https://docs.midnight.network/)
>
> Official Midnight developer and protocol documentation.
> [card] [Network overview](https://midnight.network/overview)
>
> High-level overview of Midnight network design and tokenomics.
# Pool Metadata Cache
Source: https://docs.dune.com/data-catalog/midnight/pool_metadata_cache
Midnight pool metadata cache
# Table Description
This table caches display metadata for Midnight stake pools (name and ticker).
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **pool_id** | varchar | Pool identifier. |
| **hex_id** | varchar | Hex-encoded pool identifier. |
| **name** | varchar | Human-readable pool name. |
| **ticker** | varchar | Pool ticker symbol. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=pool_metadata_cache](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=pool_metadata_cache)
# Regular Transactions
Source: https://docs.dune.com/data-catalog/midnight/regular_transactions
Midnight regular transaction fee and merkle details
# Table Description
This table extends regular (user) transactions with result status, merkle tree bounds, and fee fields.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Transaction id (joins to `midnight.transactions.id`). |
| **transaction_result** | varchar | Execution result of the transaction. |
| **merkle_tree_root** | varchar | Merkle tree root associated with the transaction. |
| **start_index** | bigint | Start index in the merkle tree range. |
| **end_index** | bigint | End index in the merkle tree range. |
| **paid_fees** | decimal(38,0) | Fees paid for the transaction. |
| **estimated_fees** | decimal(38,0) | Estimated fees for the transaction. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=regular_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=regular_transactions)
# SPO Epoch Performance
Source: https://docs.dune.com/data-catalog/midnight/spo_epoch_performance
Midnight SPO epoch performance data
# Table Description
This table compares expected versus produced blocks for each SPO in an epoch.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **spo_sk** | varchar | Stake pool operator key / identifier. |
| **epoch_no** | bigint | Epoch number. |
| **identity_label** | varchar | Identity label for the SPO in the epoch. |
| **expected_blocks** | bigint | Expected number of blocks for the SPO. |
| **produced_blocks** | bigint | Number of blocks produced by the SPO. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_epoch_performance](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_epoch_performance)
# SPO History
Source: https://docs.dune.com/data-catalog/midnight/spo_history
Midnight stake pool operator history
# Table Description
This table contains historical status records for stake pool operators (SPOs) by epoch.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **spo_hist_sk** | bigint | Primary key for the SPO history row. |
| **spo_sk** | varchar | Stake pool operator key / identifier. |
| **epoch_no** | bigint | Epoch number for this status record. |
| **status** | varchar | SPO status in the epoch. |
| **valid_from** | bigint | Start of validity for this status. |
| **valid_to** | bigint | End of validity for this status. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_history](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_history)
# SPO Identity
Source: https://docs.dune.com/data-catalog/midnight/spo_identity
Midnight stake pool operator identity
# Table Description
This table maps stake pool operators to pool IDs and consensus public keys.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **spo_sk** | varchar | Stake pool operator key / identifier. |
| **pool_id** | varchar | Pool identifier. |
| **sidechain_pubkey** | varchar | Sidechain public key. |
| **mainchain_pubkey** | varchar | Mainchain (Cardano) public key. |
| **aura_pubkey** | varchar | AURA consensus public key. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_identity](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_identity)
# SPO Stake History
Source: https://docs.dune.com/data-catalog/midnight/spo_stake_history
Midnight stake pool stake history
# Table Description
This table contains stake snapshots for Midnight pools, including live and active stake and delegator counts.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal stake history identifier. |
| **pool_id** | varchar | Pool identifier. |
| **mainchain_epoch** | bigint | Mainchain epoch associated with the snapshot. |
| **live_stake** | decimal(38,0) | Live stake for the pool. |
| **active_stake** | decimal(38,0) | Active stake for the pool. |
| **live_delegators** | bigint | Number of live delegators. |
| **live_saturation** | double | Live saturation ratio for the pool. |
| **declared_pledge** | decimal(38,0) | Declared pledge amount. |
| **live_pledge** | decimal(38,0) | Live pledge amount. |
| **recorded_at** | timestamp | Timestamp when the snapshot was recorded. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_stake_history](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=spo_stake_history)
# Transactions
Source: https://docs.dune.com/data-catalog/midnight/transactions
Midnight blockchain transactions data
# Table Description
This table contains transaction-level records on Midnight, including the parent block, transaction variant, hash, and protocol version.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal transaction identifier. |
| **block_id** | bigint | Foreign key to `midnight.blocks.id`. |
| **variant** | varchar | Transaction variant / type. |
| **hash** | varchar | Transaction hash. |
| **protocol_version** | bigint | Protocol version for the transaction. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=transactions)
# Unshielded UTXOs
Source: https://docs.dune.com/data-catalog/midnight/unshielded_utxos
Midnight unshielded UTXO data
# Table Description
This table tracks unshielded (public) UTXOs on Midnight, including create/spend transactions, owner, token type, and value.
## Column Descriptions
| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal UTXO identifier. |
| **creating_transaction_id** | bigint | Transaction that created the UTXO. |
| **spending_transaction_id** | bigint | Transaction that spent the UTXO (null if unspent). |
| **owner** | varchar | Owner address of the UTXO. |
| **token_type** | varchar | Token type held by the UTXO. |
| **value** | decimal(38,0) | Token amount held by the UTXO. |
| **intent_hash** | varchar | Intent hash associated with the output. |
| **output_index** | bigint | Output index within the creating transaction. |
| **ctime** | bigint | Creation time of the UTXO (network time representation). |
| **initial_nonce** | varchar | Initial nonce for the UTXO. |
| **registered_for_dust_generation** | boolean | Whether the UTXO is registered for DUST generation. |
| **\_updated_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested_at** | timestamp | Timestamp when this record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=unshielded_utxos](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=unshielded_utxos)
# near.actions
Source: https://docs.dune.com/data-catalog/near/actions
NEAR Protocol actions — function calls, transfers, and account operations.
## Table Description
The `near.actions` table contains comprehensive data related to transactions on the NEAR blockchain, including transaction metadata like `block_date` and `tx_hash`, execution statuses, receipts, and detailed action information when applicable.
In NEAR, a transaction can consist of one or more actions, signed by the sender's account and executed by the network. These actions may involve token transfers, smart contract invocations, staking, and more.
NEAR employs a unique transaction lifecycle where transactions are validated on the sender's shard, converted into receipts, and processed on the receiver's shard. This approach ensures efficient handling of cross-shard communication and data flow.
To gain a clearer understanding of how NEAR data flows, watch our [NEAR Data Flow video tutorial](/resources/learning/video-tutorials#near-data-flow) or visit the [NEAR Data Flow documentation](https://docs.near.org/concepts/data-flow/near-data-flow).
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date of the block when the action occurred. | date |
| block_height | The height of the block in which the action was executed. | bigint |
| block_time | The timestamp of when the block containing the action was produced. | timestamp(3) with time zone |
| block_hash | The unique hash of the block containing the action. | varchar |
| chunk_hash | The hash of the chunk within the block where the action is recorded. | varchar |
| shard_id | The shard ID in which the action was executed, relating to NEAR’s sharded architecture. | bigint |
| index_in_action_receipt | The index of the action within its corresponding receipt, indicating ordering of the action. | integer |
| receipt_id | The unique identifier of the receipt associated with this action. | varchar |
| gas_price | The gas price paid for executing the action, in yoctoNEAR (1 NEAR = 10^24 yoctoNEAR). | bigint |
| receipt_predecessor_account_id | The account that sent the receipt containing the action. | varchar |
| receipt_receiver_account_id | The account that receives the action. | varchar |
| receipt_conversion_gas_burnt | The amount of gas burnt during the conversion of the receipt. | bigint |
| receipt_conversion_tokens_burnt | The amount of gas burnt during the conversion of the receipt, divided by 10^8. | uint256 |
| tx_hash | The unique hash identifying the transaction containing the action. | varchar |
| tx_from | The account that initiated the transaction. | varchar |
| tx_to | The account that is the recipient of the transaction. | varchar |
| tx_signer_public_key | The public key of the account that signed the transaction. | varchar |
| tx_nonce | The nonce used by the account to ensure the transaction is unique. | bigint |
| tx_signature | The cryptographic signature that verifies the authenticity of the transaction. | varchar |
| tx_status | The status of the transaction, indicating success or failure. | varchar |
| is_delegate_action | Boolean flag indicating whether the action is a delegated action. | boolean |
| execution_gas_burnt | The amount of gas burnt during the execution of the action. | bigint |
| execution_tokens_burnt | The amount of raw NEAR token burnt during the execution of the action. | uint256 |
| execution_status | The status of the execution of the action. | varchar |
| execution_outcome_receipt_ids | Array of receipt IDs created as a result of the execution. | array(varchar) |
| action_kind | The type of action, such as FUNCTION_CALL, DELEGATE_ACTION, TRANSFER, STAKE, etc. | varchar |
| processed_time | The timestamp of when the action was processed by Dune. | timestamp(3) with time zone |
| action_function_call_args_parsed | Parsed (decoded) arguments of the function call action. | varchar |
| action_function_call_call_gas | The amount of gas attached to the function call action. | bigint |
| action_function_call_call_deposit | The amount of NEAR tokens attached to the function call action. | varchar |
| action_function_call_call_args_base64 | Base64 encoded arguments of the function call action. | varchar |
| action_function_call_call_method_name | The name of the method being called in the function call action. | varchar |
| action_delegate_signature | Signature of the delegation action. | varchar |
| action_delegate_delegate_action_actions | List of actions being delegated to another account. | array(row("functioncall")) |
| action_delegate_delegate_action_max_block_height | The maximum block height at which the delegated action can be executed. | varchar |
| action_delegate_delegate_action_nonce | Nonce of the delegated action for uniqueness. | varchar |
| action_delegate_delegate_action_public_key | Public key of the delegate executing the action. | varchar |
| action_delegate_delegate_action_receiver_id | Account receiving the delegated action. | varchar |
| action_delegate_delegate_action_sender_id | Account sending the delegated action. | varchar |
| action_delete_account_beneficiary_id | Account of the beneficiary receiving remaining balance upon account deletion. | varchar |
| action_delete_key_public_key | Public key being deleted from the account. | varchar |
| action_add_key_public_key | Public key being added to the account. | varchar |
| action_add_key_access_key_nonce | Nonce of the access key being added. | varchar |
| action_add_key_access_key_permission | Permissions granted to the newly added access key. | varchar |
| action_stake_public_key | Public key used for staking by the account. | varchar |
| action_stake_stake | Amount of NEAR tokens staked by the account. | varchar |
| action_transfer_deposit | Amount of NEAR tokens being transferred between accounts. | varchar |
| action_deploy_contract_code_sha256 | SHA256 hash of the code being deployed in the contract. | varchar |
| updated_at | Timestamp of when the record was last updated. | timestamp(3) with time zone |
| ingested_at | Timestamp of when the record was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=actions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=actions)
## Data Manipulation Tips
The `actions` data in NEAR can be complicated and nested, causing it hard to analyze sometimes. So here we give two examples on how to work array and json data to make it easier to analyze.
### Explode array of rows into separate rows with defined fields
When the action type is "DELEGATE_ACTION", the `action_delegate_delegate_action_actions` becomes an array of size n with rows of fields. We can utilize `CROSS JOIN UNNEST` to first explode the array, then use `.` directly to access the fields in the row.
Reference query [can be found here](https://dune.com/queries/4078275?sidebar=none).
```sql theme={null}
with exploded as (
select block_date
, block_height as block_height_executed
, tx_hash
, receipt_id -- receipt for this action (there are many actions included in one txn)
, execution_status
, cardinality(action_delegate_delegate_action_actions) as delegated_action_size -- how many function calls are being delegated
, action_delegate_delegate_action_sender_id as action_from
, action_delegate_delegate_action_receiver_id as action_to
-- Explode the array into rows
, actions.value as action_data
, actions.index as delegated_action_index
, action_delegate_delegate_action_actions as raw_delegated_actions -- raw nested list of delegated actions
/* explode by doing cross join unnest here*/
from near.actions CROSS JOIN UNNEST(action_delegate_delegate_action_actions) WITH ORDINALITY as actions(value, index)
where action_kind = 'DELEGATE_ACTION'
and cardinality(action_delegate_delegate_action_actions) >= 2
and receipt_id = '6DB2AzkLXzoU9CMj9GKSZi7y8dGxVrqrbtBsfpLVQCQ8'
and block_date = date('2024-09-17')
and block_height = 128251854
)
select block_date
, block_height_executed
, tx_hash
, receipt_id
, execution_status
, delegated_action_size -- how many function calls are being delegated
, action_from
, action_to
-- , typeof(action_data) -- row(args varchar, deposit varchar, gas bigint, method_name varchar)
/* below is how you can access the delegated function call info */
, action_data.args as function_call_args
, action_data.deposit as function_call_deposit
, action_data.gas as function_call_gas
, action_data.method_name as function_call_method_name
, delegated_action_index
, raw_delegated_actions -- raw nested list of delegated actions
from exploded
```
### Extract fields from JSON string
When the action type is "FUNCTION_CALL", the `action_function_call_args_parsed` becomes a JSON string. We can utilize `json_extract` with `$.` syntax to extract the fields from the JSON string.
Reference query [can be found here](https://dune.com/queries/4078309?sidebar=none).
```sql theme={null}
select block_date
, block_height as block_height_executed
, tx_hash
, receipt_id -- receipt for this action (there are many actions included in one txn)
, execution_status
, receipt_predecessor_account_id as action_from
, receipt_receiver_account_id as action_to
-- , typeof(args_parsed) as data_type
/* This is how you can get fields within each parsed function call args
- first examine the fields in the args_parsed for the tye of method `call_method_name`
- then parse accordingly
*/
, json_extract(args_parsed, '$.receiver_id') AS receiver_id
, json_extract(args_parsed, '$.amount') AS amount
, json_extract(args_parsed, '$.memo') AS memo
, call_method_name as call_method_name
, args_parsed as raw_call_args
, call_gas as call_gas
, call_deposit as call_deposit
, call_args_base64
, *
from near.function_call -- near.actions
where 1=1
and block_date = date('2023-09-15')
and call_method_name = 'ft_transfer'
limit 10
```
# near.balances
Source: https://docs.dune.com/data-catalog/near/balances
NEAR account balances — native NEAR token holdings by account.
## Table description
The `near.balances` table tracks account balance details on NEAR, including the liquid balance, staked amounts, and rewards for both main and lockup accounts.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| epoch_date | The date of the epoch when the balance was recorded. | date |
| epoch_block_height | The block height of the epoch when the balance was recorded. | bigint |
| account_id | The account whose balance is being tracked. | varchar |
| liquid | Amount of liquid NEAR tokens in the account. | double |
| storage_usage | The amount of storage usage associated with the account. | bigint |
| unstaked_not_liquid | The amount of unstaked but not liquid NEAR tokens in the account. | double |
| staked | The amount of staked NEAR tokens in the account. | double |
| reward | Reward tokens accumulated by the account from staking. | double |
| lockup_account_id | The ID of the lockup account associated with the account. | varchar |
| lockup_liquid | Amount of liquid NEAR tokens in the lockup account. | double |
| lockup_unstaked_not_liquid | The amount of unstaked but not liquid tokens in the lockup account. | double |
| lockup_staked | The amount of staked NEAR tokens in the lockup account. | double |
| lockup_reward | Reward tokens accumulated in the lockup account from staking. | double |
| processed_time | The time when the balance was processed. | date |
| updated_at | The time when this balance record was last updated. | timestamp(3) with time zone |
| ingested_at | The time when this balance record was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=balances)
# near.block_chunks
Source: https://docs.dune.com/data-catalog/near/block_chunks
NEAR block chunks — block data with chunk-level transaction groupings.
## Table description
The `near.block_chunks` table contains block chunk data on NEAR. Chunk of a block is a part of a block from a shard. The collection of chunks of the block forms the NEAR Protocol block.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| date | The date of the block where the chunk is included. | date |
| height | The block height at which the chunk was produced. | bigint |
| time | The timestamp of when the chunk was produced. | timestamp(3) with time zone |
| hash | The hash of the chunk. | varchar |
| prev_hash | The hash of the previous chunk in the chain. | varchar |
| total_supply | | uint256 |
| gas_price | Gas price paid for executing the chunk. | bigint |
| author_account_id | The account that produced the chunk. | varchar |
| epoch_id | The ID of the epoch in which the chunk was produced. | varchar |
| shard_id | The shard ID that contains the chunk. | bigint |
| chunk_hash | Hash of the chunk. | varchar |
| chunk_signature | The cryptographic signature validating the chunk. | varchar |
| chunk_gas_limit | Maximum gas limit for this chunk. | bigint |
| chunk_gas_used | Gas actually used in the chunk. | bigint |
| chunk_author_account_id | The account that produced this chunk. | varchar |
| processed_time | Timestamp when the chunk was processed into Dune. | timestamp(3) with time zone |
| updated_at | Timestamp when this chunk was last updated. | timestamp(3) with time zone |
| ingested_at | Timestamp when this chunk data was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=block_chunks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=block_chunks)
# near.circulating_supply
Source: https://docs.dune.com/data-catalog/near/circulating_supply
NEAR circulating supply snapshots — total and circulating NEAR over time.
## Table description
The `near.circulating_supply` table holds daily circulating and total supply of tokens in NEAR.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date of the block when the supply was recorded. | date |
| computed_at_block_timestamp | Timestamp of the block when the supply was computed. | timestamp(3) with time zone |
| computed_at_block_hash | Hash of the block at the time of supply computation. | varchar |
| computed_at_block_height | Block height at which the supply was computed. | bigint |
| circulating_tokens_supply | The circulating supply of tokens at the time of computation. | double |
| total_tokens_supply | The total supply of tokens at the time of computation. | double |
| processed_time | The timestamp when the supply data was processed. | timestamp(3) with time zone |
| updated_at | Timestamp of the last update to this record. | timestamp(3) with time zone |
| ingested_at | Timestamp when this data was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=circulating_supply](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=circulating_supply)
# near.ft_transfers
Source: https://docs.dune.com/data-catalog/near/ft_transfers
NEAR fungible token transfers — NEP-141 token movements.
## Table description
The `near.ft_transfers` table tracks all Fungible Token (FT) transfers in NEAR.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date when the FT transfer occurred. | date |
| block_height | The block height at the time of the FT transfer. | bigint |
| block_time | Timestamp when the block containing the FT transfer was produced. | timestamp(3) with time zone |
| block_hash | The unique hash of the block containing the FT transfer. | varchar |
| chunk_hash | The hash of the chunk within the block containing the FT transfer. | varchar |
| shard_id | Shard ID where the FT transfer was executed. | bigint |
| standard | The FT standard associated with the transfer (e.g., "nep141"). | varchar |
| token_id | ID of the Fungible Token involved in the transfer (e.g., "near"). | varchar |
| receipt_id | The receipt ID associated with the FT transfer. | varchar |
| contract_account_id | The contract account handling the FT transfer. | varchar |
| cause | The function name invoked to cause the FT transfer. | varchar |
| status | The status of the FT transfer (e.g., "SUCCESS_VALUE"). | varchar |
| event_memo | Memo attached to the FT transfer event. | varchar |
| event_index | Event index of the FT transfer event. | uint256 |
| affected_account_id | The account affected by the FT transfer, i.e. the "to" account. | varchar |
| involved_account_id | The account involved in the FT transfer, i.e. the "from" account. | varchar |
| delta_amount | The amount of FT tokens transferred. | decimal(38,0) |
| processed_time | Timestamp when the FT transfer data was processed. | timestamp(3) with time zone |
| updated_at | Timestamp when the FT transfer record was last updated. | timestamp(3) with time zone |
| ingested_at | Timestamp when the FT transfer data was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=ft_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=ft_transfers)
# near.function_call
Source: https://docs.dune.com/data-catalog/near/function_call
NEAR function call actions — contract method invocations with arguments.
## Table description
The `near.function_call` table contains flattened out details for records in the `actions` table of the `FUNCTION_CALL` type.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date of the block where the function call occurred. | date |
| block_time | The time when the block containing the function call was produced. | timestamp(3) with time zone |
| block_height | The block height at the time of the function call. | bigint |
| block_hash | The unique hash of the block containing the function call. | varchar |
| chunk_hash | The hash of the chunk where the function call is recorded. | varchar |
| shard_id | Shard ID where the function call was executed. | bigint |
| tx_hash | The transaction hash containing the function call. | varchar |
| tx_from | The account that initiated the function call. | varchar |
| tx_to | The account receiving the function call. | varchar |
| tx_status | Status of the function call (success or failure). | varchar |
| call_method_name | The method being called in the function call. | varchar |
| args_parsed | Parsed (decoded) arguments for the function call. | varchar |
| call_gas | Gas attached to the function call. | bigint |
| call_deposit | Amount of NEAR tokens attached to the function call. | varchar |
| call_args_base64 | Base64 encoded arguments of the function call. | varchar |
| index_in_action_receipt | The index of the function call within the receipt. | integer |
| receipt_id | The receipt ID associated with the function call. | varchar |
| gas_price | The gas price paid for executing the function call. | bigint |
| receipt_predecessor_account_id | The ID of the predecessor account for the receipt. | varchar |
| receipt_receiver_account_id | The ID of the receiver account for the receipt. | varchar |
| receipt_conversion_gas_burnt | The gas burnt during the conversion of the receipt. | bigint |
| receipt_conversion_tokens_burnt | The amount of raw NEAR burnt during the conversion of the receipt. | uint256 |
| execution_gas_burnt | Amount of gas burnt during the execution of the function call. | bigint |
| execution_tokens_burnt | Amount of raw NEAR token burnt during the execution of the function call. | uint256 |
| execution_status | The status of the execution outcome of the function call. | varchar |
| execution_outcome_receipt_ids | Array of receipt IDs created as a result of the function call. | array(varchar) |
| updated_at | The time when this function call record was last updated. | timestamp(3) with time zone |
| ingested_at | The time when this function call data was ingested into Dune. | timestamp(3) with time zone |
| processed_time | The time when the function call was processed. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=function_call](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=function_call)
## Data Manipulation Tips
The `actions` data in NEAR can be complicated and nested, causing it hard to analyze sometimes. So here we give two examples on how to work array and json data to make it easier to analyze.
### Explode array of rows into separate rows with defined fields
When the action type is "DELEGATE_ACTION", the `action_delegate_delegate_action_actions` becomes an array of size n with rows of fields. We can utilize `CROSS JOIN UNNEST` to first explode the array, then use `.` directly to access the fields in the row.
Reference query [can be found here](https://dune.com/queries/4078275?sidebar=none).
```sql theme={null}
with exploded as (
select block_date
, block_height as block_height_executed
, tx_hash
, receipt_id -- receipt for this action (there are many actions included in one txn)
, execution_status
, cardinality(action_delegate_delegate_action_actions) as delegated_action_size -- how many function calls are being delegated
, action_delegate_delegate_action_sender_id as action_from
, action_delegate_delegate_action_receiver_id as action_to
-- Explode the array into rows
, actions.value as action_data
, actions.index as delegated_action_index
, action_delegate_delegate_action_actions as raw_delegated_actions -- raw nested list of delegated actions
/* explode by doing cross join unnest here*/
from near.actions CROSS JOIN UNNEST(action_delegate_delegate_action_actions) WITH ORDINALITY as actions(value, index)
where action_kind = 'DELEGATE_ACTION'
and cardinality(action_delegate_delegate_action_actions) >= 2
and receipt_id = '6DB2AzkLXzoU9CMj9GKSZi7y8dGxVrqrbtBsfpLVQCQ8'
and block_date = date('2024-09-17')
and block_height = 128251854
)
select block_date
, block_height_executed
, tx_hash
, receipt_id
, execution_status
, delegated_action_size -- how many function calls are being delegated
, action_from
, action_to
-- , typeof(action_data) -- row(args varchar, deposit varchar, gas bigint, method_name varchar)
/* below is how you can access the delegated function call info */
, action_data.args as function_call_args
, action_data.deposit as function_call_deposit
, action_data.gas as function_call_gas
, action_data.method_name as function_call_method_name
, delegated_action_index
, raw_delegated_actions -- raw nested list of delegated actions
from exploded
```
### Extract fields from JSON string
When the action type is "FUNCTION_CALL", the `action_function_call_args_parsed` becomes a JSON string. We can utilize `json_extract` with `$.` syntax to extract the fields from the JSON string.
Reference query [can be found here](https://dune.com/queries/4078309?sidebar=none).
```sql theme={null}
select block_date
, block_height as block_height_executed
, tx_hash
, receipt_id -- receipt for this action (there are many actions included in one txn)
, execution_status
, receipt_predecessor_account_id as action_from
, receipt_receiver_account_id as action_to
-- , typeof(args_parsed) as data_type
/* This is how you can get fields within each parsed function call args
- first examine the fields in the args_parsed for the tye of method `call_method_name`
- then parse accordingly
*/
, json_extract(args_parsed, '$.receiver_id') AS receiver_id
, json_extract(args_parsed, '$.amount') AS amount
, json_extract(args_parsed, '$.memo') AS memo
, call_method_name as call_method_name
, args_parsed as raw_call_args
, call_gas as call_gas
, call_deposit as call_deposit
, call_args_base64
, *
from near.function_call -- near.actions
where 1=1
and block_date = date('2023-09-15')
and call_method_name = 'ft_transfer'
limit 10
```
# near.logs
Source: https://docs.dune.com/data-catalog/near/logs
NEAR execution logs — log output from smart contract execution.
## Table description
The `near.logs` table captures the output generated during the execution of smart contracts. They record key events and actions, such as token transfers or function calls, and are used for tracking, debugging, and monitoring contract activity. Logs help developers understand what happened during a transaction, making it easier to analyze and troubleshoot smart contract behavior.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date of the block where the log entry was generated. | date |
| block_height | The block height at which the log entry was generated. | bigint |
| block_time | The time when the block containing the log entry was produced. | timestamp(3) with time zone |
| execution_status | The status of the execution outcome associated with the log. | varchar |
| executor_account_id | The account that executed the transaction resulting in the log. | varchar |
| receipt_id | The receipt ID associated with the log. | varchar |
| index_in_execution_outcome_logs | Index of the log entry within the execution outcome, indicating ordering. | integer |
| log | The actual log message from the execution outcome. | varchar |
| event | Event description generated during execution. | varchar |
| processed_time | The time when the log data was processed. | timestamp(3) with time zone |
| updated_at | The time when the log record was last updated. | timestamp(3) with time zone |
| ingested_at | The time when the log data was ingested. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=logs](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=logs)
# near.nft_transfers
Source: https://docs.dune.com/data-catalog/near/nft_transfers
NEAR NFT transfers — NEP-171 non-fungible token movements.
## Table description
The `near.nft_transfers` table tracks all Non-Fungible Token (NFT) transfers in NEAR.
## Column Descriptions
| Column | Description | Type |
| - | - | - |
| block_date | The date when the NFT transfer occurred. | date |
| block_height | The block height at the time of the NFT transfer. | bigint |
| block_time | Timestamp when the block containing the NFT transfer was produced. | timestamp(3) with time zone |
| block_hash | The unique hash of the block containing the NFT transfer. | varchar |
| chunk_hash | The hash of the chunk within the block containing the NFT transfer. | varchar |
| shard_id | Shard ID where the NFT transfer was executed. | bigint |
| standard | The NFT standard associated with the transfer (e.g., "nep171"). | varchar |
| token_id | ID of the Non-Fungible Token being transferred. | varchar |
| receipt_id | The receipt ID associated with the NFT transfer. | varchar |
| contract_account_id | The contract account handling the NFT transfer. | varchar |
| cause | The function name invoked to cause the NFT transfer. | varchar |
| status | The status of the NFT transfer (e.g., "SUCCESS_VALUE", "SUCCESS_RECEIPT_ID"). | varchar |
| event_memo | Memo attached to the NFT transfer event. | varchar |
| event_index | Event index of the NFT transfer event. | uint256 |
| old_owner_account_id | Old owner account of the NFT, i.e. the "from" account. | varchar |
| new_owner_account_id | New owner account of the NFT, i.e. the "to" account. | varchar |
| authorized_account_id | Account authorized to perform the NFT transfer. | varchar |
| processed_time | Timestamp when the NFT transfer data was processed. | timestamp(3) with time zone |
| updated_at | Timestamp when the NFT transfer record was last updated. | timestamp(3) with time zone |
| ingested_at | Timestamp when the NFT transfer data was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=nft_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=near\&table_name_t6f0df=nft_transfers)
# NEAR Data
Source: https://docs.dune.com/data-catalog/near/overview
NEAR blockchain data on Dune
## What is NEAR?
NEAR is a public, sharded, proof-of-stake blockchain designed to provide scalability, security, and user-friendliness for decentralized applications (dApps). With its unique account model, sharding mechanism, and developer-friendly environment, NEAR enables fast transactions at low costs while maintaining decentralization. It shares design goals with Ethereum 2.0 but includes optimizations for ease of use and performance.
NEAR’s sharding system, Nightshade, enables horizontal scaling, meaning the network’s capacity grows as the number of validators and nodes increases. This architecture, combined with a focus on developer tools and user experience, makes NEAR an ideal platform for building scalable Web3 applications.
## Key Concepts of NEAR
NEAR’s infrastructure is built on several key components that ensure its scalability, performance, and ease of use. These components work together to enable developers to build on-chain applications while providing a smooth experience for users.
### **Sharding with Nightshade**
Nightshade is NEAR’s solution to scaling the blockchain by splitting the network into multiple shards, each processing its own set of transactions. This sharding allows the blockchain to handle more transactions as the network grows, enabling high throughput and low-latency finality.
### **Proof-of-Stake Consensus**
NEAR uses a proof-of-stake consensus mechanism. Validators are chosen through an auction process based on the amount of NEAR tokens they stake. This system incentivizes honest behavior while ensuring decentralization, as anyone can become a validator if they meet the staking requirements.
### **NEAR Accounts and Access Keys**
NEAR introduces a human-readable [account system (e.g., `alice.near`)](https://docs.near.org/concepts/protocol/account-id) that simplifies interaction with the blockchain. Each account can have [multiple keys with different levels of access (Full-Access and Function-Call Keys)](https://docs.near.org/concepts/protocol/access-keys), allowing for more granular permission controls and better user experience. This flexibility makes it easier for developers to manage dApp permissions and onboard users.
### **Gas (Execution Fees)**
Gas is an essential part of NEAR's network, used to cover the cost of transactions and prevent network abuse. Each transaction or action executed on the NEAR blockchain requires gas, which is measured in gas units. The cost is based on network demand, and gas fees are paid in NEAR tokens. To learn more, [visit here.](https://docs.near.org/concepts/protocol/gas#gas-units--gas-price)
### **Transaction Lifecycle & Data Flow 🌊**
NEAR employs a unique transaction lifecycle where transactions are first validated on the sender’s shard, turned into receipts, and then processed on the receiver’s shard. This process ensures efficient transaction routing, even in cross-shard communication. After transaction execution, any remaining gas is refunded to the sender, ensuring efficient use of resources.
To understand how NEAR data flows, watch our [NEAR Data Flow video tutorial](/resources/learning/video-tutorials#near-data-flow) or visit the [NEAR documentation](https://docs.near.org/concepts/data-flow/near-data-flow).
### **Anatomy of a Transaction 🔎**
A transaction in NEAR consists of one or more actions that are signed by the sender’s account and executed by the network. These actions could include transferring tokens, invoking smart contracts, or staking.
#### Key Components of a Transaction
* **Signer**: The account that signs the transaction.
* **Receiver**: The account that will execute the actions.
* **Actions**: Operations like `FunctionCall`, `Transfer`, `DeployContract`, etc. A transaction can include multiple actions, but all are executed on the same receiver.
* **PublicKey**: The public key used to sign the transaction (so the network can verify the signature).
* **Nonce**: A number that is incremented for each transaction sent by the Signer.
* **BlockHash**: The hash of a recent block, to limit the time-validity of the transaction.
#### Types of Actions
* **FunctionCall**: Invoke a function on a contract (optionally attaching NEAR to the call).
* **Transfer**: Move NEAR tokens between accounts.
* **DeployContract**: Deploy a new contract to an account.
* **CreateAccount**: Create a new sub-account under an existing account.
* **DeleteAccount**: Remove an account and transfer its remaining balance to a beneficiary.
* **AddKey / DeleteKey**: Add or remove public keys associated with an account.
* **Stake**: Stake NEAR tokens to become a validator or delegate stake to one.
* **DelegateActions**: Execute a meta-transaction on behalf of another account.
> [card] [NEAR documentation](https://docs.near.org/)
>
> Explore comprehensive documentation on NEAR, detailing its architecture, protocol, and resources for developers.
## NEAR Data on Dune
NEAR blockchain data is partitioned and categorized to provide developers and users with an easily accessible dataset to interact with and analyze the network’s on-chain activity. The primary data tables in Dune for NEAR include the following:
> [card] [Actions](/data-catalog/near/actions)
>
> Records actions such as transfers, contract deployments, and function calls performed within the NEAR network.
> [card] [Block Chunks](/data-catalog/near/block_chunks)
>
> Stores chunk-level data, with each block consisting of multiple chunks from different shards.
> [card] [Circulating Supply](/data-catalog/near/circulating_supply)
>
> Table holding daily circulating and total supply of tokens in NEAR.
> [card] [FT Transfers](/data-catalog/near/ft_transfers)
>
> Tracks fungible token (FT) transfers across the NEAR network.
> [card] [Function Calls](/data-catalog/near/function_call)
>
> Contains flattened out actions of the `function_call` type.
> [card] [NFT Transfers](/data-catalog/near/nft_transfers)
>
> Captures non-fungible token (NFT) transfers, including token ID and sender/receiver details.
> [card] [Balances](/data-catalog/near/balances)
>
> Stores account balance data, including liquid, staked, and locked balances.
> [card] [Logs](/data-catalog/near/logs)
>
> This table captures the output generated during the execution of smart contracts.
# Block Events
Source: https://docs.dune.com/data-catalog/noble/block_events
Noble blockchain block events data
# Table Description
This table contains data about block-level events and attributes in the Noble blockchain, including event types, sources, and associated metadata. The schema is modeled after Sei's Cosmos block events but adapted for Noble's context.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the event occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **event_index** | bigint | A unique index for events within the block. |
| **event_type** | varchar | The type of event that was triggered. |
| **event_source** | varchar | The source of the event. |
| **attribute_key** | varchar | The key of the event attribute. |
| **attribute_value** | varchar | The value of the event attribute. |
| **attribute_index** | bigint | A unique index for attributes within the event. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=block_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=block_events)
# Blocks
Source: https://docs.dune.com/data-catalog/noble/blocks
Noble blockchain blocks data
# Table Description
This table contains data about blocks in the Noble blockchain, including block headers, consensus data, and transaction information.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block, a unique identifier for each block. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the block belongs. |
| **proposer_address** | varchar | The address of the validator proposing the block. |
| **validators_hash** | varchar | The hash of the validators set for the block. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=blocks)
# Bridge Transfers
Source: https://docs.dune.com/data-catalog/noble/bridge_transfers
Noble blockchain cross-chain bridge transfer data
# Table Description
This table contains data about cross-chain bridge transfers in the Noble blockchain, including transfer details, source and destination chains, and transfer status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the transfer occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **action_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **receiver** | varchar | The address of the receiver. |
| **token_amount** | decimal(38, 0) | The amount of tokens transferred. |
| **token_denom** | varchar | The denomination of the token. |
| **src_domain** | varchar | The source domain of the transfer. |
| **dst_domain** | varchar | The destination domain of the transfer. |
| **protocol** | varchar | The protocol used for the transfer. |
| **protocol_metadata** | varchar | Additional metadata related to the protocol. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=bridge_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=bridge_transfers)
# CCTP Transactions
Source: https://docs.dune.com/data-catalog/noble/cctp_transactions
Noble blockchain Cross-Chain Transfer Protocol transactions data
# Table Description
This table contains data about Cross-Chain Transfer Protocol (CCTP) transactions in the Noble blockchain, including token transfers, source and destination chains, and transfer status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the transaction occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **action_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **receiver** | varchar | The address of the receiver. |
| **token_amount** | decimal(38, 0) | The amount of tokens transferred. |
| **token_denom** | varchar | The denomination of the token. |
| **src_domain** | varchar | The source domain of the transaction. |
| **dst_domain** | varchar | The destination domain of the transaction. |
| **authorized_caller** | varchar | The address of the authorized caller. |
| **contract** | varchar | The contract address involved in the transaction. |
| **nonce** | varchar | The nonce associated with the transaction. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=cctp_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=cctp_transactions)
# Message Events
Source: https://docs.dune.com/data-catalog/noble/message_events
Noble blockchain message events data
# Table Description
This table contains data about message-related events in the Noble blockchain, including message types, attributes, and associated metadata.
## Table Schema
| Column name | Description | Type |
| - | - | - |
| **block_date** | The date of the block. | date |
| **block_height** | The height of the block where the event occurred. | bigint |
| **block_timestamp** | Timestamp when the block was validated. | timestamp(3) with time zone |
| **chain_id** | The ID of the chain where the block belongs. | varchar |
| **tx_id** | The hash of the transaction where the event occurred. | varchar |
| **tx_index** | The index of the transaction in the block. | bigint |
| **message_index** | The index of the message in the transaction. | bigint |
| **event_index** | A unique index for events within the message. | bigint |
| **event_type** | The type of event that was triggered. | varchar |
| **attribute_key** | The key of the event attribute. | varchar |
| **attribute_value** | The value of the event attribute. | varchar |
| **attribute_index** | A unique index for attributes within the event. | bigint |
| **updated_at** | Timestamp of when the record was last updated. | timestamp(3) with time zone |
| **ingested_at** | Timestamp of when the record was ingested into Dune. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=message_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=message_events)
# Noble Data
Source: https://docs.dune.com/data-catalog/noble/overview
Noble blockchain data on Dune
## What is Noble?
Noble is a Cosmos application-specific blockchain purpose-built for native asset issuance. It brings the efficiency and interoperability of native assets to the wider Cosmos ecosystem, starting with USDC. Noble's vision is to be the world's premier issuance hub for digital assets that connect to other blockchains seamlessly.
## Key Features
* **Native Asset Issuance**: Purpose-built for efficient and secure token issuance
* **Cosmos Integration**: Built on Cosmos-SDK for seamless interoperability
* **Smart Contract Capabilities**: Industry-standard asset issuance functionality
* **IBC Compatibility**: Permissionless connection to other Cosmos chains
* **Proof of Authority**: Currently uses a trusted validator set with economic security
## Noble Data on Dune
Noble blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Blocks](/data-catalog/noble/blocks)
>
> Contains each validated block in the chain
> [card] [Block Events](/data-catalog/noble/block_events)
>
> Contains all block-level events and attributes in the chain, partitioned by event_index
> [card] [Bridge Transfers](/data-catalog/noble/bridge_transfers)
>
> Cross-chain bridge transfer data
> [card] [CCTP Transactions](/data-catalog/noble/cctp_transactions)
>
> Cross-Chain Transfer Protocol transactions
> [card] [Message Events](/data-catalog/noble/message_events)
>
> Contains all events and their corresponding attributes partitioned by message_index
> [card] [Swaps](/data-catalog/noble/swaps)
>
> Token swap and liquidity pool data
> [card] [Transactions](/data-catalog/noble/transactions)
>
> Contains relevant data associated with each transaction
> [card] [Transaction Messages](/data-catalog/noble/tx_messages)
>
> Contains all messages submitted to the blockchain
> [card] [Validators](/data-catalog/noble/validators)
>
> Maps validator addresses to monikers (human-readable description) and other metadata
# Swaps
Source: https://docs.dune.com/data-catalog/noble/swaps
Noble blockchain token swap transactions data
# Table Description
This table contains data about token swap transactions in the Noble blockchain, including swap details, token pairs, and execution status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the swap occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **event_index** | bigint | The index of the event in the message. |
| **action_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **token_amount_in** | decimal(38, 0) | The amount of tokens swapped in. |
| **token_denom_in** | varchar | The denomination of the token swapped in. |
| **token_amount_out** | decimal(38, 0) | The amount of tokens swapped out. |
| **token_denom_out** | varchar | The denomination of the token swapped out. |
| **routes** | varchar | The routes used for the swap. |
| **fees** | varchar | The fees associated with the swap. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=swaps](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=swaps)
# Transactions
Source: https://docs.dune.com/data-catalog/noble/transactions
Noble blockchain transactions data
# Table Description
This table contains data about transactions in the Noble blockchain, including transaction details, gas usage, and execution status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_height** | bigint | The height of the block where the transaction occurred. |
| **chain_id** | varchar | The ID of the chain where the transaction occurred. |
| **tx_id** | varchar | The unique ID of the transaction. |
| **tx_info** | varchar | Information related to the transaction. |
| **tx_log_message** | varchar | The log message associated with the transaction. |
| **memo** | varchar | A memo associated with the transaction. |
| **fee** | varchar | The fee associated with the transaction. |
| **tx_code** | bigint | The result code of the transaction. |
| **tx_index** | bigint | The index of the transaction within the block. |
| **gas_used** | bigint | The amount of gas used by the transaction. |
| **gas_wanted** | bigint | The amount of gas requested by the transaction. |
| **schema_version** | bigint | The schema version for the transaction data. |
| **fee_coins** | varchar | The coins used to pay the transaction fee. |
| **fee_granter** | varchar | The address granting the fee for the transaction. |
| **fee_payer** | varchar | The address paying the fee for the transaction. |
| **gas_limit** | bigint | The gas limit set for the transaction. |
| **single_sign_mode** | bigint | The signing mode for single-signature transactions. |
| **multi_sign_json** | varchar | JSON structure for multi-signature transactions. |
| **timeout_height** | varchar | The timeout height set for the transaction. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=transactions)
# Transaction Messages
Source: https://docs.dune.com/data-catalog/noble/tx_messages
Noble blockchain transaction messages data
# Table Description
This table contains data about messages contained within transactions in the Noble blockchain, including message types, content, and associated metadata.
> [!TIP]
>
> On execution, transactions from Cosmos emit data in two formats:
>
> * Messages (`noble.tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
> * Events (`noble.message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
> * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **block_date** | date | The date of the block. |
| **block_height** | bigint | The height of the block where the message occurred. |
| **block_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **chain_id** | varchar | The ID of the chain where the message belongs. |
| **tx_id** | varchar | The hash of the transaction containing the message. |
| **tx_index** | bigint | The index of the transaction in the block. |
| **message_index** | bigint | The index of the message in the transaction. |
| **message_type** | varchar | The type of message. |
| **message** | varchar | The value/content of the message. |
| **schema_version** | bigint | The version of the schema in provider database. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=tx_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=tx_messages)
# Validators
Source: https://docs.dune.com/data-catalog/noble/validators
Noble blockchain validators data
# Table Description
This table contains data about validators in the Noble blockchain, including their performance metrics, voting power, and status.
## Column Descriptions
| Column name | Data Type | Description |
| - | - | - |
| **operator_address** | varchar | The operator address of the validator. |
| **account_address** | varchar | The account address of the validator. |
| **consensus_pubkey** | varchar | The consensus public key of the validator. |
| **jailed** | boolean | Indicates whether the validator is jailed. |
| **status** | varchar | The status of the validator (e.g., active, inactive). |
| **tokens** | varchar | The number of tokens held by the validator. |
| **moniker** | varchar | The moniker or name of the validator. |
| **identity** | varchar | The identity information of the validator. |
| **website** | varchar | The website of the validator. |
| **security_contact** | varchar | The security contact information for the validator. |
| **details** | varchar | Additional details about the validator. |
| **unbonding_height** | bigint | The block height at which the validator started unbonding. |
| **unbonding_time** | varchar | The time when the validator will complete unbonding. |
| **commission_rate** | double | The commission rate charged by the validator. |
| **commission_max_rate** | double | The maximum commission rate allowed for the validator. |
| **commission_max_change_rate** | double | The maximum rate at which the validator can change its commission. |
| **commission_update_time** | varchar | The time when the validator last updated its commission. |
| **min_self_delegation** | varchar | The minimum self-delegation required for the validator. |
| **snapshot_height** | bigint | The block height at which the snapshot was taken. |
| **snapshot_time** | varchar | The time when the snapshot was taken. |
| **updated_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=validators](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=noble\&table_name_t6f0df=validators)
# Data Catalog
Source: https://docs.dune.com/data-catalog/overview
Explore Dune's comprehensive blockchain data catalog — raw, decoded, and curated datasets across 100+ blockchains, accessible via the web app, API, and Datashare.
## Everything Onchain, One Platform
Raw, decoded, and curated datasets across 100+ blockchains — all queryable from a single platform. Whether you're building analytics, powering applications, or feeding data pipelines, every dataset is accessible through the [Data Hub](https://dune.com), [Data API](/api-reference/overview/introduction), or [Datashare](/datashare/datashare).
> [!NOTE]
>
> **Access options:** [Data Hub](https://dune.com) · [Data API](/api-reference/overview/introduction) · [Datashare](/datashare/datashare)
***
## How Our Data Is Organized
Dune's data catalog has three layers, each building on the one below:
| Layer | What It Contains | Best For |
| - | - | - |
| **Raw** | Block, transaction, log, and trace data indexed directly from nodes | Full chain history, custom analysis, building your own models |
| **Decoded** | Smart contract events and function calls parsed using verified ABIs | Protocol-specific analysis, contract interactions, event monitoring |
| **Curated** | Cleaned, normalized datasets built and maintained by Dune's data team | Cross-chain analytics, market intelligence, production data pipelines |
Most enterprise use cases start with **curated data** — pre-built, validated datasets that work across chains without writing complex raw queries.
***
## Access Tiers: Public vs Gated Datasets
Every dataset in Dune's catalog belongs to one of two access tiers:
| Tier | What It Means | Who Can Query It |
| - | - | - |
| 🟢 **Public** | Standard Dune datasets. Available to every user without an additional entitlement. | All plans (Free, Analyst, Plus, Enterprise) |
| 🔒 **Gated** | Premium datasets. Discoverable to everyone but require an entitlement on your team before you can query them. | Workspaces granted access by Dune |
> [!NOTE]
>
> **How gating actually works.** Gating is an *App-side, per-team entitlement* — it's not a property of the table itself. A gated table can still show up in the data explorer and in `searchTables`/`GET /v1/datasets/*` responses with `visibility: public`, but running a query against it requires an active entitlement on your workspace. The authoritative gated list is maintained in the **Dune Data Verticals** registry and reflected below.
The vast majority of the catalog is Public — every raw chain table, every decoded event/call table, every community/partner dataset, the Dune Index, and many curated datasets. Gated datasets are a defined list of premium collections that Dune sells as products.
### Currently gated datasets
> [!NOTE]
>
> **Sidebar signal.** Every gated table page in the left navigation carries a **`Gated`** tag next to its title. Pages without a tag are Public. Use the tag as a quick, in-context signal while browsing the catalog.
| Dataset | Gated tables | Chains / notes | Docs |
| - | - | - | - |
| **Stablecoins** | The entire collection — every `stablecoins_.*` table (`transfers`, `balances`, `activity_enriched`, `balances_enriched`) plus `stablecoins_multichain.{transfers, balances, tokens}`. | 39 EVM chains, Solana, Tron, XRPL, multichain | [View →](/data-catalog/curated/stablecoins/overview) |
| **Token Transfers (non-EVM & multichain)** | `tokens_multichain.transfers`, `tokens_aptos.transfers`, `tokens_stellar.transfers`, `tokens_sui.transfers`, `tokens_xrpl.transfers` | Multichain view + Aptos, Stellar, Sui, XRPL. The per-chain `tokens_evm.transfers`, `tokens_solana.transfers`, and `tokens_tron.transfers` stay Public. | [View →](/data-catalog/curated/token-transfers/overview) |
| **EVM Balances** | All 72 balance tables — 24 EVM chains × `{latest, updates, daily_updates}` (arbitrum, avalanche_c, base, bnb, celo, ethereum, flare, gnosis, hyperevm, ink, kaia, linea, mantle, megaeth, monad, optimism, plasma, polygon, robinhood, sei, sonic, unichain, worldchain, zksync) | Sold as an Enterprise add-on. `solana_utils.latest_balances` remains Public. | [View →](/data-catalog/curated/balances/overview) |
| **Prediction Markets** | Most of the collection: Polymarket `polymarket_polygon.{market_trades, market_details, market_prices_hourly, combo_trades, combo_details, combo_actions, combo_prices_hourly, positions, ohlcv_hourly, open_interest_hourly, market_actions}`, Kalshi `kalshi.{market_trades, market_details, ohlcv_hourly, open_interest_hourly}`, Hyperliquid HIP-4 `hip4_hyperliquid.{market_details, market_trades, ohlcv_hourly, open_interest_hourly, positions_daily}`, and the cross-venue `prediction_markets.{markets, trades, ohlcv_hourly, open_interest_hourly}` rollups. | Polygon (Polymarket) + Hyperliquid (HIP-4) + off-chain (Kalshi). Public tables: Polymarket `users_address_lookup`; Kalshi `market_report`, `trade_report`. | [View →](/data-catalog/curated/prediction-markets/overview) |
| **Payments** | `payments.card_transactions`, `payments.agentic_payments`, `payments.commerce_flows` | EVM chains, Solana, Tron | [View →](/data-catalog/curated/payments/overview) |
| **Real-World Assets (RWAs)** | The entire RWA collection — `rwa_multichain.{tokens, tokens_reference_data, product_reference_data, balances, balances_enriched, supply, supply_changes, transfers, trades, prices, nav, nav_intervals, unit_conversions}` and `rwa_hyperliquid.{markets, perp_trades, perp_metrics_hourly, perp_metrics_daily, perp_positions_hourly}`. | 24 chains (EVM + Solana, Aptos, Sui, XRPL, Stellar) plus Hyperliquid HIP-3 synthetic perps. | [View →](/data-catalog/curated/rwa/overview) |
| **Perpetuals Trading** | The entire collection — `hyperliquid.{perp_market_details, perp_market_metadata, perp_trades, perp_market_metrics_hourly, perp_market_metrics_daily, perp_positions_hourly, perp_accounts_daily, perp_oracle_prices, perp_orderbook_1m}`. | Hyperliquid, first-party and HIP-3 builder-deployed perpetual markets. | [View →](/data-catalog/curated/perpetuals/overview) |
Every gated dataset page carries a **Gated dataset** callout at the top, and every gated table page shows a **`Gated`** tag in the sidebar, so you can spot the gating in-context.
### What stays Public
* Every raw / canonical chain table across [EVM](/data-catalog/evm/ethereum/overview), [Solana](/data-catalog/solana/overview), and all other chains.
* Every decoded event/call table (EVM ABIs, Solana IDLs), including the `ethereum.logs_decoded` collection.
* The three per-chain token-transfer tables: `tokens_evm.transfers`, `tokens_solana.transfers`, `tokens_tron.transfers`.
* Labels & entity attributions: `cex.{addresses, deposit_addresses, flows}`, `labels.ens`, `safe.safes_all`, and the wider [Labels](/data-catalog/curated/labels/overview) collection.
* Solana balance table (`solana_utils.latest_balances`).
* **Prediction Markets (Public tables):** Polymarket `polymarket_polygon.users_address_lookup` and Kalshi `kalshi.{market_report, trade_report}`. Everything else in the Prediction Markets collection is Gated.
* All other curated datasets not listed as gated above — DEX Trades, NFT Trades, Prices, Token Metadata, Bridges, Lending, Staking, Gas & Fees, Rollup Economics, Utilities, Vaults.
* All [community and partner](#partner-data) datasets and the [Dune Index](#dune-index).
> [!NOTE]
>
> **Need access to a gated dataset?** [Contact the Dune team](https://dune.com/enterprise#contact-form) to enable your workspace.
***
## Curated Datasets
Curated datasets are where Dune adds the most value. Built and maintained by Dune's data team, each dataset normalizes data from hundreds of protocols across dozens of chains into a single, consistent schema.
The **Access** column shows whether the dataset is Public (🟢) or Gated (🔒). See [Access Tiers](#access-tiers-public-vs-gated-datasets) above for the full gated table list.
| Category | Dataset | Description | Coverage | Access | Docs |
| - | - | - | - | :-: | - |
| **Trading & Markets** | DEX Trades | Trade execution data across decentralized exchanges | 50 EVM chains, Solana | 🟢 Public | [View →](/data-catalog/curated/dex-trades/overview) |
| | NFT Trades | NFT marketplace trades, mints, and metadata | 12 chains (EVM + Solana) | 🟢 Public | [View →](/data-catalog/curated/nft-trades/overview) |
| | Prediction Markets | Polymarket, Kalshi, and Hyperliquid HIP-4 market activity, positions, and pricing | Polygon, Hyperliquid, Off-chain | 🔒 Gated (most tables, see [Prediction Markets](/data-catalog/curated/prediction-markets/overview)) · 🟢 Public (Polymarket `users_address_lookup`, Kalshi `market_report`/`trade_report`) | [View →](/data-catalog/curated/prediction-markets/overview) |
| | Real-World Assets (RWAs) | Tokenized treasuries, equities, commodities, and synthetic RWA perpetuals — registry, holders/supply, prices and NAV, and activity | 24 chains (EVM + Solana, Aptos, Sui, XRPL, Stellar) + Hyperliquid HIP-3 | 🔒 Gated (entire collection) | [View →](/data-catalog/curated/rwa/overview) |
| | Perpetuals Trading | Perpetual futures venue-wide — market reference, per-fill trades, hourly and daily market metrics, per-account positions and activity, oracle prices, and order book snapshots | Hyperliquid (first-party + HIP-3) | 🔒 Gated (entire collection) | [View →](/data-catalog/curated/perpetuals/overview) |
| **Assets & Pricing** | Token Transfers | Fungible token transfer events across EVM and non-EVM ecosystems | All EVM, Solana, Aptos, Stellar, Sui, XRPL | 🟢 Public (EVM / Solana / Tron) · 🔒 Gated (multichain, Aptos, Stellar, Sui, XRPL) | [View →](/data-catalog/curated/token-transfers/overview) |
| | Balances | Current and historical token balances by address | 24 EVM chains, Solana | 🔒 Gated (EVM) · 🟢 Public (Solana) | [View →](/data-catalog/curated/balances/overview) |
| | Prices | Token pricing at minute, hourly, and daily granularity | 70+ chains | 🟢 Public | [View →](/data-catalog/curated/prices/overview) |
| | Token Metadata | Token names, symbols, decimals, and contract addresses | All EVM, Solana | 🟢 Public | [View →](/data-catalog/curated/token-metadata/overview) |
| | Stablecoins | Stablecoin transfers, balances, and activity classification | 39 EVM, Solana, Tron, XRPL | 🔒 Gated (entire collection — foundation `transfers`/`balances`, `*_enriched`, and `stablecoins_multichain.*`) | [View →](/data-catalog/curated/stablecoins/overview) |
| | Payments | Card, agentic, and commerce-flow payment activity across stablecoin rails | EVM, Solana, Tron | 🔒 Gated | [View →](/data-catalog/curated/payments/overview) |
| **DeFi & Cross-Chain** | CEX Flows | Token flows to/from centralized exchanges with entity identification | 29 chains | 🟢 Public | [View →](/data-catalog/curated/cex-flows/overview) |
| | Bridges | Cross-chain token transfers — deposits, withdrawals, and flows | 41 EVM chains | 🟢 Public | [View →](/data-catalog/curated/bridges/overview) |
| | Lending | Supply, borrow, flash loans, and liquidations across lending protocols | 15 EVM chains | 🟢 Public | [View →](/data-catalog/curated/lending/overview) |
| | Staking | Ethereum beacon chain deposits, withdrawals, and entity identification | Ethereum | 🟢 Public | [View →](/data-catalog/curated/staking/overview) |
| | Vaults | Decoded vault protocol activity across lending, liquid staking, and DeFi yield | 6+ chains | 🟢 Public | [View →](/data-catalog/curated/vaults/overview) |
| **Identity, Costs & Utilities** | Labels | Address attribution — exchanges, protocols, DAOs, entities | Cross-chain | 🟢 Public | [View →](/data-catalog/curated/labels/overview) |
| | Gas & Fees | Transaction-level fee data with L2 fee breakdowns | 55 EVM chains, Solana | 🟢 Public | [View →](/data-catalog/curated/gas-fees/overview) |
| | Rollup Economics | L2 rollup profitability — revenue vs L1 posting costs | 10-25 rollups | 🟢 Public | [View →](/data-catalog/curated/rollup-economics/overview) |
| | Utilities | Time-series scaffolding tables (days, hours, minutes) | Universal | 🟢 Public | [View →](/data-catalog/curated/utilities/overview) |
> [!TIP]
>
> Each dataset page includes example SQL queries for common workflows — from compliance monitoring and portfolio valuation to protocol benchmarking and market intelligence.
***
## Blockchain Coverage
Dune indexes raw, decoded, and curated data across 100+ blockchains. The table below shows exactly what's available for each chain, derived from documented data catalog pages.
| VM | Chain | Raw | Decoded | DEX | Transfers | Balances | Prices | CEX | NFT | Labels | Bridges | Gas | Stablecoins |
| - | - | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| **SVM** | Solana | ✅ | ✅ IDL | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
| **EVM** | Abstract | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | ApeChain | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Arc | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **EVM** | Arbitrum | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Arbitrum Nova | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Avalanche | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | B3 | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Base | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Beacon | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **EVM** | Berachain | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Blast | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | BNB | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | BOB | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Boba | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Celo | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Corn | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Cronos | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
| **EVM** | Degen | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Ethereum | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Fantom | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Flare | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Gnosis | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Hemi | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Henesys | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | HyperEVM | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Ink | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | KAIA | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Katana | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Lens | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Linea | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Mantle | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | MegaETH | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Mezo | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Monad | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Monad Testnet | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
| **EVM** | Morph | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | opBNB | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Optimism | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Peaq EVM | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Plasma | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Plume | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Polygon | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Polygon zkEVM | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | RISE | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ |
| **EVM** | Robinhood | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
| **EVM** | Ronin | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Scroll | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Sei | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Sepolia | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **EVM** | Shape | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Sonic | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Somnia | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Sophon | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Story | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Superseed | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Tac | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | Taiko | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **EVM** | Tezos EVM | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ |
| **EVM** | Tron | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ |
| **EVM** | Unichain | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Viction | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| **EVM** | World Chain | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | X Layer | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
| **EVM** | zkSync | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **EVM** | Zora | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **Move** | Aptos | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| **Move** | Sui | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Bitcoin** | Bitcoin | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| **Substrate** | Polkadot | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Substrate** | Peaq | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **StarkVM** | Starknet | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Echelon | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Flow | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Fuel | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Initia | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Midnight | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | NEAR | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Noble | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Stellar | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | THORChain | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | TON | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| **Other** | XRPL | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Other** | Yominet | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
> [!NOTE]
>
> **Need a chain that's not listed?** We're always expanding coverage. [Talk to our team →](https://dune.com/enterprise)
### Hyperliquid
Hyperliquid is a high-performance L1 built for onchain order book trading. Dune currently provides **market data** — real-time and historical order book, funding rates, and trading activity via `hyperliquid.market_data`.
Additional Hyperliquid L1 data is coming soon.
> [card] [Hyperliquid Market Data](/data-catalog/community/hyperliquid/overview)
>
> Explore available Hyperliquid tables — order book snapshots, funding rates, and trade history.
> [card] [Get Early Access](https://dune.com/enterprise)
>
> Need more Hyperliquid data? Talk to our team about early access.
### Protocols
Protocol-level datasets provide specialized data beyond standard blockchain indexing:
| Protocol | Description | Docs |
| - | - | - |
| **Kalshi** | Prediction market data — event contracts, trades, and settlement | [View →](/data-catalog/kalshi/overview) |
| **LayerZero** | Cross-chain messaging and bridging data | [View →](/data-catalog/layerzero/overview) |
| **Succinct** | ZK proof generation and verification data | [View →](/data-catalog/succinct/overview) |
***
## Custom & Raw Access
For teams that need to go beyond curated datasets — build your own models, query raw blockchain data, or bring your own data into Dune:
> [card] [Raw Tables](/data-catalog/evm/ethereum/overview)
>
> Block, transaction, log, and trace data indexed directly from nodes across all supported chains — [EVM](/data-catalog/evm/ethereum/overview) and [Solana](/data-catalog/solana/overview).
> [card] [Decoded Tables](/data-catalog/evm/ethereum/decoded/overview)
>
> Smart contract events and function calls parsed using verified ABIs or IDLs — [EVM](/data-catalog/evm/ethereum/decoded/overview) and [Solana IDL](/data-catalog/solana/idl-tables).
> [card] [Transform with dbt](/api-reference/connectors/dbt/overview)
>
> Run production-grade dbt projects directly on Dune — build, test, and deploy transformation pipelines with full incremental model support.
> [card] [Bring Your Data](/web-app/upload-data)
>
> Upload CSVs, connect external data sources, or push data via API to join with onchain data.
***
## Partner Data
Dune provides off-chain and specialized datasets from partner data providers that are critical to onchain analysis:
| Partner | Description | Docs |
| - | - | - |
| **Flashbots** | MEV bundle data, searcher activity, and block builder analytics | [View →](/data-catalog/community/flashbots/overview) |
| **Farcaster** | Social graph data — casts, reactions, profiles, and channels | [View →](/data-catalog/community/farcaster/overview) |
| **Lens** | Decentralized social media — publications, profiles, and interactions | [View →](/data-catalog/community/lens/overview) |
| **Reservoir** | NFT market data — orders, sales, and collection metadata | [View →](/data-catalog/community/reservoir/overview) |
| **Snapshot** | Governance data — proposals, votes, and DAO activity | [View →](/data-catalog/community/snapshot/overview) |
***
## Dune Index
Standardized onchain metrics for benchmarking blockchain activity:
| Metric | Description | Docs |
| - | - | - |
| **Transaction Fees** | Gas fee trends and comparisons across chains | [View →](/data-catalog/dune-index/gas-fees) |
| **Net Transfers** | Token flow analysis across networks | [View →](/data-catalog/dune-index/net-transfers) |
| **Transactions** | Transaction volume and activity metrics | [View →](/data-catalog/dune-index/transactions) |
***
## Why Teams Choose Dune's Data
> [card] Enterprise-Grade Pipelines
>
> All curated datasets are built using industry-standard data engineering tooling — the same practices used by enterprise data teams worldwide.
> [card] Continuous Quality Checks
>
> Blocks are validated at ingestion, core tables are monitored for gaps and duplicates, and curated datasets are tested when their code changes. [Learn more →](/data-catalog/data-quality)
> [card] Cross-Chain by Default
>
> Every curated dataset spans dozens of chains with consistent schemas. No stitching required.
> [card] Transparent Methodology
>
> Every curated dataset documents how it's built, what design decisions were made, and what limitations exist.
***
## Data Trust & Freshness
Every dataset in the catalog is backed by Dune's [data quality framework](/data-catalog/data-quality): blocks are validated at ingestion, core tables are monitored for gaps and duplicates, and curated datasets are tested when their code changes. Raw data typically arrives within minutes of onchain finality. Curated datasets refresh hourly.
For real-time status, see [Data Freshness](/data-catalog/data-freshness) and [Status Page](https://status.dune.com/).
***
## Get Started
> [card] [Query in the Data Hub](https://dune.com)
>
> Write SQL against any dataset in the catalog — no infrastructure needed.
> [card] [Access via API](/api-reference/overview/introduction)
>
> Programmatic access to query results, real-time data, and execution endpoints.
> [card] [Datashare](/datashare/datashare)
>
> Direct access to Dune's full data warehouse in your own Snowflake, BigQuery, or Databricks environment.
> [card] [Enterprise](https://dune.com/enterprise)
>
> Custom SLAs, dedicated support, and priority data requests.
# peaq.balances
Source: https://docs.dune.com/data-catalog/peaq/balances
Peaq account balances.
## Table description
The `peaq.balances` table tracks account balance snapshots on the Peaq network, capturing the state of user assets at specific timestamps. This table is partitioned by `year`, `month`, and `day` for efficient querying.
Each record includes balance information in both processed (double) and raw (string) formats, allowing for precise balance tracking. The table tracks multiple balance types including free balances, reserved balances, and various frozen balance states (misc_frozen and frozen).
Accounts are identified using SS58 addresses (`address_ss58`) and public keys (`address_pubkey`), supporting both human-readable and binary address formats. The table also includes chain and asset metadata such as `symbol`, `chain_name`, `asset`, and `para_id` for multi-chain support.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the balance snapshot was taken, used for partitioning. | int |
| **month** | The month when the balance snapshot was taken, used for partitioning. | int |
| **day** | The day when the balance snapshot was taken, used for partitioning. | int |
| **ts** | The timestamp when the balance snapshot was taken. | timestamp |
| **symbol** | The symbol of the asset (e.g., "PEAQ"). | string |
| **address_ss58** | The SS58-encoded address of the account in human-readable format. | string |
| **address_pubkey** | The public key of the account in binary format. | binary |
| **id** | The unique identifier for the balance record. | string |
| **chain_name** | The name of the chain where the balance exists. | string |
| **asset** | The asset identifier or symbol. | string |
| **para_id** | The parachain ID associated with the balance, if applicable. | long |
| **free** | The free balance available to the account, in processed format. | double |
| **reserved** | The reserved balance that is locked but still owned by the account. | double |
| **misc_frozen** | The miscellaneous frozen balance that cannot be used for certain operations. | double |
| **frozen** | The total frozen balance that cannot be used. | double |
| **nonce** | The account nonce, representing the number of transactions from this account. | long |
| **free_raw** | The free balance in raw string format, preserving full precision. | string |
| **reserved_raw** | The reserved balance in raw string format, preserving full precision. | string |
| **misc_frozen_raw** | The miscellaneous frozen balance in raw string format, preserving full precision. | string |
| **frozen_raw** | The frozen balance in raw string format, preserving full precision. | string |
| **flags_raw** | The raw flags associated with the account balance state. | string |
| **\_updated_at** | The time when the balance record was last updated. | timestamp |
| **\_ingested_at** | The time when the balance data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=balances)
# peaq.evm_blocks
Source: https://docs.dune.com/data-catalog/peaq/blocks
Peaq EVM-compatible block data.
## Table description
The `peaq.evm_blocks` table stores basic information about Peaq blocks, with one record per block, including the block hash and statistics on the number of extrinsics, events, and transfers contained in each block. This table is partitioned by `year`, `month`, and `day` for efficient querying.
Each block record includes metadata such as block number, specification version, relay chain block number, block hashes (hash, parent hash, state root, extrinsics root), block author information, and counts of various operations (extrinsics, events, transfers, traces).
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the block was created, used for partitioning. | int |
| **month** | The month when the block was created, used for partitioning. | int |
| **day** | The day when the block was created, used for partitioning. | int |
| **block_time** | The timestamp when the block was created. | timestamp |
| **number** | The block number (sequence number) of the block. | long |
| **spec_version** | The specification version of the runtime when this block was created. | long |
| **relay_block_number** | The block number of the relay chain block associated with this block. | long |
| **hash** | The hash of the current block, in binary format. | binary |
| **parent_hash** | The hash of the parent block, in binary format. | binary |
| **state_root** | The Merkle root of the state trie after applying all transactions in this block. | binary |
| **extrinsics_root** | The Merkle root of the extrinsics included in this block. | binary |
| **author_ss58** | The SS58-encoded address of the block author (validator) in human-readable format. | string |
| **author_pub_key** | The public key of the block author (validator) in binary format. | binary |
| **relay_state_root** | The state root of the relay chain associated with this block. | binary |
| **extrinsic_count** | The number of extrinsics (transactions) included in this block. | long |
| **event_count** | The number of events emitted in this block. | long |
| **transfer_count** | The number of transfers executed in this block. | long |
| **trace_count** | The number of traces generated in this block. | long |
| **\_updated_at** | The time when the block record was last updated. | timestamp |
| **\_ingested_at** | The time when the block data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=blocks)
# peaq.calls
Source: https://docs.dune.com/data-catalog/peaq/calls
Peaq dispatch calls — pallet function calls within extrinsics.
## Table description
Compared to the `extrinsics` table, which only has a top-level call, the `calls` table represents *internal* calls, including recursive internal calls of `proxy` and `utility` (batch) pallets, and provides detailed call arguments at each level of the call tree.
The `peaq.calls` table is partitioned by `year`, `month`, `call_section`, and `call_method` for efficient querying. Common queries on the `calls` table will typically filter on `block_time`, `call_section` and `call_method` and extract JSON encoded information from `call_args` or `call_args_def`.
Each call record includes information about the pallet section and method being called, the extrinsic it belongs to, call hierarchy (root/leaf), fee and weight information, signer details, and call arguments in both raw and decoded formats.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the call was executed, used for partitioning. | int |
| **month** | The month when the call was executed, used for partitioning. | int |
| **call_section** | The pallet section (module) where the call originates (e.g., "balances", "system"). | string |
| **call_method** | The method name within the pallet section being called. | string |
| **block_number** | The block number where this call was executed. | bigint |
| **block_time** | The timestamp when the block containing this call was created. | timestamp |
| **extrinsic_id** | The unique identifier of the extrinsic that contains this call. | string |
| **relay_chain** | The name of the relay chain associated with this call. | string |
| **para_id** | The parachain ID associated with this call, if applicable. | long |
| **id** | The unique identifier for the call record. | string |
| **block_hash** | The hash of the block containing this call, in binary format. | binary |
| **extrinsic_hash** | The hash of the extrinsic containing this call, in binary format. | binary |
| **extrinsic_section** | The pallet section of the top-level extrinsic. | string |
| **extrinsic_method** | The method name of the top-level extrinsic. | string |
| **call_id** | The unique identifier for this specific call within the call tree. | string |
| **call_index** | The index of this call within the call hierarchy, in binary format. | binary |
| **call_args** | The raw call arguments in JSON format. | string |
| **call_args_def** | The decoded call arguments definition with type information. | string |
| **root** | Indicates whether this is a root-level call (top of the call tree). | boolean |
| **leaf** | Indicates whether this is a leaf-level call (bottom of the call tree). | boolean |
| **fee** | The fee charged for executing this call, in processed format. | double |
| **weight** | The computational weight consumed by this call. | long |
| **signed** | Indicates whether the extrinsic containing this call was signed. | boolean |
| **signer_ss58** | The SS58-encoded address of the account that signed the extrinsic, in human-readable format. | string |
| **signer_pub_key** | The public key of the account that signed the extrinsic, in binary format. | binary |
| **lifetime** | The lifetime or validity period of the call, if applicable. | string |
| **\_updated_at** | The time when the call record was last updated. | timestamp |
| **\_ingested_at** | The time when the call data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=calls](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=calls)
# peaq.events
Source: https://docs.dune.com/data-catalog/peaq/events
Peaq runtime events — pallet-level events emitted during execution.
## Table description
The `peaq.events` table holds all events that occur on the Peaq chain, including their pallet `section` and `method`, as well as the decoded data involved in the event. This table is partitioned by `year`, `month`, `section`, and `method` for efficient querying.
Events are emitted by the runtime and pallets to signal state changes, transaction results, and other important occurrences on the chain. Each event record includes the pallet section and method that emitted it, the block and extrinsic it belongs to, and event data in both raw and decoded formats.
Common queries on the `events` table will typically filter on `block_time`, `section` and `method` and extract JSON encoded information from `data` or `data_decoded`.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the event was emitted, used for partitioning. | int |
| **month** | The month when the event was emitted, used for partitioning. | int |
| **section** | The pallet section (module) that emitted the event (e.g., "balances", "system"). | string |
| **method** | The method name within the pallet section that identifies the event type. | string |
| **block_time** | The timestamp when the block containing this event was created. | timestamp |
| **block_number** | The block number where this event was emitted. | bigint |
| **extrinsic_id** | The unique identifier of the extrinsic that triggered this event. | string |
| **event_id** | The unique identifier for the event record. | string |
| **data** | The raw event data in JSON format. | string |
| **extrinsic_hash** | The hash of the extrinsic that triggered this event, in binary format. | binary |
| **block_hash** | The hash of the block containing this event, in binary format. | binary |
| **data_decoded** | The decoded event data with type information and human-readable values. | string |
| **\_updated_at** | The time when the event record was last updated. | timestamp |
| **\_ingested_at** | The time when the event data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=events)
# peaq.extrinsics
Source: https://docs.dune.com/data-catalog/peaq/extrinsics
Peaq extrinsics — signed and unsigned transactions.
## Table description
Extrinsics (aka "transactions") normally contain a signature, some data to describe if the extrinsic has passed some validity checks and a reference to the pallet and call that it is intended for. Extrinsics may be signed or unsigned. Some extrinsics have a complex structure, e.g. when using proxy or utility pallets, resulting in the top-level call initiating other calls involving other pallets.
The `peaq.extrinsics` table is partitioned by `year`, `month`, `section`, and `method` for efficient querying. Common queries on the `extrinsics` table will typically filter on `block_time`, `section` and `method` and extract JSON encoded information from `params`. In many cases, an initial query on the `extrinsics` table is best developed on the calls table instead to properly capture how users often use proxy and utility constructs to interact with the Peaq chain.
Each extrinsic record includes the top-level call information (section and method), block and hash information, signer details, fee and weight, execution status, and call parameters.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the extrinsic was executed, used for partitioning. | int |
| **month** | The month when the extrinsic was executed, used for partitioning. | int |
| **section** | The pallet section (module) of the top-level call (e.g., "balances", "system"). | string |
| **method** | The method name of the top-level call within the pallet section. | string |
| **block_time** | The timestamp when the block containing this extrinsic was created. | timestamp |
| **block_number** | The block number where this extrinsic was executed. | long |
| **extrinsic_id** | The unique identifier for the extrinsic record. | string |
| **hash** | The hash of the extrinsic, in binary format. | binary |
| **block_hash** | The hash of the block containing this extrinsic, in binary format. | binary |
| **lifetime** | The lifetime or validity period of the extrinsic, if applicable. | string |
| **params** | The call parameters in JSON format, containing the arguments passed to the call. | string |
| **fee** | The fee charged for executing this extrinsic, in processed format. | double |
| **weight** | The computational weight consumed by this extrinsic. | long |
| **signed** | Indicates whether the extrinsic was signed by an account. | boolean |
| **signer_ss58** | The SS58-encoded address of the account that signed the extrinsic, in human-readable format. | string |
| **signer_pub_key** | The public key of the account that signed the extrinsic, in binary format. | binary |
| **status** | Indicates whether the extrinsic execution was successful. | boolean |
| **\_updated_at** | The time when the extrinsic record was last updated. | timestamp |
| **\_ingested_at** | The time when the extrinsic data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=extrinsics](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=extrinsics)
# Peaq Overview
Source: https://docs.dune.com/data-catalog/peaq/overview
Peaq blockchain data on Dune
## What is Peaq?
Peaq is a layer-1 blockchain purpose-built and optimized to power the Machine Economy. The platform enables:
> [card] DePINs
>
> Decentralized Physical Infrastructure Networks
> [card] DePAI
>
> Decentralized Physical AI
> [card] Machine DeFi
>
> Decentralized Finance based on machines' on-chain economic value and activity
> [card] Machine RWAs
>
> Tokenized machines bringing real-world economic value on-chain
By leveraging parallelized block production, asynchronous backing, and agile core time, peaq currently handles up to 10,000 transactions per second (TPS). It is set to scale beyond 100,000 TPS after future upgrades, all while maintaining a minimum transaction cost of approximately \$0.00025. peaq leverages the world's environmentally-friendliest blockchain architecture and leverages one of the highest Nakamoto Coefficients in the industry to ensure censorship resistance.
peaq offers a comprehensive suite of ready-to-use Modular DePIN and DePAI Functions, granting builders and machines essential core functionalities to leverage for seamless deployment. These include self-sovereign machine IDs, role-based access control, data verification, universal machine time, seamless machine payment processing, data storage, data indexing, AI agents, and more. All functions are accessible via the peaq SDK, allowing developers to deploy them with just \~15 lines of code.
## Peaq Data on Dune
Peaq blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Blocks](/data-catalog/peaq/blocks)
>
> Core block data including block headers, validators, and block statistics.
> [card] [Extrinsics](/data-catalog/peaq/extrinsics)
>
> Detailed transaction data, encompassing both signed and unsigned operations, directly invoking pallet functions.
> [card] [Events](/data-catalog/peaq/events)
>
> All events emitted by the runtime, including system events, and events from all pallets.
> [card] [Calls](/data-catalog/peaq/calls)
>
> Comprehensive info on function calls, expanding top-level extrinsics with internal calls.
> [card] [Transfers](/data-catalog/peaq/transfers)
>
> Complete ledger of asset transfers across the network, capturing the movement of tokens between accounts.
> [card] [Balances](/data-catalog/peaq/balances)
>
> Daily snapshots capturing the state of user assets, reflecting the end-of-day balances.
> [card] [Peaq Documentation](https://docs.peaq.xyz/build/introduction)
>
> Official documentation for developers building on Peaq
# peaq.transfers
Source: https://docs.dune.com/data-catalog/peaq/transfers
Peaq native token transfers.
## Table description
The `peaq.transfers` table stores complete ledger of asset transfers across the Peaq network, capturing the movement of tokens between accounts. This table is partitioned by `year`, `month`, and `day` for efficient querying.
Each transfer record includes information about the sender and recipient (in both SS58 and public key formats), the asset being transferred, the amount in both processed (double) and raw (decimal) formats, and the event and extrinsic that triggered the transfer.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **year** | The year when the transfer occurred, used for partitioning. | int |
| **month** | The month when the transfer occurred, used for partitioning. | int |
| **day** | The day when the transfer occurred, used for partitioning. | int |
| **block_time** | The timestamp when the block containing this transfer was created. | timestamp |
| **block_number** | The block number where this transfer occurred. | long |
| **event_id** | The unique identifier of the event that represents this transfer. | string |
| **extrinsic_id** | The unique identifier of the extrinsic that triggered this transfer. | string |
| **section** | The pallet section (module) that emitted the transfer event. | string |
| **method** | The method name within the pallet section that identifies the transfer type. | string |
| **extrinsic_hash** | The hash of the extrinsic that triggered this transfer, in binary format. | binary |
| **block_hash** | The hash of the block containing this transfer, in binary format. | binary |
| **from_ss58** | The SS58-encoded address of the sender account, in human-readable format. | string |
| **from_pub_key** | The public key of the sender account, in binary format. | binary |
| **to_ss58** | The SS58-encoded address of the recipient account, in human-readable format. | string |
| **to_pub_key** | The public key of the recipient account, in binary format. | binary |
| **asset** | The asset identifier or address being transferred. | string |
| **symbol** | The symbol of the asset being transferred (e.g., "PEAQ"). | string |
| **decimals** | The number of decimal places for the asset. | long |
| **amount** | The transfer amount in processed format (double). | double |
| **raw_amount** | The transfer amount in raw format, preserving full precision (decimal 38,9). | decimal(38,9) |
| **\_updated_at** | The time when the transfer record was last updated. | timestamp |
| **\_ingested_at** | The time when the transfer data was ingested into the system. | timestamp |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=peaq\&table_name_t6f0df=transfers)
# solana.account_activity
Source: https://docs.dune.com/data-catalog/solana/account-activity
Track every SOL and SPL token balance change per account per transaction — essential for wallet activity monitoring, treasury tracking, compliance auditing, and building real-time portfolio analytics on Solana.
## Table description
The `solana.account_activity` table contains information from the transactions table focused on account usage. Each row contains all information about an account's usage in a transaction.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_date` | `DATE` | The date of the block this account activity occurred in |
| `block_slot` | `BIGINT` | The slot number of the block containing this activity |
| `block_time` | `TIMESTAMP` | The timestamp of the block this activity belongs to |
| `address` | `VARCHAR` | The Solana account address involved in the transaction |
| `tx_index` | `INTEGER` | The index position of the transaction within the block |
| `token_mint_address` | `VARCHAR` | The mint address of the SPL token involved, null for native SOL transfers |
| `tx_id` | `VARCHAR` | The unique transaction signature/ID |
| `block_hash` | `VARCHAR` | The hash of the block containing this transaction |
| `tx_success` | `BOOLEAN` | Whether the transaction completed successfully |
| `signed` | `BOOLEAN` | Whether this account signed the transaction |
| `writable` | `BOOLEAN` | Whether this account had write access in the transaction |
| `pre_balance` | `BIGINT` | The account's SOL balance (in lamports) before the transaction |
| `post_balance` | `BIGINT` | The account's SOL balance (in lamports) after the transaction |
| `balance_change` | `BIGINT` | The net change in SOL balance (in lamports) from this transaction |
| `pre_token_balance` | `DECIMAL(38,18)` | The account's SPL token balance before the transaction (decimal-adjusted) |
| `post_token_balance` | `DECIMAL(38,18)` | The account's SPL token balance after the transaction (decimal-adjusted) |
| `token_balance_change` | `DECIMAL(38,17)` | The net change in SPL token balance from this transaction (decimal-adjusted) |
| `token_balance_owner` | `VARCHAR` | The owner address of the token account |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=account_activity](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=account_activity)
# solana.blocks
Source: https://docs.dune.com/data-catalog/solana/blocks
Solana block-level data including slot numbers, leader identity, rewards, and transaction counts. Blocks contain transactions which contain instructions that alter the state of the Solana blockchain. Use this data for network throughput analysis, validator performance benchmarking, and infrastructure monitoring.
## Table description
The `solana.blocks` table contains the block data within Solana's blockchain. It can be used to identify block activity and transaction changes over time.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `slot` | `BIGINT` | The slot number of the block, used as the primary block identifier on Solana |
| `height` | `BIGINT` | The block height (number of blocks since genesis) |
| `time` | `TIMESTAMP` | The timestamp when the block was produced |
| `date` | `DATE` | The date the block was produced |
| `hash` | `VARCHAR` | The unique hash of the block |
| `total_transactions` | `INTEGER` | Total number of transactions included in the block (vote + non-vote) |
| `successful_transactions` | `INTEGER` | Number of transactions that completed successfully |
| `failed_transactions` | `INTEGER` | Number of transactions that failed |
| `total_vote_transactions` | `INTEGER` | Total number of validator vote transactions in the block |
| `total_non_vote_transactions` | `INTEGER` | Total number of non-vote (user) transactions in the block |
| `successful_vote_transactions` | `INTEGER` | Number of vote transactions that succeeded |
| `successful_non_vote_transactions` | `INTEGER` | Number of non-vote transactions that succeeded |
| `failed_vote_transactions` | `INTEGER` | Number of vote transactions that failed |
| `failed_non_vote_transactions` | `INTEGER` | Number of non-vote transactions that failed |
| `parent_slot` | `BIGINT` | The slot number of the parent block |
| `previous_block_hash` | `VARCHAR` | The hash of the parent block |
| `num_reward_partitions` | `BIGINT` | The number of reward partitions in this block |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=blocks)
# Solana Decoded Tables
Source: https://docs.dune.com/data-catalog/solana/idl-tables
Decoded Solana program data using Interface Description Language (IDL) definitions — human-readable instruction and event data for DeFi protocols, NFT marketplaces, and any Solana program. The fastest path from raw bytes to actionable analytics.
> [!NOTE]
>
> **IDL Submissions**
>
> You can submit any program for decoding that has a public IDL or GitHub repo (Anchor, native, and system are supported), for example [Jupiter on Solscan](https://solscan.io/account/JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB#anchorProgramIDL). Use [dune.com/contracts/new](https://dune.com/contracts/new) and select Solana, or see [Solana program decoding submissions](/web-app/decoding/solana-decoding-submissions) for the full flow and IDL requirements.
Decoded tables inherit all of the columns from [`instruction_calls`](/data-catalog/solana/instruction-calls), so you can refer there for most of the types. We only add columns for each argument in the function call `data` and each account that was required to be in `account_arguments`. **These only decode from instructions, and not inner instructions.**
## Example IDL Decoded Walkthrough
Using an IDL, we decode the function data arguments and the required account arguments. Let's look at an example using Whirlpool - normally you can find the IDL [on Solscan](https://solscan.io/account/whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc#anchorProgramIDL), but this time we had to dig [into the project repo](https://github.com/orca-so/whirlpools/blob/main/sdk/src/artifacts/whirlpool.json). IDLs are like ABIs on Ethereum, except they are created from the [Anchor lang](https://www.anchor-lang.com/) project instead of natively from every program.
[Here's a transaction](https://solscan.io/tx/TGDKvM2E8mWYcsG2JBnb9axFcyEcKqs7yZLyayCmrV8p8SSdA8r9SLEC7EHQ4mcXQXpczEyaCBXvnmEi9yoKVJ9) of a pool (a trading pair) being initialized.
You can see that the instruction data is decoded in "Bumps", "TickSpacing", and "InitialSqrtPrice" on the explorer. We have the same thing in a SQL table! You can also see all the account names are labelled clearly as well with an `account_` prefix. Raw table inherited columns like `tx_id`, `block_time`, `tx_index` get a `call_` prefix.
The main thing to note is that we've exploded outer and inner instructions, where the index will match what you see on explorers. This example call is at the outer instruction level, so the inner instruction index is null. For Whirlpool swaps, often times it will happen in inner_instructions so then the top level outer instruction is inherited into the `call_outer_instruction_index` and the inner index is `call_inner_instruction_index` (same idea with the `call_outer_executing_account` and `call_inner_executing_account`)
[https://dune.com/embeds/2352049/3851391](https://dune.com/embeds/2352049/3851391)
Try it out for yourself in [this query](https://dune.com/queries/2352049/) below:
```sql theme={null}
SELECT * FROM whirlpool_solana.whirlpool_call_initializePool
WHERE call_tx_id = 'TGDKvM2E8mWYcsG2JBnb9axFcyEcKqs7yZLyayCmrV8p8SSdA8r9SLEC7EHQ4mcXQXpczEyaCBXvnmEi9yoKVJ9'
```
The table name follows the pattern:\
`_solana._call_`
We already have many of the top projects decoded, so go explore!
# solana.instruction_calls
Source: https://docs.dune.com/data-catalog/solana/instruction-calls
Every program instruction executed on Solana with decoded arguments, inner instruction traces, and execution context. Critical for protocol analytics, smart contract auditing, cross-program invocation analysis, and DeFi flow tracing.
## Table description
The `solana.instruction_calls` table is an unnested table of [`solana.transactions`](/data-catalog/solana/transactions). There can be multiple instructions in a transaction, so having an exploded view here will make it a little easier to work with the data. **This table mainly exists as the base for [Solana decoded tables](/data-catalog/solana/idl-tables), which you should be using instead.**
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_slot` | `BIGINT` | The slot number of the block containing this instruction |
| `block_date` | `DATE` | The date of the block this instruction was executed in |
| `block_time` | `TIMESTAMP` | The timestamp of the block this instruction was executed in |
| `block_hash` | `VARCHAR` | The hash of the block containing this instruction |
| `tx_index` | `INTEGER` | The index position of the parent transaction within the block |
| `inner_instruction_index` | `INTEGER` | The index of this instruction among inner instructions (null for top-level instructions) |
| `outer_instruction_index` | `INTEGER` | The index of the top-level instruction this belongs to |
| `inner_executing_account` | `VARCHAR` | The program account executing this inner instruction (null for top-level instructions) |
| `outer_executing_account` | `VARCHAR` | The program account executing the top-level instruction |
| `executing_account` | `VARCHAR` | The program account that executed this specific instruction |
| `is_inner` | `BOOLEAN` | Whether this is an inner (CPI) instruction rather than a top-level instruction |
| `stack_height` | `BIGINT` | The call stack depth of this instruction (1 for top-level, 2+ for inner) |
| `data` | `VARBINARY` | The raw instruction data passed to the program |
| `account_arguments` | `ARRAY(VARCHAR)` | The list of account addresses passed as arguments to this instruction |
| `inner_instructions` | `ARRAY(ROW(data VARCHAR, executing_account VARCHAR, account_arguments ARRAY(VARCHAR), stack_height BIGINT))` | Nested inner instructions triggered by this instruction via CPI |
| `tx_id` | `VARCHAR` | The unique transaction signature/ID |
| `tx_signer` | `VARCHAR` | The address of the fee-paying signer of the transaction |
| `tx_success` | `BOOLEAN` | Whether the parent transaction completed successfully |
| `log_messages` | `ARRAY(VARCHAR)` | Program log messages emitted during this instruction's execution |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=instruction_calls](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=instruction_calls)
# Solana Overview
Source: https://docs.dune.com/data-catalog/solana/overview
Solana raw and decoded data on Dune — transactions, blocks, instructions, account activity, rewards, and vote data for trading, compliance, wallet engineering, and research.
Dune indexes the full Solana blockchain — every transaction, block, instruction call, and account balance change. As a non-EVM chain, Solana's [account-based architecture](https://solana.com/docs/core/accounts) produces data that looks fundamentally different from Ethereum. Programs, accounts, and instructions replace contracts, addresses, and function calls.
Raw data tables give you direct access to transactions, pre/post-balances, and instruction data. For most analytical workflows, however, you'll get faster results and cleaner queries using [decoded data](/data-catalog/solana/idl-tables) from IDL decoding — Solana's equivalent of ABI decoding on EVM chains.
### Available Tables
> [card] [Account Activity](/data-catalog/solana/account-activity)
>
> Pre/post-balance changes for every account touched in a transaction — track wallet activity, treasury flows, and balance movements
> [card] [Blocks](/data-catalog/solana/blocks)
>
> Slot-level block data including leader identity, rewards, and timing — analyze network throughput and validator performance
> [card] [IDL Tables (Decoded)](/data-catalog/solana/idl-tables)
>
> Human-readable decoded program data from IDL definitions — the fastest path to protocol-specific analytics
> [card] [Instruction Calls](/data-catalog/solana/instruction-calls)
>
> Every program instruction with decoded arguments and inner calls — trace program execution and cross-program invocations
> [card] [Rewards](/data-catalog/solana/rewards)
>
> Validator and staker reward distributions — calculate APY, track staking returns, and analyze validator economics
> [card] [Transactions](/data-catalog/solana/transactions)
>
> Complete transaction records with signatures, signers, fees, and execution status — the foundation for on-chain analysis
> [card] [Vote Transactions](/data-catalog/solana/vote-transactions)
>
> Validator consensus votes — monitor network health, validator participation, and consensus patterns
***
## Resources
> [card] [Full Solana Data Guide](https://read.cryptodatabytes.com/p/starter-guide-to-solana-data-analysis)
>
> In-depth walkthrough for getting started with Solana data analysis on Dune, covering raw tables, decoded data, and common query patterns.
# solana.rewards
Source: https://docs.dune.com/data-catalog/solana/rewards
Validator and staker reward distributions on Solana — staking rewards, voting rewards, and fee distributions. Use this data for APY calculations, validator economics research, staking yield analysis, and custodial reporting.
## Table description
The `solana.rewards` table contains data about rewards paid out on Solana. One block may contain zero or more rewards, and each row corresponds to one reward.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_slot` | `BIGINT` | The slot number of the block in which this reward was distributed |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this reward |
| `block_hash` | `VARCHAR` | The hash of the block containing this reward |
| `reward_type` | `VARCHAR` | The type of reward (e.g., 'Fee', 'Rent', 'Staking', 'Voting') |
| `lamports` | `BIGINT` | The reward amount in lamports (1 SOL = 1,000,000,000 lamports) |
| `pre_balance` | `BIGINT` | The recipient's balance in lamports before the reward was applied |
| `post_balance` | `BIGINT` | The recipient's balance in lamports after the reward was applied |
| `commission` | `BIGINT` | The validator commission percentage for staking and voting rewards; `NULL` from slot 433,296,000 onward |
| `commission_bps` | `BIGINT` | The validator commission in basis points for staking and voting rewards, populated from slot 433,296,000 onward |
| `recipient` | `VARCHAR` | The account address that received the reward |
| `block_date` | `DATE` | The date of the block in which this reward was distributed |
## Commission fields
Solana's SIMD-0291 changed vote-account commission from a whole percentage to basis points at epoch 1003, beginning with slot 433,296,000. For a consistent basis-points value across both eras, use:
```sql theme={null}
coalesce(commission_bps, commission * 100)
```
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=rewards](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=rewards)
# solana.transactions
Source: https://docs.dune.com/data-catalog/solana/transactions
Complete Solana transaction records with signatures, signers, fees, compute units, and execution status. The foundational table for on-chain analysis — from trading flow attribution and fee optimization to compliance monitoring and application usage tracking.
## Table description
The `solana.transactions` table contains the transaction data within Solana's blockchain. Most of the relevant data related to account, protocol, and program activity is available in this table.
This table excludes all voting transactions, which are available in the `solana.vote_transactions` table.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_slot` | `BIGINT` | The slot number of the block containing this transaction |
| `block_height` | `BIGINT` | The block height at which this transaction was processed |
| `block_time` | `TIMESTAMP` | The timestamp of the block this transaction belongs to |
| `block_date` | `DATE` | The date of the block this transaction belongs to |
| `index` | `INTEGER` | The index position of this transaction within the block |
| `fee` | `BIGINT` | The transaction fee paid in lamports |
| `compute_units_consumed` | `BIGINT` | The number of compute units consumed by this transaction |
| `cost_units` | `BIGINT` | The cost units charged for this transaction |
| `version` | `VARCHAR` | The transaction version ('legacy' or '0' for versioned transactions) |
| `required_signatures` | `INTEGER` | The number of signatures required for this transaction |
| `readonly_signed_accounts` | `INTEGER` | The number of read-only accounts that are also signers |
| `readonly_unsigned_accounts` | `INTEGER` | The number of read-only accounts that are not signers |
| `block_hash` | `VARCHAR` | The hash of the block containing this transaction |
| `id` | `VARCHAR` | The unique transaction ID (same as signature) |
| `signature` | `VARCHAR` | The first signature of the transaction, used as the transaction identifier |
| `success` | `BOOLEAN` | Whether the transaction completed successfully |
| `error` | `VARCHAR` | The error message if the transaction failed, null otherwise |
| `recent_block_hash` | `VARCHAR` | The recent blockhash used for transaction validity and replay prevention |
| `instructions` | `ARRAY(ROW(data VARCHAR, executing_account VARCHAR, account_arguments ARRAY(VARCHAR), inner_instructions ARRAY(ROW(data VARCHAR, executing_account VARCHAR, account_arguments ARRAY(VARCHAR), stack_height BIGINT))))` | The list of instructions executed in this transaction, including nested inner instructions |
| `account_keys` | `ARRAY(VARCHAR)` | All account addresses referenced in this transaction |
| `log_messages` | `ARRAY(VARCHAR)` | Program log messages emitted during transaction execution |
| `pre_balances` | `ARRAY(BIGINT)` | SOL balances (in lamports) of all accounts before the transaction, ordered by account_keys index |
| `post_balances` | `ARRAY(BIGINT)` | SOL balances (in lamports) of all accounts after the transaction, ordered by account_keys index |
| `pre_token_balances` | `ARRAY(ROW(account VARCHAR, mint VARCHAR, owner VARCHAR, amount DECIMAL(38,18)))` | SPL token balances of accounts before the transaction |
| `post_token_balances` | `ARRAY(ROW(account VARCHAR, mint VARCHAR, owner VARCHAR, amount DECIMAL(38,18)))` | SPL token balances of accounts after the transaction |
| `signatures` | `ARRAY(VARCHAR)` | All signatures attached to this transaction |
| `signer` | `VARCHAR` | The primary signer (fee payer) of the transaction |
| `signers` | `ARRAY(VARCHAR)` | All accounts that signed this transaction |
| `return_data_program_id` | `VARCHAR` | The program ID that produced the return data, if any |
| `return_data` | `ARRAY(VARCHAR)` | The data returned by the program after execution, if any |
| `address_table_lookups` | `ARRAY(ROW(accountKey VARCHAR, readonlyIndexes ARRAY(BIGINT), writableIndexes ARRAY(BIGINT)))` | Address lookup table references used for versioned transactions |
| `loaded_addresses` | `ROW(readonly ARRAY(VARCHAR), writable ARRAY(VARCHAR))` | Addresses loaded from address lookup tables, split into readonly and writable sets |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=transactions)
# solana.vote_transactions
Source: https://docs.dune.com/data-catalog/solana/vote-transactions
Solana validator consensus vote transactions — track validator participation, voting patterns, and network health. Essential for staking providers, validator operators, and researchers analyzing Solana's consensus mechanism.
## Table description
The `solana.vote_transactions` table contains the full set of vote transactions that are submitted by validators to vote on a block. It can be joined with the non-vote transactions table above to get a full breakdown of all transactions. It has the same schema as the main transactions table.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_slot` | `BIGINT` | The slot number of the block containing this vote transaction |
| `block_height` | `BIGINT` | The block height at which this vote transaction was processed |
| `block_time` | `TIMESTAMP` | The timestamp of the block this vote transaction belongs to |
| `block_date` | `DATE` | The date of the block this vote transaction belongs to |
| `index` | `INTEGER` | The index position of this vote transaction within the block |
| `fee` | `BIGINT` | The transaction fee paid in lamports |
| `compute_units_consumed` | `BIGINT` | The number of compute units consumed by this vote transaction |
| `cost_units` | `BIGINT` | The cost units charged for this vote transaction |
| `version` | `VARCHAR` | The transaction version ('legacy' or '0' for versioned transactions) |
| `required_signatures` | `INTEGER` | The number of signatures required for this vote transaction |
| `readonly_signed_accounts` | `INTEGER` | The number of read-only accounts that are also signers |
| `readonly_unsigned_accounts` | `INTEGER` | The number of read-only accounts that are not signers |
| `block_hash` | `VARCHAR` | The hash of the block containing this vote transaction |
| `id` | `VARCHAR` | The unique transaction ID (same as signature) |
| `signature` | `VARCHAR` | The first signature of the transaction, used as the transaction identifier |
| `success` | `BOOLEAN` | Whether the vote transaction completed successfully |
| `error` | `VARCHAR` | The error message if the vote transaction failed, null otherwise |
| `recent_block_hash` | `VARCHAR` | The recent blockhash used for transaction validity and replay prevention |
| `instructions` | `ARRAY(ROW(data VARCHAR, executing_account VARCHAR, account_arguments ARRAY(VARCHAR), inner_instructions ARRAY(ROW(data VARCHAR, executing_account VARCHAR, account_arguments ARRAY(VARCHAR), stack_height BIGINT))))` | The list of instructions executed in this vote transaction, including nested inner instructions |
| `account_keys` | `ARRAY(VARCHAR)` | All account addresses referenced in this vote transaction |
| `log_messages` | `ARRAY(VARCHAR)` | Program log messages emitted during vote transaction execution |
| `pre_balances` | `ARRAY(BIGINT)` | SOL balances (in lamports) of all accounts before the vote transaction, ordered by account_keys index |
| `post_balances` | `ARRAY(BIGINT)` | SOL balances (in lamports) of all accounts after the vote transaction, ordered by account_keys index |
| `pre_token_balances` | `ARRAY(ROW(account VARCHAR, mint VARCHAR, owner VARCHAR, amount DECIMAL(38,18)))` | SPL token balances of accounts before the vote transaction |
| `post_token_balances` | `ARRAY(ROW(account VARCHAR, mint VARCHAR, owner VARCHAR, amount DECIMAL(38,18)))` | SPL token balances of accounts after the vote transaction |
| `signatures` | `ARRAY(VARCHAR)` | All signatures attached to this vote transaction |
| `signer` | `VARCHAR` | The primary signer (fee payer) of the vote transaction |
| `signers` | `ARRAY(VARCHAR)` | All accounts that signed this vote transaction |
| `return_data_program_id` | `VARCHAR` | The program ID that produced the return data, if any |
| `return_data` | `ARRAY(VARCHAR)` | The data returned by the program after execution, if any |
| `address_table_lookups` | `ARRAY(ROW(accountKey VARCHAR, readonlyIndexes ARRAY(BIGINT), writableIndexes ARRAY(BIGINT)))` | Address lookup table references used for versioned vote transactions |
| `loaded_addresses` | `ROW(readonly ARRAY(VARCHAR), writable ARRAY(VARCHAR))` | Addresses loaded from address lookup tables, split into readonly and writable sets |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=vote_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=solana\&table_name_t6f0df=vote_transactions)
# starknet.blocks
Source: https://docs.dune.com/data-catalog/starknet/blocks
StarkNet block data — block numbers, timestamps, sequencer identity, and state roots.
## Table description
The `starknet.blocks` table represents the blocks in the Starknet blockchain. A block is a collection of transactions, and is identified by a unique block identifier. Each block contains a timestamp and a reference to the previous block hash, forming a chain of blocks. The block structure is crucial for the blockchain's integrity and security, ensuring a verifiable and tamper-evident ledger.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `date` | `DATE` | The date of the block (UTC) |
| `number` | `BIGINT` | The sequential block number |
| `time` | `TIMESTAMP` | The timestamp when the block was produced |
| `l1_da_mode` | `VARCHAR` | Layer 1 data availability mode (`BLOB` or `CALLDATA`). Introduced in Starknet v0.13.1 |
| `l1_data_gas_price_in_fri` | `UINT256` | L1 data gas price denominated in fri (STRK), used for v3+ transactions |
| `l1_data_gas_price_in_wei` | `UINT256` | L1 data gas price denominated in wei (ETH), used for pre-v3 transactions |
| `l1_gas_price_in_fri` | `UINT256` | L1 gas price denominated in fri (STRK), used for v3+ transactions |
| `l1_gas_price_in_wei` | `UINT256` | L1 gas price denominated in wei (ETH), used for pre-v3 transactions |
| `l2_gas_price_in_fri` | `UINT256` | L2 gas price denominated in fri (STRK), used for v3+ transactions |
| `l2_gas_price_in_wei` | `UINT256` | L2 gas price denominated in wei (ETH), used for pre-v3 transactions |
| `starknet_version` | `VARCHAR` | The Starknet protocol version used for this block |
| `tx_count` | `INTEGER` | Number of transactions included in this block |
| `hash` | `VARBINARY` | Unique hash identifying this block |
| `new_root` | `VARBINARY` | The new global state root after applying this block |
| `parent_hash` | `VARBINARY` | Hash of the preceding block |
| `sequencer_address` | `VARBINARY` | Address of the sequencer that produced this block |
| `state_diff` | `VARCHAR` | JSON-encoded state changes resulting from this block |
> [!NOTE]
>
> * Prior to [v3 transactions upgrade](https://www.starknet.io/developers/roadmap/v3-transactions/), fees are denominated in `wei` as users pay gas with ETH. For transactions v3 and later, fees are denominated in `fri` as users pay gas with STRK. Hence here you can see two gas types of gas fields, one for `wei` and one for `fri`.
> * Starting with Starknet v0.13.1, Starknet distinguishes between blocks whose state diffs are sent to L1 as calldata and blocks whose state diffs are sent to L1 as blobs. The `l1_da_mode` property in the Starknet block header contains this information. Values possible are `BLOB` or `CALLDATA`.
> * Visit this [Starknet doc on block structure](https://docs.starknet.io/architecture-and-concepts/network-architecture/block-structure/) to learn more.
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=blocks)
# starknet.calls
Source: https://docs.dune.com/data-catalog/starknet/calls
StarkNet internal calls — function call traces within StarkNet transaction execution.
## Table description
The `starknet.calls` table documents the execution trace of the transaction designated by the input hash.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_date` | `DATE` | The date of the block containing this call (UTC) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this call |
| `block_number` | `BIGINT` | The sequential number of the block containing this call |
| `block_l1_da_mode` | `VARCHAR` | Layer 1 data availability mode (`BLOB` or `CALLDATA`) |
| `block_l1_data_gas_price_in_fri` | `UINT256` | L1 data gas price in fri (STRK) for the block |
| `block_l1_data_gas_price_in_wei` | `UINT256` | L1 data gas price in wei (ETH) for the block |
| `block_l1_gas_price_in_fri` | `UINT256` | L1 gas price in fri (STRK) for the block |
| `block_l1_gas_price_in_wei` | `UINT256` | L1 gas price in wei (ETH) for the block |
| `block_l2_gas_price_in_fri` | `UINT256` | L2 gas price in fri (STRK) for the block |
| `block_l2_gas_price_in_wei` | `UINT256` | L2 gas price in wei (ETH) for the block |
| `block_starknet_version` | `VARCHAR` | The Starknet protocol version of the block |
| `transaction_index` | `INTEGER` | Position of the parent transaction within the block |
| `transaction_type` | `VARCHAR` | Type of the parent transaction (`INVOKE`, `L1_HANDLER`, `DECLARE`, `DEPLOY_ACCOUNT`, `DEPLOY`) |
| `call_type` | `VARCHAR` | Type of function call (`CALL`, `LIBRARY_CALL`, or `DELEGATE`) |
| `context` | `VARCHAR` | Execution context of the call |
| `entry_point_type` | `VARCHAR` | Type of entry point invoked (`EXTERNAL`, `L1_HANDLER`, `CONSTRUCTOR`) |
| `execution_resources_bitwise_builtin_applications` | `INTEGER` | Number of bitwise builtin applications consumed |
| `execution_resources_data_availability_l1_gas` | `UINT256` | L1 gas consumed for data availability |
| `execution_resources_data_availability_l1_data_gas` | `UINT256` | L1 data gas consumed for data availability |
| `execution_resources_data_availability_l2_gas` | `UINT256` | L2 gas consumed for data availability |
| `execution_resources_ec_op_builtin_applications` | `INTEGER` | Number of elliptic curve operation builtin applications consumed |
| `execution_resources_ecdsa_builtin_applications` | `INTEGER` | Number of ECDSA builtin applications consumed |
| `execution_resources_keccak_builtin_applications` | `INTEGER` | Number of Keccak builtin applications consumed |
| `execution_resources_memory_holes` | `INTEGER` | Number of memory holes in the execution trace |
| `execution_resources_pedersen_builtin_applications` | `INTEGER` | Number of Pedersen hash builtin applications consumed |
| `execution_resources_poseidon_builtin_applications` | `INTEGER` | Number of Poseidon hash builtin applications consumed |
| `execution_resources_range_check_builtin_applications` | `INTEGER` | Number of range check builtin applications consumed |
| `execution_resources_segment_arena_builtin` | `INTEGER` | Number of segment arena builtin applications consumed |
| `execution_resources_steps` | `INTEGER` | Total number of Cairo VM steps executed |
| `num_subcalls` | `INTEGER` | Number of nested sub-calls triggered by this call |
| `block_hash` | `VARBINARY` | Hash of the block containing this call |
| `block_new_root` | `VARBINARY` | New global state root after the block |
| `block_parent_hash` | `VARBINARY` | Hash of the preceding block |
| `block_sequencer_address` | `VARBINARY` | Address of the sequencer that produced the block |
| `transaction_hash` | `VARBINARY` | Hash of the parent transaction |
| `callstack_index` | `ARRAY(INTEGER)` | Position in the call tree hierarchy |
| `calldata` | `ARRAY(VARBINARY)` | Input data passed to this call |
| `caller_address` | `VARBINARY` | Address of the contract that initiated this call |
| `class_hash` | `VARBINARY` | Class hash of the called contract |
| `contract_address` | `VARBINARY` | Address of the contract being called |
| `entry_point_selector` | `VARBINARY` | Selector identifying the function entry point |
| `events` | `ARRAY(ROW(DATA ARRAY(VARCHAR), KEYS ARRAY(VARCHAR), EVENT_INDEX INTEGER))` | Events emitted during this call |
| `messages` | `ARRAY(ROW(FROM_ADDRESS VARBINARY, PAYLOAD VARBINARY, TO_ADDRESS VARBINARY, MESSAGE_INDEX INTEGER))` | L2-to-L1 messages sent during this call |
| `result` | `VARBINARY` | Return value of the call |
| `revert_reason` | `VARCHAR` | Reason for call failure, if the call reverted |
| `state_diff` | `VARCHAR` | JSON-encoded state changes resulting from this call |
> [!NOTE]
>
> * Prior to [v3 transactions upgrade](https://www.starknet.io/developers/roadmap/v3-transactions/), fees are denominated in `wei` as users pay gas with ETH. For transactions v3 and later, fees are denominated in `fri` as users pay gas with STRK. Hence here you can see two gas types of gas fields, one for `wei` and one for `fri`.
> * Starting with Starknet v0.13.1, Starknet distinguishes between blocks whose state diffs are sent to L1 as calldata and blocks whose state diffs are sent to L1 as blobs. The `l1_da_mode` property in the Starknet block header contains this information. Values possible are `BLOB` or `CALLDATA`.
> * The `block_status` has possible values `ACCEPTED_ON_L1` or `ACCEPTED_ON_L2`. Read here to learn more about [different transaction status](https://docs.starknet.io/architecture-and-concepts/network-architecture/transaction-life-cycle/#transaction_status).
> * The `transaction_type` fields denotes [different types of transactions](https://docs.starknet.io/architecture-and-concepts/network-architecture/transactions/) supported by Starknet. Possible values are: `INVOKE`, `L1_HANDLER`, `DECLARE`, `DEPLOY_ACCOUNT`, and `DEPLOY`.
> * The `call_type` fields denotes what type of function calls was invoked. Possible values are [`LIBRARY_CALL`](https://docs.starknet.io/architecture-and-concepts/smart-contracts/system-calls-cairo1/#library_call), `CALL`, or `DELEGATE`
> * 'entry_point_type': The type of entry point. Possible values includes - `EXTERNAL`, `L1_HANDLER`, `CONSTRUCTOR`
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=calls](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=calls)
# starknet.events
Source: https://docs.dune.com/data-catalog/starknet/events
StarkNet contract events — event data emitted by Cairo smart contracts during execution.
## Table description
The `starknet.events` table captures the events that are emitted by smart contracts on the Starknet blockchain. Events are used to log significant actions and changes in smart contracts, such as token transfers or updates to contract states. Each event is linked to the transaction that triggered it, providing a detailed audit trail of contract interactions.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_date` | `DATE` | The date of the block containing this event (UTC) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this event |
| `block_number` | `BIGINT` | The sequential number of the block containing this event |
| `block_l1_da_mode` | `VARCHAR` | Layer 1 data availability mode (`BLOB` or `CALLDATA`) |
| `block_l1_data_gas_price_in_fri` | `UINT256` | L1 data gas price in fri (STRK) for the block |
| `block_l1_data_gas_price_in_wei` | `UINT256` | L1 data gas price in wei (ETH) for the block |
| `block_l1_gas_price_in_fri` | `UINT256` | L1 gas price in fri (STRK) for the block |
| `block_l1_gas_price_in_wei` | `UINT256` | L1 gas price in wei (ETH) for the block |
| `block_l2_gas_price_in_fri` | `UINT256` | L2 gas price in fri (STRK) for the block |
| `block_l2_gas_price_in_wei` | `UINT256` | L2 gas price in wei (ETH) for the block |
| `block_starknet_version` | `VARCHAR` | The Starknet protocol version of the block |
| `event_index` | `INTEGER` | Sequential index of this event within the transaction |
| `block_hash` | `VARBINARY` | Hash of the block containing this event |
| `block_new_root` | `VARBINARY` | New global state root after the block |
| `block_parent_hash` | `VARBINARY` | Hash of the preceding block |
| `block_sequencer_address` | `VARBINARY` | Address of the sequencer that produced the block |
| `transaction_hash` | `VARBINARY` | Hash of the transaction that emitted this event |
| `data` | `ARRAY(VARBINARY)` | The data payload associated with this event |
| `keys` | `ARRAY(VARBINARY)` | The indexed keys associated with this event |
| `from_address` | `VARBINARY` | Address of the L2 contract that emitted this event |
| `class_hash` | `VARBINARY` | Class hash of the contract that emitted this event |
> [!NOTE]
>
> * Prior to [v3 transactions upgrade](https://www.starknet.io/developers/roadmap/v3-transactions/), fees are denominated in `wei` as users pay gas with ETH. For transactions v3 and later, fees are denominated in `fri` as users pay gas with STRK. Hence here you can see two gas types of gas fields, one for `wei` and one for `fri`.
> * Starting with Starknet v0.13.1, Starknet distinguishes between blocks whose state diffs are sent to L1 as calldata and blocks whose state diffs are sent to L1 as blobs. The `l1_da_mode` property in the Starknet block header contains this information. Values possible are `BLOB` or `CALLDATA`.
> * The `block_status` has possible values `ACCEPTED_ON_L1` or `ACCEPTED_ON_L2`. Read here to learn more about [different transaction status](https://docs.starknet.io/architecture-and-concepts/network-architecture/transaction-life-cycle/#transaction_status).
> * `from_address`: The address of the L2 contract sending the message
> * `keys`: The keys associated with the event
> * `data`: The data associated with the event
> * Visit this [Starknet doc on events](https://docs.starknet.io/architecture-and-concepts/smart-contracts/starknet-events/) to learn more.
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=events)
# Starknet data
Source: https://docs.dune.com/data-catalog/starknet/overview
Starknet data on Dune
## What is Starknet?
Starknet is a permissionless Validity-Rollup, also known as a zero-knowledge rollup (ZK rollup) for Ethereum. As a Layer 2 (L2) blockchain, Starknet enables any dApp to achieve massive computation scale without compromising on Ethereum’s composability and security.
Starknet aims to achieve secure, low-cost transactions and high performance by using the STARK cryptographic proof system. Starknet contracts and the Starknet OS are written in [Cairo](https://github.com/starkware-libs/cairo), a custom-built and specialized programming language.
### Why Starknet?
Starknet addresses the scalability issues of Ethereum by offloading computation and state storage from the Ethereum mainnet. It uses STARK (Scalable Transparent Argument of Knowledge) proofs to ensure that transactions are both scalable and secure, enabling a wide range of applications from DeFi to NFTs without compromising on security or decentralization.
### Starknet Architecture
Starknet's architecture is composed of several key components that work together to achieve high scalability and security:
#### STARK Proofs
At the core of Starknet's technology are STARK proofs, which are zero-knowledge proofs that enable scalable and transparent computation. These proofs ensure the integrity and validity of off-chain computations, which are then verified on-chain.
#### Sequencer and Prover
Starknet employs a sequencer to order transactions and a prover to generate STARK proofs. The sequencer ensures that transactions are processed in a fair and orderly manner, while the prover generates cryptographic proofs that validate these transactions.
#### Cairo Language
Starknet uses Cairo, a Turing-complete language designed for writing provable programs. Developers can write smart contracts and off-chain logic in Cairo, leveraging its efficiency and security features.
#### Accounts and Contracts
Starknet introduces a novel account model where each user interacts with the network through their account contracts. This model enhances security and flexibility, allowing for features like account abstraction and multi-sig wallets. Unlike the traditional EVM model, where accounts are either externally owned accounts (EOAs) or smart contracts, Starknet uses account contracts for both user accounts and smart contracts, allowing for more advanced features and customizability.
See Starknet's documentation on [Accounts](https://docs.starknet.io/architecture-and-concepts/accounts/introduction/) and [Contracts](https://docs.starknet.io/architecture-and-concepts/smart-contracts/contract-classes/) for more information
### Starknet Transaction Lifecycle
Transactions on Starknet follow a well-defined lifecycle:
1. **Submission**: Users submit transactions through their account contracts.
2. **Sequencing**: Transactions are ordered by the sequencer.
3. **Proof Generation**: The prover generates STARK proofs for the ordered transactions.
4. **Verification**: Proofs are verified on the Ethereum mainnet, finalizing the state transitions.
For more information on the transaction flow, see [Starknet's doc](https://docs.starknet.io/architecture-and-concepts/network-architecture/transaction-life-cycle/).

Key Components:
* **Sequencer**: Receives transactions, orders them, and produces blocks, operating similarly to validators in Ethereum or Bitcoin.
* **Prover**: Generates proofs using the Cairo Virtual Machine (Cairo VM) to create execution traces necessary for generating STARK proofs.
* **Verifier**: L1 smart contract, designed to verify STARK proofs and update Starknet’s state root on L1 if valid.
* **Layer 1 (L1)**: Ethereum hosts a smart contract that verifies STARK proofs and updates Starknet’s state root on L1 if valid.
> [card] [Starknet documentation](https://docs.starknet.io/)
>
> Explore comprehensive documentation on Starknet, detailing its architecture, protocol, and resources for developers.
## Starknet Data on Dune
Starknet provides comprehensive data on various aspects of its network, enabling developers and users to analyze and interact with the blockchain effectively.
> [card] [Blocks](/data-catalog/starknet/blocks)
>
> Represents the collection of transactions in a single block within the Starknet
> blockchain.
> [card] [Transactions](/data-catalog/starknet/transactions)
>
> Includes all user and system transactions processed by the Starknet network.
> [card] [Events](/data-catalog/starknet/events)
>
> Captures events emitted by smart contracts, logging significant actions and changes.
> [card] [Calls](/data-catalog/starknet/calls)
>
> Represents the invocation of smart contract functions, detailing the interactions and parameters used.
# starknet.transactions
Source: https://docs.dune.com/data-catalog/starknet/transactions
StarkNet transaction records — invoke, deploy, and declare transactions with fees and execution status.
## Table description
The `starknet.transactions` table contains information about all transactions on the Starknet blockchain, including both user-initiated and system transactions. Transactions are the actions that modify the state of the blockchain, such as transfers of tokens or the execution of smart contracts. Each transaction is uniquely identified and linked to the block in which it was included.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `block_date` | `DATE` | The date of the block containing this transaction (UTC) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this transaction |
| `block_number` | `BIGINT` | The sequential number of the block containing this transaction |
| `block_l1_da_mode` | `VARCHAR` | Layer 1 data availability mode (`BLOB` or `CALLDATA`) |
| `block_l1_data_gas_price_in_fri` | `UINT256` | L1 data gas price in fri (STRK) for the block |
| `block_l1_data_gas_price_in_wei` | `UINT256` | L1 data gas price in wei (ETH) for the block |
| `block_l1_gas_price_in_fri` | `UINT256` | L1 gas price in fri (STRK) for the block |
| `block_l1_gas_price_in_wei` | `UINT256` | L1 gas price in wei (ETH) for the block |
| `block_l2_gas_price_in_fri` | `UINT256` | L2 gas price in fri (STRK) for the block |
| `block_l2_gas_price_in_wei` | `UINT256` | L2 gas price in wei (ETH) for the block |
| `block_starknet_version` | `VARCHAR` | The Starknet protocol version of the block |
| `fee_data_availability_mode` | `VARCHAR` | Storage domain for fee payment (`L1` or `L2`) |
| `index` | `INTEGER` | Position of this transaction within the block |
| `max_fee` | `UINT256` | Maximum fee the sender is willing to pay (pre-v3 transactions) |
| `nonce` | `INTEGER` | Sender's transaction sequence number to prevent replays |
| `nonce_data_availability_mode` | `VARCHAR` | Storage domain for the account nonce (`L1` or `L2`) |
| `resource_bounds_l1_gas_max_amount` | `UINT256` | Maximum L1 gas amount the sender is willing to consume (v3+) |
| `resource_bounds_l1_gas_max_price_per_unit` | `UINT256` | Maximum price per unit of L1 gas the sender will pay (v3+) |
| `resource_bounds_l1_data_gas_max_amount` | `UINT256` | Maximum L1 data gas amount the sender is willing to consume (v3+) |
| `resource_bounds_l1_data_gas_max_price_per_unit` | `UINT256` | Maximum price per unit of L1 data gas the sender will pay (v3+) |
| `resource_bounds_l2_gas_max_amount` | `VARBINARY` | Maximum L2 gas amount the sender is willing to consume (v3+) |
| `resource_bounds_l2_gas_max_price_per_unit` | `VARBINARY` | Maximum price per unit of L2 gas the sender will pay (v3+) |
| `tip` | `UINT256` | Optional tip paid to the sequencer for priority (v3+) |
| `type` | `VARCHAR` | Transaction type (`INVOKE`, `L1_HANDLER`, `DECLARE`, `DEPLOY_ACCOUNT`, `DEPLOY`) |
| `version` | `INTEGER` | Transaction version number |
| `actual_fee_amount` | `UINT256` | Actual fee charged for this transaction |
| `actual_fee_unit` | `VARCHAR` | Unit of the actual fee (`WEI` for ETH, `FRI` for STRK) |
| `execution_resources_bitwise_builtin_applications` | `INTEGER` | Number of bitwise builtin applications consumed |
| `execution_resources_data_availability_l1_gas` | `UINT256` | L1 gas consumed for data availability |
| `execution_resources_data_availability_l1_data_gas` | `UINT256` | L1 data gas consumed for data availability |
| `execution_resources_data_availability_l2_gas` | `UINT256` | L2 gas consumed for data availability |
| `execution_resources_ec_op_builtin_applications` | `INTEGER` | Number of elliptic curve operation builtin applications consumed |
| `execution_resources_ecdsa_builtin_applications` | `INTEGER` | Number of ECDSA builtin applications consumed |
| `execution_resources_keccak_builtin_applications` | `INTEGER` | Number of Keccak builtin applications consumed |
| `execution_resources_memory_holes` | `INTEGER` | Number of memory holes in the execution trace |
| `execution_resources_pedersen_builtin_applications` | `INTEGER` | Number of Pedersen hash builtin applications consumed |
| `execution_resources_poseidon_builtin_applications` | `INTEGER` | Number of Poseidon hash builtin applications consumed |
| `execution_resources_range_check_builtin_applications` | `INTEGER` | Number of range check builtin applications consumed |
| `execution_resources_segment_arena_builtin` | `INTEGER` | Number of segment arena builtin applications consumed |
| `execution_resources_steps` | `INTEGER` | Total number of Cairo VM steps executed |
| `execution_status` | `VARCHAR` | Final execution status of the transaction |
| `finality_status` | `VARCHAR` | Finality status (`ACCEPTED_ON_L1` or `ACCEPTED_ON_L2`) |
| `receipt_type` | `VARCHAR` | Type of the transaction receipt |
| `block_hash` | `VARBINARY` | Hash of the block containing this transaction |
| `block_new_root` | `VARBINARY` | New global state root after the block |
| `block_parent_hash` | `VARBINARY` | Hash of the preceding block |
| `block_sequencer_address` | `VARBINARY` | Address of the sequencer that produced the block |
| `calldata` | `ARRAY(VARBINARY)` | Input data for the transaction's function call |
| `class_hash` | `VARBINARY` | Class hash of the declared or deployed contract |
| `compiled_class_hash` | `VARBINARY` | Compiled class hash (for `DECLARE` v2+ transactions) |
| `constructor_calldata` | `ARRAY(VARBINARY)` | Constructor arguments (for `DEPLOY_ACCOUNT` transactions) |
| `contract_address` | `VARBINARY` | Address of the contract involved in this transaction |
| `contract_address_salt` | `VARBINARY` | Salt used for contract address computation (for deployments) |
| `entry_point_selector` | `VARBINARY` | Selector identifying the invoked function entry point |
| `hash` | `VARBINARY` | Unique hash identifying this transaction |
| `sender_address` | `VARBINARY` | Address of the account that sent this transaction |
| `signature` | `ARRAY(VARBINARY)` | Cryptographic signature of the transaction |
| `message_hash` | `VARBINARY` | Hash of the L1-to-L2 message (for `L1_HANDLER` transactions) |
| `messages_sent` | `ARRAY(ROW(FROM_ADDRESS VARBINARY, PAYLOAD VARBINARY, TO_ADDRESS VARBINARY))` | L2-to-L1 messages sent by this transaction |
| `revert_reason` | `VARCHAR` | Reason for transaction failure, if it reverted |
| `transaction_hash` | `VARBINARY` | Hash of this transaction (same as `hash`) |
> [!NOTE]
>
> * Prior to [v3 transactions upgrade](https://www.starknet.io/developers/roadmap/v3-transactions/), fees are denominated in `wei` as users pay gas with ETH. For transactions v3 and later, fees are denominated in `fri` as users pay gas with STRK. Hence here you can see two gas types of gas fields, one for `wei` and one for `fri`.
> * Starting with Starknet v0.13.1, Starknet distinguishes between blocks whose state diffs are sent to L1 as calldata and blocks whose state diffs are sent to L1 as blobs. The `l1_da_mode` property in the Starknet block header contains this information. Values possible are `BLOB` or `CALLDATA`.
> * The `type` fields denotes [different types of transactions](https://docs.starknet.io/architecture-and-concepts/network-architecture/transactions/) supported by Starknet. Possible values are: `INVOKE`, `L1_HANDLER`, `DECLARE`, `DEPLOY_ACCOUNT`, and `DEPLOY`.
> * The `fee_data_availability_mode` field denotes the storage domain of the account's balance from which fee will be charged. It can be one of 'L1' or 'L2'
> * The `block_status` has possible values `ACCEPTED_ON_L1` or `ACCEPTED_ON_L2`. Read here to learn more about [different transaction status](https://docs.starknet.io/architecture-and-concepts/network-architecture/transaction-life-cycle/#transaction_status).
> * The `actual_fee` has the actual fee paid for the transaction, to be used together with `actual_fee_unit`.
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=starknet\&table_name_t6f0df=transactions)
# stellar.accounts
Source: https://docs.dune.com/data-catalog/stellar/accounts
Stellar account data — public keys, sequence numbers, balances, and thresholds.
## Table description
The `stellar.accounts` table tracks the native token (Lumens) balances held by accounts.
Accounts are the central data structure in Stellar- they hold balances, sign transactions, and issue assets. Accounts can only exist with a valid keypair and the required minimum balance of XLM.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the account's ledger entry was closed. | date |
| **account_id** | The unique identifier for the Stellar account. | varchar |
| **balance** | The current balance of lumens (XLM) in the account. | double |
| **buying_liabilities** | The total liabilities for buying offers on the account. | double |
| **selling_liabilities** | The total liabilities for selling offers on the account. | double |
| **sequence_number** | The current sequence number of the account, incremented with each transaction. | bigint |
| **num_subentries** | The number of subentries, such as trustlines or offers, associated with the account. | bigint |
| **inflation_destination** | The destination account for inflation pools (deprecated feature). | varchar |
| **flags** | A set of flags representing various account properties like authorization. | bigint |
| **home_domain** | The home domain associated with the account, used for federation or verifying asset issuers. | varchar |
| **master_weight** | The weight of the account's master key used for signing transactions. | bigint |
| **threshold_low** | The threshold level required for low-priority operations (e.g., payments). | bigint |
| **threshold_medium** | The threshold level required for medium-priority operations (e.g., trustlines). | bigint |
| **threshold_high** | The threshold level required for high-priority operations (e.g., multisig transactions). | bigint |
| **last_modified_ledger** | The ledger sequence number where the account was last modified. | bigint |
| **ledger_entry_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the account has been deleted from the ledger. | boolean |
| **sponsor** | The account that is sponsoring this account’s resources. | varchar |
| **num_sponsored** | The number of subentries sponsored by this account. | bigint |
| **num_sponsoring** | The number of subentries this account is sponsoring. | bigint |
| **sequence_time** | The time when the sequence number was last updated. | timestamp(3) with time zone |
| **closed_at** | The timestamp when the account was last closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the account is included. | bigint |
| **account_sequence_last_modified_ledger** | The last ledger sequence where the account's sequence number was modified. | bigint |
| **updated_at** | The time when the account record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the account data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=accounts](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=accounts)
# stellar.contract_data
Source: https://docs.dune.com/data-catalog/stellar/contract_data
Stellar Soroban smart contract data entries.
## Table description
The `stellar.contract_data` table stores state data for smart contracts, including supported tokens and storage costs.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the contract data entry was closed. | date |
| **contract_id** | The unique identifier for the smart contract on the Stellar network. | varchar |
| **contract_key_type** | The type of key used for the contract data (e.g., a hash or other identifier). | varchar |
| **contract_durability** | Indicates whether the contract data is durable across contract executions. | varchar |
| **asset_code** | The code of the asset associated with the contract (if applicable). | varchar |
| **asset_issuer** | The issuer of the asset associated with the contract (if applicable). | varchar |
| **asset_type** | The type of asset associated with the contract (e.g., native, issued). | varchar |
| **balance_holder** | The account or entity that holds the balance associated with the contract. | varchar |
| **balance** | The balance associated with the contract, in lumens or other tokens. | varchar |
| **last_modified_ledger** | The ledger sequence number where the contract data was last modified. | bigint |
| **ledger_entry_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the contract data entry has been deleted. | boolean |
| **closed_at** | The timestamp when the contract data was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the contract data is included. | bigint |
| **ledger_key_hash** | The hashed key associated with the contract's ledger entry. | varbinary |
| **key** | The key used in the contract data entry. | varchar |
| **key_decoded** | A human-readable or decoded version of the contract key. | varchar |
| **val** | The value stored in the contract data entry. | varchar |
| **val_decoded** | A human-readable or decoded version of the value stored in the contract. | varchar |
| **contract_data_xdr** | The raw XDR (External Data Representation) format of the contract data. | varchar |
| **updated_at** | The time when the contract data record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the contract data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=contract_data](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=contract_data)
# EVM vs Stellar Comparison
Source: https://docs.dune.com/data-catalog/stellar/evm_v_stellar
A comparison between EVM-based blockchains and Stellar
## EVM vs Stellar Comparison
This document provides a generalized overview of the differences between Ethereum Virtual Machine (EVM) chains and the Stellar Network. It's meant to help EVM data analysts to understand Stellar chain data better by mapping the concepts.
> [!TIP]
>
> A special thanks to [Sydney Wiseman](https://www.linkedin.com/in/syd-wiseman/) from the Stellar Development Foundation for making this available to the community!
## Blockchain Purpose and Design
### Stellar
The Stellar Network is designed to create digital asset products and services that improve access to the global financial system. With a focus on **simplicity, speed, and cost-effectiveness** in transferring assets, Stellar connects financial institutions, payment systems, and individuals.
Due to its financial-centric design, Stellar includes built-in primitives for asset management, making it more secure and efficient for financial applications. However, Stellar's original design was less flexible and had limited the types of financial applications built on Stellar. Since February 2024, Stellar has supported **smart contracts** written in Rust and compiled as WebAssembly (wasm).
### EVM
EVM blockchains such as Ethereum allow developers to build decentralized applications (dApps) and deploy **smart contracts**. Unlike Stellar, EVM chains emphasize flexible programming at the cost of speed, leading to the need for layer-2 (L2) solutions to improve transaction throughput and cost efficiency. Smart contracts on EVM are written in Solidity.
### Stellar Native Primitives
* **Asset Issuance**
* **Claimable Balances (Airdrops)**
* **Orderbook (Built-in DEX)**
* **Automated Market Makers (AMMs)**
### Tokenization
Stellar allows native **asset tokenization**, where user balances are represented through [trustlines](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/accounts#trustlines). Standards for tokenization similar to ERC-20 and ERC-721 are available under [SEP-41](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0041.md), implemented via the [Stellar Asset Contract](https://developers.stellar.org/docs/smart-contracts/tokens/stellar-asset-contract).
### Consensus Mechanism
Stellar uses **Stellar Consensus Protocol (SCP)**, a Proof of Agreement (PoA) mechanism derived from **Federated Byzantine Agreement (FBA)**. Transactions are confirmed when overlapping quorums of nodes agree on validity. Stellar closes ledgers every **5 seconds**.
EVM chains like Ethereum use **Proof of Stake (PoS)** for consensus.
### Time to Finality
* **Stellar**: Deterministic finality, with ledgers closing every **5-6 seconds**.
* **Ethereum**: Probabilistic finality, requiring \~13 minutes (2 epochs) for finality.
### Submitting Transactions
Stellar supports bundling up to **100 operations** in a single transaction, improving developer experience. However, smart contract transactions (via **Soroban**) are capped at **1 operation per transaction**, similar to EVM.
Stellar allows [**fee bump transactions**](https://developers.stellar.org/docs/learn/encyclopedia/fee-bump-transactions), where an account can pay fees on behalf of another account. Additionally, [**26 operation types**](https://developers.stellar.org/docs/learn/fundamentals/list-of-operations) are natively supported on Stellar, in contrast to EVM's 3 core transaction types (regular, contract deployment, execute contract).
### Ledger State Comparison
Both Stellar and EVM use an **account-based model**. In Stellar, however, there are additional ledger state types:
* **Contracts**: Persistent data and expiration details for smart contracts
* **Accounts**: Externally owned accounts with lumen (XLM) balances
* **Trustlines**: Balances of non-native tokens
* **Claimable Balances**: Built-in airdrop feature
* **Liquidity Pools**: AMM built-in mechanisms
* **Orderbook Offers**: Stellar’s built-in decentralized exchange
| EVM's Accounts | Stellar's Ledger Entry |
| - | - |
| nonce | *No equivalent* |
| balance | [accounts](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/accounts) |
| storageRoot | [trustLines](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/accounts#trustlines) |
| codeHash | [data](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/accounts#subentries), [contractData](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/contracts#contract-storage) |
| *No native equivalent* | [contractCode](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/contracts#wasm) |
| *No native equivalent* | [claimableBalances](https://developers.stellar.org/docs/learn/encyclopedia/claimable-balances) |
| *No native equivalent* | [liquidityPools](https://developers.stellar.org/docs/learn/encyclopedia/liquidity-on-stellar-sdex-liquidity-pools#liquidity-pools) |
| *No native equivalent* | [offers](https://developers.stellar.org/docs/learn/encyclopedia/liquidity-on-stellar-sdex-liquidity-pools#order-books) |
| *No native equivalent* | [configSetting](https://developers.stellar.org/network/core-node/admin-guide/soroban-settings) |
| *No native equivalent* | [ttl](https://developers.stellar.org/docs/learn/smart-contract-internals/state-archival#ttl) (State Archival) |
### Data Concept Mapping
Stellar's data model is more complex than EVM due to its built-in primitives.
The table below outlines equivalent data structures between EVM chains and Stellar, which serves to map the concepts between the two networks:
| EVM's Data Model | Stellar Data On Dune |
| - | - |
| blocks | [history_ledgers](./history_ledgers) |
| transactions | [history_transactions](./history_transactions) |
| logs | [history_contract_events](./history_contract_events) |
| traces | [history_operations](./history_operations), [history_effects](./history_effects) |
| contracts | [contract_data](./contract_data) |
| balances | [accounts](./accounts), [trustlines](./trust_lines), [contract_data](./contract_data) |
| token_transfers | [history_operations](./history_operations) |
## Data Model Details
### Blocks
Stellar calls blocks, ledgers. A ledger represents the state of the Stellar network at a given point in time. EVM blockchains refer to state as a point in time as blocks, and the entire blockchain is “the ledger”. Ledgers on Stellar can refer to individual blocks or the full network history.
#### Size Limits
A transaction set within a ledger contains two transaction types: native and smart contracts. The ledger size has separate limits for each transaction type:
* **Native** - the Stellar Network can apply up to 1,000 operations in a ledger. Transactions can bundle up to 100 operations in a single transaction.
* **Smart contracts** - the Stellar Network dynamically limits the number of smart contract transactions based on network resources consumed (read/write bytes, CPU instructions, etc). See [Smart Contract Settings](https://developers.stellar.org/network/core-node/admin-guide/soroban-settings#examine-current-settings) for more details.
See [Fees and Metering](https://developers.stellar.org/docs/learn/fundamentals/fees-resource-limits-metering) for more information.
Ethereum limits block size by total gas spent.
#### Schema Mapping
| **Stellar Name** | **EVM Equivalent** | **Description** |
| - | - | - |
| **sequence** | number | The sequence number of the ledger |
| **ledger_hash** | hash | The hash of this ledger |
| **previous_ledger_hash** | parent_hash | The hash of the previous ledger |
| **closed_at** | time | The timestamp when the ledger was written to the chain |
| **protocol_version** | version | Protocol version specified in the block header |
| **total_coins** | | The total number of lumens in circulation |
| **fee_pool** | gas_used | The sum of all transaction fees |
| **inflation_seq** | | *Deprecated* |
| **base_fee** | base_fee_per_gas | The minimum fee charged, per operation, to be included in the ledger |
| **base_reserve** | | The minimum XLM balance to be held in an account to be considered valid |
| **max_tx_set_size** | gas_limit | The maximum number of non-Soroban operations allowed in a ledger. **Note**: Soroban transactions have a separate mechanism to limit resources utilization per ledger |
| **ledger_header** | | The raw XDR representation of all the data stored in the [Ledger Header](https://pkg.go.dev/github.com/stellar/go/xdr#LedgerHeader) |
| **transaction_count** | transaction_count | Number of transactions in the ledger |
| **operation_count** | | The number of operations in the ledger. **Note**: Up to 100 operations can be bundled in a single transaction |
### Transactions
Actions are performed on the Stellar network through operations. Operations are bundled into transactions, with each account able to perform up to 100 operations in a single transaction. Accounts are limited to submitting one transaction per ledger.
EVM networks do not have the concept of operations, the lowest level of action is a transaction. This limits accounts to one action per transaction in EVM L1 Layers, which is why L2 solutions and rollups are popular.
#### Transaction Types
Operation types on Stellar are analog to transaction types on EVM networks.
The Stellar network natively supports [26 operation types](https://developers.stellar.org/docs/learn/fundamentals/list-of-operations), ranging from payments to orderbook offer management to smart contract invocation.
EVM natively supports 3 transaction types: payment (regular), contract deployment, and execute contract, and does not support natively for Orderbook or AMMs.
#### Schema Mapping
**Transactions**
| **Stellar Name** | **EVM Equivalent** | **Description** |
| - | - | - |
| **transaction_hash** | hash | A hex-encoded SHA-256 hash of this transaction's XDR-encoded form |
| **ledger_sequence** | block_number | The sequence number of the ledger |
| **closed_at** | block_time | The timestamp when the ledger was written to the chain |
| **inner_transaction_hash** | | A transaction hash of a transaction wrapped with its signatures for fee-bump transactions |
| **account** | from | The account address that originates the transaction |
| **account_sequence** | nonce | The source account's sequence number that this transaction consumed. Sequence numbers can only be used once and help maintain atomicity and idempotency on the network |
| **max_fee** | max_fee_per_gas | The maximum fee (in stroops) that the account is willing to pay for the transaction to be included in a ledger |
| **operation_count** | Fixed at 1 | The number of operations contained within this transaction |
| **memo_type** | | Memos can be text, ids, or hashes |
| **memo** | | Optional unstructured data field that can be used to differentiate between accounts (for pooled accounts) |
| **time_bounds** | | Optional UNIX timestamp of a lower and upper bound of when a transaction will be valid |
| **successful** | success | Indicates if the transaction succeeded |
| **fee_charged** | gas_used | |
| **fee_account** | | An account that is not the originating source account for a transaction is allowed to pay transaction fees on behalf of the source account. These accounts are called fee accounts and incur all transaction costs for the source account |
| **new_max_fee** | | The maximum fee (in stroops) an account is willing to pay for this account’s fees |
| **account_muxed** | | If the user has defined multiplexed (muxed) accounts, the account exists "virtually" under a traditional Stellar account address. This address distinguishes between the virtual accounts |
| **fee_account_muxed** | | If the fee account that sponsors fee is a multiplexed account, the virtual address will be listed here |
| **preconditions** | | Validity checks the account can add when submitting a transaction to the network. If the conditions are not met, the transaction fails |
| **transaction_envelope** | input_data | The raw XDR that was submitted to the Stellar Network |
| **transaction_result** | receipt_root | The raw XDR that is returned from the network after applying the transaction |
| **transaction_meta** | input_data | Raw XDR of ledger state changes based on the application of the transaction |
| **transaction_fee_meta** | input_data | |
| **soroban_transaction_data** | traces | Host env resource consumption by smart contract transactions |
| **transaction_result_code** | traces.error | Result code that includes error codes for failed transactions |
| **inclusion_fee_charged** | gas_price | The fee charged for the transaction to be included in the ledger. This is a fixed fee for the entire ledger and starts at a minimum of 100 stroops. The fee increases based on demand |
| **signatures** | signature | |
**Operations**
| **Stellar Name** | **EVM Equivalent** | **Description** |
| - | - | - |
| **id** | | Unique id for the operation |
| **source_account** | transaction.from | The account address that originates the transaction |
| **transaction_id** | | Unique ID for the transaction. Bundled operation IDs will share the same Transaction ID |
| **type** | transaction.type | Operation type |
| **details** | Mix of input data and traces | Unstructured JSON that contains details based on the type of operation executed. Each operation will return its own relevant details |
| **operation_result_code** | traces | |
| **operation_trace_code** | traces | |
### Logs and Traces
Events are the mechanism that applications off-chain can use to monitor changes and events in contracts on-chain. Events are an amalgamation of both EVM logs and traces.
Stellar has three types of smart contract events:
* **contract** - events emitted by contracts to convey state changes
* **system** - events emitted by the host environment itself
* **diagnostic** - details transaction traces intended for debugging purposes
#### Schema Mapping
| **Stellar Name** | **EVM Equivalent** | **Description** |
| - | - | - |
| **type** | trace.type | The type of event emission |
| **ledger** | block_number | The sequence number of the ledger |
| **closed_at** | block_time | The timestamp when the ledger was written to the chain |
| **contract_id** | contract_address | String key representation of the contract address |
| **id** | transaction_index | Unique ID for the event |
| **in_successful_contract_call** | trace.tx_success | Whether the event was emitted from a successful contract call |
| **topic** | logs.topic_list | Topic list of events |
| **value** | logs.data | The body values of the topic list |
| **transaction_hash** | trace.tx_hash | The transaction which triggered this event |
# stellar.history_contract_events
Source: https://docs.dune.com/data-catalog/stellar/history_contract_events
Stellar Soroban contract events — events emitted by smart contracts.
## Table description
The `stellar.history_contract_events` table captures all smart contract events and traces, with details on contract execution.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the contract event entry was closed. | date |
| **transaction_hash** | The hash of the transaction associated with the contract event, in binary format. | varbinary |
| **transaction_id** | The unique identifier for the transaction related to the contract event. | bigint |
| **successful** | Indicates whether the transaction associated with the contract event was successful. | boolean |
| **in_successful_contract_call** | Indicates whether the event occurred during a successful contract call. | boolean |
| **contract_id** | The unique identifier for the smart contract that emitted the event. | varchar |
| **type** | The numeric representation of the event type. | bigint |
| **type_string** | The string description of the event type. | varchar |
| **topics** | Encoded topics related to the contract event, typically used for filtering and categorizing events. | varchar |
| **topics_decoded** | Human-readable or decoded topics related to the contract event. | varchar |
| **data** | The data associated with the contract event, often related to the state changes or values in the contract. | varchar |
| **data_decoded** | A human-readable or decoded version of the event data. | varchar |
| **contract_event_xdr** | The raw XDR (External Data Representation) format of the contract event. | varchar |
| **closed_at** | The timestamp when the contract event entry was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the contract event is included. | bigint |
| **updated_at** | The time when the contract event record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the contract event data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_contract_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_contract_events)
# stellar.history_effects
Source: https://docs.dune.com/data-catalog/stellar/history_effects
Stellar operation effects — balance changes, trustline modifications, and other state changes.
## Table description
The `stellar.history_effects` table records specific changes that occur in the ledger as a result of successful operations, but are not necessarily directly reflected in the ledger or history, as transactions and operations are.
Operations are objects that represent a desired change to the ledger: payments, offers to exchange currency, changes made to account options, etc. Operations are submitted to the Stellar network grouped in a Transaction. Each of Stellar’s operations have a unique operation object.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the effect was closed. | date |
| **address** | The account address associated with the effect. | varchar |
| **address_muxed** | The multiplexed address, if applicable. | varchar |
| **operation_id** | The unique identifier for the operation that produced the effect. | bigint |
| **type** | The numeric representation of the effect type. | bigint |
| **type_string** | The string description of the effect type. | varchar |
| **closed_at** | The timestamp when the effect was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the effect is included. | bigint |
| **index** | The index of the effect within the operation. | bigint |
| **id** | The unique identifier for the effect. | varchar |
| **liquidity_pool** | Information about the liquidity pool related to the effect, including fee, ID, reserves, and type. | row("fee_bp" bigint,"id" varchar,"total_shares" decimal(38,9),"total_trustlines" bigint,"type" varchar,"reserves" array(row("asset" varchar,"amount" decimal(38,9)))) |
| **reserves_received** | An array of reserves received in the liquidity pool operation. | array(row("asset" varchar,"amount" decimal(38,9))) |
| **reserves_deposited** | An array of reserves deposited in the liquidity pool operation. | array(row("asset" varchar,"amount" decimal(38,9))) |
| **reserves_revoked** | An array of revoked reserves in the liquidity pool, including claimable balance IDs. | array(row("asset" varchar,"amount" decimal(38,9),"claimable_balance_id" varchar)) |
| **bought** | An array of assets bought during the operation. | array(row("asset" varchar,"amount" decimal(38,9))) |
| **sold** | An array of assets sold during the operation. | array(row("asset" varchar,"amount" decimal(38,9))) |
| **shares_revoked** | The number of shares revoked in the liquidity pool. | decimal(38,9) |
| **shares_received** | The number of shares received in the liquidity pool. | decimal(38,9) |
| **shares_redeemed** | The number of shares redeemed in the liquidity pool. | decimal(38,9) |
| **liquidity_pool_id** | The ID of the liquidity pool related to the effect. | varchar |
| **balance_id** | The ID of the balance affected by the effect. | varchar |
| **new_seq** | The new sequence number for the account. | bigint |
| **name** | The name associated with the effect. | varchar |
| **value** | The value associated with the effect. | varchar |
| **trustor** | The account ID of the trustor involved in the effect. | varchar |
| **limit** | The limit associated with the trustline in the effect. | decimal(38,9) |
| **inflation_destination** | The destination account for inflation in the effect. | varchar |
| **authorized_flag** | A boolean indicating whether the asset was authorized. | boolean |
| **auth_immutable_flag** | A boolean indicating whether the asset is immutable. | boolean |
| **authorized_to_maintain_liabilities** | A boolean indicating whether authorization to maintain liabilities was granted. | boolean |
| **auth_revocable_flag** | A boolean indicating whether the authorization is revocable. | boolean |
| **auth_required_flag** | A boolean indicating whether authorization is required. | boolean |
| **auth_clawback_enabled_flag** | A boolean indicating whether clawback is enabled for the effect. | boolean |
| **claimable_balance_clawback_enabled_flag** | A boolean indicating whether clawback is enabled for claimable balances. | boolean |
| **clawback_enabled_flag** | A boolean indicating whether clawback is enabled for the asset. | boolean |
| **high_threshold** | The high threshold for account signatures. | bigint |
| **med_threshold** | The medium threshold for account signatures. | bigint |
| **low_threshold** | The low threshold for account signatures. | bigint |
| **home_domain** | The home domain associated with the account. | varchar |
| **asset_issuer** | The issuer of the asset involved in the effect. | varchar |
| **asset** | The asset involved in the effect. | varchar |
| **asset_code** | The code of the asset involved in the effect. | varchar |
| **signer** | The signer involved in the effect. | varchar |
| **sponsor** | The sponsor of the account or effect. | varchar |
| **new_sponsor** | The new sponsor of the account or effect. | varchar |
| **former_sponsor** | The former sponsor of the account or effect. | varchar |
| **weight** | The weight assigned to the signer. | bigint |
| **public_key** | The public key associated with the effect. | varchar |
| **asset_type** | The type of asset involved in the effect. | varchar |
| **amount** | The amount involved in the effect. | decimal(38,9) |
| **starting_balance** | The starting balance of the account in the effect. | decimal(38,9) |
| **seller** | The account ID of the seller in the effect. | varchar |
| **seller_muxed** | The multiplexed account ID of the seller, if applicable. | varchar |
| **seller_muxed_id** | The ID of the multiplexed seller account. | bigint |
| **offer_id** | The ID of the offer involved in the effect. | bigint |
| **sold_amount** | The amount of the asset sold in the effect. | decimal(38,9) |
| **sold_asset_type** | The type of asset sold in the effect. | varchar |
| **sold_asset_code** | The code of the asset sold in the effect. | varchar |
| **sold_asset_issuer** | The issuer of the asset sold in the effect. | varchar |
| **bought_amount** | The amount of the asset bought in the effect. | decimal(38,9) |
| **bought_asset_type** | The type of asset bought in the effect. | varchar |
| **bought_asset_code** | The code of the asset bought in the effect. | varchar |
| **data_name** | The name of the data involved in the effect. | varchar |
| **bought_asset_issuer** | The issuer of the asset bought in the effect. | varchar |
| **entries** | An array of entries involved in the effect. | array(varchar) |
| **extend_to** | The ledger sequence number to which the effect extends. | bigint |
| **contract** | The contract associated with the effect. | varchar |
| **contract_event_type** | The type of contract event associated with the effect. | varchar |
| **ledgers_to_expire** | The number of ledgers until the effect expires. | bigint |
| **updated_at** | The time when the effect record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the effect data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_effects](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_effects)
# stellar.history_ledgers
Source: https://docs.dune.com/data-catalog/stellar/history_ledgers
Stellar ledger data — sequence number, transaction count, and protocol version.
## Table description
The `stellar.history_ledgers` table tracks ledgers info (equivalent of blocks on other blockchain), including metadata such as sequence numbers, transactions included, and fees.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the ledger was closed. | date |
| **sequence** | The sequence number of the ledger. | bigint |
| **ledger_hash** | The hash of the current ledger, in binary format. | varbinary |
| **previous_ledger_hash** | The hash of the previous ledger, in binary format. | varbinary |
| **transaction_count** | The number of transactions included in the ledger. | bigint |
| **operation_count** | The number of operations executed within the transactions in the ledger. | bigint |
| **closed_at** | The timestamp when the ledger was closed. | timestamp(3) with time zone |
| **id** | The unique identifier for the ledger entry. | bigint |
| **total_coins** | The total number of lumens (XLM) in circulation at the time the ledger was closed. | bigint |
| **fee_pool** | The sum of all transaction fees accumulated in the ledger. | bigint |
| **base_fee** | The minimum fee, in lumens (XLM), charged per operation included in the ledger. | bigint |
| **base_reserve** | The minimum XLM balance required to maintain an account, as defined in the ledger. | bigint |
| **max_tx_set_size** | The maximum number of transactions that can be included in a ledger. | bigint |
| **protocol_version** | The protocol version used by the ledger. | bigint |
| **ledger_header** | The raw binary (XDR) representation of the ledger header. | varbinary |
| **successful_transaction_count** | The number of successful transactions in the ledger. | bigint |
| **failed_transaction_count** | The number of failed transactions in the ledger. | bigint |
| **tx_set_operation_count** | The total number of operations in the transaction set of the ledger. | bigint |
| **soroban_fee_write_1kb** | The fee in lumens (XLM) for writing 1KB of data related to Soroban smart contracts. | bigint |
| **node_id** | The identifier of the node that signed and validated the ledger. | varchar |
| **signature** | The digital signature applied to the ledger by the validating node. | varchar |
| **total_byte_size_of_bucket_list** | The total byte size of the ledger's bucket list, which tracks state changes. | bigint |
| **updated_at** | The time when the ledger record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the ledger data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_ledgers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_ledgers)
# stellar.history_operations
Source: https://docs.dune.com/data-catalog/stellar/history_operations
Stellar operations — payments, offers, account changes, and other operation types.
## Table description
The `stellar.history_operations` table tracks operational details of transaction in ledgers/blocks.
Operations are objects that represent a desired change to the ledger: payments, offers to exchange currency, changes made to account options, etc. Operations are submitted to the Stellar network grouped in a Transaction. Each of Stellar’s operations have a unique operation object.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the operation was closed. | date |
| **id** | The unique identifier for the operation. | bigint |
| **source_account** | The account that initiated the operation. | varchar |
| **source_account_muxed** | The multiplexed source account address, if applicable. | varchar |
| **transaction_id** | The unique identifier for the transaction that includes the operation. | bigint |
| **type** | The numeric representation of the operation type. | bigint |
| **type_string** | The string description of the operation type. | varchar |
| **closed_at** | The timestamp when the operation was closed. | timestamp(3) with time zone |
| **operation_result_code** | The result code indicating the outcome of the operation. | varchar |
| **operation_trace_code** | The trace code detailing the operation's execution. | varchar |
| **ledger_sequence** | The sequence number of the ledger in which the operation is included. | bigint |
| **account** | The account address associated with the operation. | varchar |
| **account_muxed** | The multiplexed account address, if applicable. | varchar |
| **account_muxed_id** | The ID of the multiplexed account, if applicable. | varchar |
| **account_id** | The unique identifier for the account involved in the operation. | varchar |
| **amount** | The amount of the asset transferred or affected by the operation. | double |
| **asset** | The asset involved in the operation. | varchar |
| **asset_code** | The code of the asset involved in the operation. | varchar |
| **asset_issuer** | The issuer of the asset involved in the operation. | varchar |
| **asset_id** | The unique identifier for the asset. | bigint |
| **asset_type** | The type of asset involved in the operation. | varchar |
| **authorize** | A boolean indicating whether authorization was given for the operation. | boolean |
| **balance_id** | The ID of the balance affected by the operation. | varchar |
| **buying_asset_code** | The code of the asset being bought in the operation. | varchar |
| **buying_asset_issuer** | The issuer of the asset being bought in the operation. | varchar |
| **buying_asset_id** | The unique identifier for the asset being bought. | bigint |
| **buying_asset_type** | The type of asset being bought in the operation. | varchar |
| **claimable_balance_id** | The ID of the claimable balance involved in the operation. | varchar |
| **claimant** | The account address of the claimant. | varchar |
| **claimant_muxed** | The multiplexed account of the claimant, if applicable. | varchar |
| **claimant_muxed_id** | The ID of the multiplexed claimant account, if applicable. | varchar |
| **data_account_id** | The account ID for the account where data is being modified. | varchar |
| **data_name** | The name of the data being modified in the operation. | varchar |
| **from** | The account address sending the asset in the operation. | varchar |
| **from_muxed** | The multiplexed sender account, if applicable. | varchar |
| **from_muxed_id** | The ID of the multiplexed sender account, if applicable. | varchar |
| **funder** | The account funding the operation. | varchar |
| **funder_muxed** | The multiplexed funder account, if applicable. | varchar |
| **funder_muxed_id** | The ID of the multiplexed funder account, if applicable. | varchar |
| **high_threshold** | The high threshold required for the operation. | bigint |
| **home_domain** | The home domain associated with the account. | varchar |
| **inflation_dest** | The destination account for inflation pools. | varchar |
| **into** | The account receiving the asset in the operation. | varchar |
| **into_muxed** | The multiplexed account receiving the asset, if applicable. | varchar |
| **into_muxed_id** | The ID of the multiplexed recipient account, if applicable. | varchar |
| **limit** | The limit of the trustline or balance change. | double |
| **low_threshold** | The low threshold required for the operation. | bigint |
| **master_key_weight** | The weight of the master key for signing transactions. | bigint |
| **med_threshold** | The medium threshold required for the operation. | bigint |
| **name** | The name associated with the operation or account. | varchar |
| **offer_id** | The ID of the offer related to the operation. | bigint |
| **path** | The payment path used in the operation. | array(row("asset_code" varchar,"asset_issuer" varchar,"asset_type" varchar)) |
| **price** | The price of the asset involved in the operation. | double |
| **price\_r** | The rational price of the asset (fraction of numerator and denominator). | row("d" bigint,"n" bigint) |
| **selling_asset_code** | The code of the asset being sold in the operation. | varchar |
| **selling_asset_issuer** | The issuer of the asset being sold in the operation. | varchar |
| **selling_asset_id** | The unique identifier for the asset being sold. | bigint |
| **selling_asset_type** | The type of asset being sold in the operation. | varchar |
| **set_flags** | An array of flags being set by the operation. | array(bigint) |
| **set_flags\_s** | An array of string descriptions for the flags being set. | array(varchar) |
| **signer_account_id** | The account ID of the signer. | varchar |
| **signer_key** | The key of the signer being modified. | varchar |
| **signer_weight** | The weight assigned to the signer. | bigint |
| **source_amount** | The source amount for the operation. | double |
| **source_asset_code** | The code of the source asset in the operation. | varchar |
| **source_asset_issuer** | The issuer of the source asset in the operation. | varchar |
| **source_asset_id** | The unique identifier for the source asset. | bigint |
| **source_asset_type** | The type of source asset in the operation. | varchar |
| **source_max** | The maximum amount of the source asset allowed in the operation. | double |
| **starting_balance** | The starting balance for the account in the operation. | double |
| **to** | The account receiving the asset. | varchar |
| **to_muxed** | The multiplexed account receiving the asset, if applicable. | varchar |
| **to_muxed_id** | The ID of the multiplexed recipient account, if applicable. | varchar |
| **trustee** | The trustee account involved in the operation. | varchar |
| **trustee_muxed** | The multiplexed trustee account, if applicable. | varchar |
| **trustee_muxed_id** | The ID of the multiplexed trustee account, if applicable. | varchar |
| **trustline_account_id** | The account ID associated with the trustline in the operation. | varchar |
| **trustline_asset** | The asset involved in the trustline operation. | varchar |
| **trustor** | The trustor account in the operation. | varchar |
| **trustor_muxed** | The multiplexed trustor account, if applicable. | varchar |
| **trustor_muxed_id** | The ID of the multiplexed trustor account, if applicable. | varchar |
| **value** | The value associated with the operation. | varchar |
| **clear_flags** | An array of flags being cleared by the operation. | array(bigint) |
| **clear_flags\_s** | An array of string descriptions for the flags being cleared. | array(varchar) |
| **destination_min** | The minimum destination amount in the operation. | varchar |
| **bump_to** | The sequence number to which the operation bumps. | varchar |
| **authorize_to_maintain_liabilities** | A boolean indicating whether authorization is granted to maintain liabilities. | boolean |
| **clawback_enabled** | A boolean indicating whether clawback is enabled for the operation. | boolean |
| **sponsor** | The account sponsoring the operation. | varchar |
| **sponsored_id** | The ID of the sponsored account. | varchar |
| **begin_sponsor** | The sponsor that initiated the operation. | varchar |
| **begin_sponsor_muxed** | The multiplexed sponsor account, if applicable. | varchar |
| **begin_sponsor_muxed_id** | The ID of the multiplexed sponsor account, if applicable. | varchar |
| **liquidity_pool_id** | The liquidity pool ID associated with the operation. | varchar |
| **reserve_a_asset_type** | The type of the first reserve asset in the liquidity pool operation. | varchar |
| **reserve_a_asset_code** | The code of the first reserve asset in the liquidity pool operation. | varchar |
| **reserve_a_asset_issuer** | The issuer of the first reserve asset in the liquidity pool operation. | varchar |
| **reserve_a_asset_id** | The unique identifier for the first reserve asset. | bigint |
| **reserve_a_max_amount** | The maximum amount of the first reserve asset in the operation. | double |
| **reserve_a_deposit_amount** | The amount of the first reserve asset deposited in the operation. | double |
| **reserve_b_asset_type** | The type of the second reserve asset in the liquidity pool operation. | varchar |
| **reserve_b_asset_code** | The code of the second reserve asset in the liquidity pool operation. | varchar |
| **reserve_b_asset_issuer** | The issuer of the second reserve asset in the liquidity pool operation. | varchar |
| **reserve_b_asset_id** | The unique identifier for the second reserve asset. | bigint |
| **reserve_b_max_amount** | The maximum amount of the second reserve asset in the operation. | double |
| **reserve_b_deposit_amount** | The amount of the second reserve asset deposited in the operation. | double |
| **min_price** | The minimum price of the asset in the operation. | double |
| **min_price\_r** | The rational minimum price of the asset (fraction of numerator and denominator). | array(row("d" bigint,"n" bigint)) |
| **max_price** | The maximum price of the asset in the operation. | double |
| **max_price\_r** | The rational maximum price of the asset (fraction of numerator and denominator). | array(row("d" bigint,"n" bigint)) |
| **shares_received** | The number of shares received in the liquidity pool operation. | double |
| **reserve_a_min_amount** | The minimum amount of the first reserve asset in the operation. | double |
| **reserve_a_withdraw_amount** | The amount of the first reserve asset withdrawn in the operation. | double |
| **reserve_b_min_amount** | The minimum amount of the second reserve asset in the operation. | double |
| **reserve_b_withdraw_amount** | The amount of the second reserve asset withdrawn in the operation. | double |
| **shares** | The number of shares involved in the liquidity pool operation. | double |
| **asset_balance_changes** | An array of asset balance changes related to the operation. | array(row("amount" double,"asset_code" varchar,"asset_issuer" varchar,"asset_type" varchar,"from" varchar,"to" varchar,"type" varchar)) |
| **parameters** | An array of parameters associated with the operation. | array(row("type" varchar,"value" varchar)) |
| **parameters_decoded** | An array of decoded parameters associated with the operation. | array(row("type" varchar,"value" varchar)) |
| **function** | The function executed in the operation. | varchar |
| **address** | The address associated with the operation. | varchar |
| **extend_to** | The sequence number to which the operation extends. | bigint |
| **contract_id** | The contract ID associated with the operation. | varchar |
| **contract_code_hash** | The hash of the contract code associated with the operation. | varchar |
| **ledger_key_hash** | An array of hashes for the ledger keys associated with the operation. | array(varchar) |
| **ledgers_to_expire** | The number of ledgers until the operation expires. | bigint |
| **soroban_operation_type** | The type of operation for Soroban smart contracts. | varchar |
| **updated_at** | The time when the operation record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the operation data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_operations](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_operations)
# stellar.history_trades
Source: https://docs.dune.com/data-catalog/stellar/history_trades
Stellar DEX trades — orderbook-based trades on the Stellar decentralized exchange.
## Table description
The `stellar.history_trades` table records trades performed on Stellar's decentralized exchange.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the trade operation was closed. | date |
| **history_operation_id** | The unique identifier for the operation associated with the trade. | bigint |
| **order** | The sequence or order of the trade execution within the operation. | bigint |
| **selling_account_address** | The account address of the seller in the trade. | varchar |
| **selling_asset_code** | The code of the asset being sold in the trade. | varchar |
| **selling_asset_issuer** | The issuer of the asset being sold in the trade. | varchar |
| **selling_asset_type** | The type of asset being sold (e.g., native, issued). | varchar |
| **selling_asset_id** | The identifier for the asset being sold. | bigint |
| **selling_amount** | The amount of the asset being sold. | double |
| **buying_account_address** | The account address of the buyer in the trade. | varchar |
| **buying_asset_code** | The code of the asset being bought in the trade. | varchar |
| **buying_asset_issuer** | The issuer of the asset being bought in the trade. | varchar |
| **buying_asset_type** | The type of asset being bought (e.g., native, issued). | varchar |
| **buying_asset_id** | The identifier for the asset being bought. | bigint |
| **buying_amount** | The amount of the asset being bought. | double |
| **price\_n** | The numerator of the price ratio (price as a fraction) of the trade. | bigint |
| **price\_d** | The denominator of the price ratio (price as a fraction) of the trade. | bigint |
| **selling_offer_id** | The offer ID for the selling side of the trade. | bigint |
| **buying_offer_id** | The offer ID for the buying side of the trade. | bigint |
| **selling_liquidity_pool_id** | The identifier for the liquidity pool involved in the selling side of the trade, if applicable. | varchar |
| **liquidity_pool_fee** | The fee in lumens (XLM) for the liquidity pool, if applicable. | bigint |
| **trade_type** | The type of trade (e.g., market, limit). | bigint |
| **rounding_slippage** | The slippage amount due to rounding in the trade execution. | bigint |
| **seller_is_exact** | A boolean indicating whether the seller's amount was exact in the trade. | boolean |
| **closed_at** | The timestamp when the trade was closed. | timestamp(3) with time zone |
| **updated_at** | The time when the trade record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the trade data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_trades](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_trades)
# stellar.history_transactions
Source: https://docs.dune.com/data-catalog/stellar/history_transactions
Stellar transaction records — source account, fee, memo, and operation count.
## Table description
The `stellar.history_transactions` table contains transaction details, linking to multiple operations within a transaction.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the transaction was closed. | date |
| **id** | The unique identifier for the transaction. | bigint |
| **transaction_hash** | The hash of the transaction, in binary format. | varbinary |
| **ledger_sequence** | The sequence number of the ledger in which the transaction is included. | bigint |
| **account** | The account address that originated the transaction. | varchar |
| **account_sequence** | The source account's sequence number that this transaction consumed. | bigint |
| **max_fee** | The maximum fee that the account was willing to pay for the transaction. | bigint |
| **operation_count** | The number of operations contained within this transaction. | bigint |
| **created_at** | The timestamp when the transaction was created. | timestamp(3) with time zone |
| **memo_type** | The type of memo attached to the transaction (e.g., text, id, hash). | varchar |
| **memo** | The optional unstructured memo data attached to the transaction. | varchar |
| **time_bounds** | The optional UNIX timestamp of the lower and upper bounds for when the transaction will be valid. | varchar |
| **successful** | Indicates if the transaction succeeded. | boolean |
| **fee_charged** | The fee charged for executing the transaction. | bigint |
| **inner_transaction_hash** | The hash of a transaction wrapped with its signatures for fee-bump transactions. | varbinary |
| **fee_account** | The account that paid for the transaction fees, which may differ from the originating account. | varchar |
| **new_max_fee** | The maximum fee that the fee-payer is willing to pay for the transaction's fees. | bigint |
| **account_muxed** | The virtual account address under a traditional Stellar account (multiplexed account). | varchar |
| **fee_account_muxed** | The virtual address of the fee-paying account if it is a multiplexed account. | varchar |
| **ledger_bounds** | Optional restrictions on the ledger range within which the transaction is valid. | varchar |
| **min_account_sequence** | The minimum account sequence number required for this transaction to be valid. | bigint |
| **min_account_sequence_age** | The minimum age (in seconds) of the sequence number. | bigint |
| **min_account_sequence_ledger_gap** | The minimum number of ledgers between this transaction and the account's last transaction. | bigint |
| **tx_envelope** | The raw XDR of the transaction that was submitted. | varchar |
| **tx_result** | The raw XDR of the transaction result after execution. | varchar |
| **tx_meta** | The raw XDR of the ledger state changes based on the transaction. | varchar |
| **tx_fee_meta** | The raw XDR of the fee changes associated with the transaction. | varchar |
| **extra_signers** | Any additional signers attached to the transaction (array of addresses). | array(varchar) |
| **resource_fee** | The resource fee charged for executing the transaction. | bigint |
| **soroban_resources_instructions** | The number of instructions used in Soroban smart contracts during the transaction. | bigint |
| **soroban_resources_read_bytes** | The number of bytes read during Soroban smart contract execution. | bigint |
| **soroban_resources_write_bytes** | The number of bytes written during Soroban smart contract execution. | bigint |
| **closed_at** | The timestamp when the transaction was closed. | timestamp(3) with time zone |
| **transaction_result_code** | The result code that includes error codes for failed transactions. | varchar |
| **inclusion_fee_bid** | The fee bid by the account to include the transaction in the ledger. | bigint |
| **inclusion_fee_charged** | The actual fee charged for the transaction to be included in the ledger. | bigint |
| **resource_fee_refund** | The refunded portion of the resource fee. | bigint |
| **non_refundable_resource_fee_charged** | The portion of the resource fee that is non-refundable. | bigint |
| **refundable_resource_fee_charged** | The portion of the resource fee that can be refunded. | bigint |
| **rent_fee_charged** | The fee charged for rent of contract storage or data resources. | bigint |
| **tx_signers** | The array of signers involved in signing the transaction. | array(varchar) |
| **refundable_fee** | The fee that can be refunded to the account based on transaction execution. | bigint |
| **updated_at** | The time when the transaction record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the transaction data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=history_transactions)
# stellar.liquidity_pools
Source: https://docs.dune.com/data-catalog/stellar/liquidity_pools
Stellar AMM liquidity pools — pool assets, reserves, and share supply.
## Table description
The `stellar.liquidity_pools` table stores data on Stellar’s liquidity pools, such as the type, fee, assets involved etc. Liquidity Pools provide a simple, non-interactive way to trade large amounts of capital and enable high volumes of trading.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the liquidity pool entry was closed. | date |
| **liquidity_pool_id** | The unique identifier for the liquidity pool. | varchar |
| **type** | The type of liquidity pool (e.g., constant product, stable). | varchar |
| **fee** | The fee rate, in basis points, for trading within the liquidity pool. | bigint |
| **trustline_count** | The number of trustlines associated with the liquidity pool. | bigint |
| **pool_share_count** | The total number of pool shares outstanding, representing ownership in the pool. | double |
| **asset_a_type** | The type of the first asset in the liquidity pool. | varchar |
| **asset_a_code** | The code of the first asset in the liquidity pool. | varchar |
| **asset_a_issuer** | The issuer of the first asset in the liquidity pool. | varchar |
| **asset_a_id** | The unique identifier for the first asset in the liquidity pool. | bigint |
| **asset_a_amount** | The total amount of the first asset held in the liquidity pool. | double |
| **asset_b_type** | The type of the second asset in the liquidity pool. | varchar |
| **asset_b_code** | The code of the second asset in the liquidity pool. | varchar |
| **asset_b_issuer** | The issuer of the second asset in the liquidity pool. | varchar |
| **asset_b_id** | The unique identifier for the second asset in the liquidity pool. | bigint |
| **asset_b_amount** | The total amount of the second asset held in the liquidity pool. | double |
| **last_modified_ledger** | The sequence number of the ledger where the liquidity pool entry was last modified. | bigint |
| **ledger_entry_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the liquidity pool entry has been deleted from the ledger. | boolean |
| **closed_at** | The timestamp when the liquidity pool entry was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the liquidity pool entry is included. | bigint |
| **updated_at** | The time when the liquidity pool record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the liquidity pool data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=liquidity_pools](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=liquidity_pools)
# Stellar Data
Source: https://docs.dune.com/data-catalog/stellar/overview
Stellar blockchain data on Dune
## What is Stellar?
Stellar is an open-source, decentralized blockchain designed for fast, low-cost financial transactions. Built around the Stellar Consensus Protocol (SCP), a unique proof-of-agreement (PoA) mechanism, Stellar focuses on facilitating cross-border payments, asset issuance, and decentralized finance (DeFi) applications. Stellar’s network prioritizes energy efficiency and speed, with transactions confirmed within 5 seconds and the network capable of processing up to 1,000 operations per ledger.
Stellar's native token, the lumen (XLM), plays a key role in maintaining the network’s health by ensuring account activity and discouraging spam through a small transaction fee and minimum balance requirement.
## Key Concepts of Stellar
Stellar’s blockchain architecture and mechanisms are designed for high-speed financial transactions and asset transfers, underpinned by a few critical components that set it apart from other blockchain platforms.
### **Ledger Structure**
Stellar’s blockchain operates using ledgers, similar to blocks on other blockchains. A ledger records the state of accounts, balances, smart contracts, and other relevant data. Each ledger contains a ledger header, summarizing essential metadata such as the sequence number, transaction fees, and validator signatures.
### **Proof-of-Agreement Consensus**
Stellar uses the Stellar Consensus Protocol (SCP), a proof-of-agreement consensus that enables rapid transaction processing while ensuring decentralization. Unlike proof-of-work (PoW) or proof-of-stake (PoS) models, SCP relies on trusted nodes reaching a consensus through agreement, making Stellar energy-efficient and fast.
### **Accounts and Trustlines**
Stellar accounts hold **lumen (XLM)** and other token balances via **trustlines**. A trustline is an established link between a user account and a token issuer, allowing the user to hold, send, or receive tokens other than lumens. While **accounts** store native lumens, **trustlines** track the balances of other tokens, including popular assets like USDC and USDT.
### **Token Issuance**
One of Stellar’s most powerful features is its support for **asset issuance**. Developers can create tokenized assets that represent fiat currencies, commodities, or other real-world value. These assets can be traded on Stellar’s native decentralized exchange (DEX), making Stellar an ideal platform for borderless payments and asset transfers.
### **Transaction Lifecycle & Fees**
Each Stellar transaction is an atomic operation that can involve multiple **operations**, such as payments, creating accounts, or managing offers on the DEX. Fees are minimal, with the current minimum per-transaction fee being 0.00001 XLM. Stellar’s architecture ensures efficient cross-border transactions with a finality time of around 5 seconds.
### **Smart Contracts**
Stellar supports smart contracts through a combination of **operations** and **contract data** stored on the ledger. Smart contracts can define various on-chain actions, such as token management or enforcing custom rules for transactions. Stellar's smart contract execution is energy-efficient, focusing on lightweight operations for scalability.
> [card] [Stellar documentation](https://developers.stellar.org/docs/learn/fundamentals)
>
> Explore comprehensive documentation of Stellar, detailing its architecture, protocol, and resources for developers.
> [card] [Stellar data model diagram](https://developers.stellar.org/docs/data/hubble/data-catalog/data-model-diagram)
>
> See the relationship between history and state tables in Stellar's data model.
## Stellar Data on Dune
Stellar blockchain data is categorized into traditional time series tables (e.g., **history\_** tables for actions affecting the state of the ledger) and **ledger state** tables (e.g., **accounts**, representing the current state). This division allows users to explore historical actions and current ledger state for deeper analysis. Here are the Stellar tables available on Dune:
> [card] [Accounts](/data-catalog/stellar/accounts)
>
> Tracks the native token (Lumens) balances held by accounts.
> [card] [Contract Data](/data-catalog/stellar/contract_data)
>
> Stores state data for smart contracts, including supported tokens and storage costs.
> [card] [Trust Lines](/data-catalog/stellar/trust_lines)
>
> Tracks balances of accounts for non-native tokens (such as USDC or USDT).
> [card] [Liquidity Pools](/data-catalog/stellar/liquidity_pools)
>
> Stores data on Stellar’s liquidity pools, such as the type, fee, assets involved etc.
> [card] [TTL (Time to Live)](/data-catalog/stellar/ttl)
>
> Records time limits for smart contract data, enforcing storage expiry rules.
> [card] [History Contract Events](/data-catalog/stellar/history_contract_events)
>
> Captures all smart contract events and traces, with details on contract execution.
> [card] [History Ledgers](/data-catalog/stellar/history_ledgers)
>
> Tracks ledgers info (equivalent of blocks on other blockchain), including metadata such as sequence numbers, transactions included, and fees.
> [card] [History Operations](/data-catalog/stellar/history_operations)
>
> Tracks operational details of transaction in ledgers/blocks.
> [card] [History Trades](/data-catalog/stellar/history_trades)
>
> Records trades performed on Stellar's decentralized exchange.
> [card] [History Transactions](/data-catalog/stellar/history_transactions)
>
> Contains transaction details, linking to multiple operations within a transaction.
> [card] [History Effects](/data-catalog/stellar/history_effects)
>
> Records specific changes that occur in the ledger as a result of success operations, but are not necessarily directly reflected in the ledger or history, as transactions and operations are.
# stellar.trust_lines
Source: https://docs.dune.com/data-catalog/stellar/trust_lines
Stellar trustlines — authorized asset holdings per account.
## Table description
The `stellar.trust_lines` table tracks balances of accounts for non-native tokens (such as USDC or USDT).
Trustlines are an explicit opt-in for an account to hold and trade a particular asset. To hold a specific asset, an account must establish a trustline with the issuing account using the change_trust operation. Trustlines track the balance of an asset and can also limit the amount of an asset that an account can hold.
A trustline must be established for an account to receive any asset except lumens (XLM). You can create a claimable balance to send assets to an account without a trustline, but the recipient has to create a trustline to claim that balance. Learn more here: Claimable Balances Encyclopedia Entry
A trustline also tracks liabilities. Buying liabilities equal the total amount of the asset offered to buy aggregated over all offers owned by an account, and selling liabilities equal the total amount of the asset offered to sell aggregated over all offers owned by an account. A trustline must always have a balance sufficiently large to satisfy its selling liabilities and a balance sufficiently below its limit to accommodate its buying liabilities.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **ledger_key** | The unique identifier for the trustline entry in the ledger. | varchar |
| **account_id** | The account address associated with the trustline. | varchar |
| **asset_type** | The type of asset for which the trustline is established (e.g., native, issued). | varchar |
| **asset_issuer** | The issuer of the asset for which the trustline is established. | varchar |
| **asset_code** | The code of the asset for which the trustline is established. | varchar |
| **asset_id** | The unique identifier for the asset in the trustline. | bigint |
| **liquidity_pool_id** | The identifier of the liquidity pool related to the trustline, if applicable. | varchar |
| **balance** | The balance of the asset held by the account in the trustline. | double |
| **trust_line_limit** | The maximum balance of the asset that the account is willing to hold via the trustline. | bigint |
| **buying_liabilities** | The total liabilities for buying offers on the account for this trustline. | double |
| **selling_liabilities** | The total liabilities for selling offers on the account for this trustline. | double |
| **flags** | A set of flags representing various properties of the trustline, such as authorization requirements. | bigint |
| **last_modified_ledger** | The ledger sequence number where the trustline entry was last modified. | bigint |
| **ledger_entry_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the trustline entry has been deleted from the ledger. | boolean |
| **sponsor** | The account that is sponsoring this trustline's resources. | varchar |
| **closed_at** | The timestamp when the trustline entry was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the trustline entry is included. | bigint |
| **updated_at** | The time when the trustline record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the trustline data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=trust_lines](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=trust_lines)
# stellar.ttl
Source: https://docs.dune.com/data-catalog/stellar/ttl
Stellar contract data time-to-live records.
## Table description
The `stellar.ttl` table records time limits for smart contract data, enforcing storage expiry rules.
## Column Descriptions
| **Column** | **Description** | **Type** |
| - | - | - |
| **closed_at_date** | The date when the TTL (Time-to-Live) entry was closed. | date |
| **key_hash** | The hash of the key used to identify the TTL entry, in binary format. | varbinary |
| **live_until_ledger_seq** | The ledger sequence number until which the TTL entry remains live. | bigint |
| **last_modified_ledger** | The ledger sequence number where the TTL entry was last modified. | bigint |
| **ledger_entry_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the TTL entry has been deleted from the ledger. | boolean |
| **closed_at** | The timestamp when the TTL entry was closed. | timestamp(3) with time zone |
| **ledger_sequence** | The sequence number of the ledger in which the TTL entry is included. | bigint |
| **updated_at** | The time when the TTL record was last updated. | timestamp(3) with time zone |
| **ingested_at** | The time when the TTL data was ingested into the system. | timestamp(3) with time zone |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=ttl](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=stellar\&table_name_t6f0df=ttl)
# polkadot.balances
Source: https://docs.dune.com/data-catalog/substrate/balances
Description of Substrate balances tables on Dune.
## Table description
The `balances` table (e.g. `polkadot.balances`) stores a snapshot of all account balances at the end of each day: `free`, `reserved`, `misc_frozen`, and their USD value, if available.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the snapshot (partition column) |
| `month` | `INTEGER` | Calendar month of the snapshot (partition column) |
| `day` | `INTEGER` | Calendar day of the snapshot (partition column) |
| `ts` | `TIMESTAMP` | Timestamp of the end-of-day balance snapshot |
| `symbol` | `VARCHAR` | Token symbol (e.g. `DOT`, `KSM`) |
| `address_ss58` | `VARCHAR` | SS58-encoded address of the account holder |
| `address_pubkey` | `VARBINARY` | Public key of the account holder |
| `id` | `VARCHAR` | Unique identifier for the asset |
| `chain_name` | `VARCHAR` | Name of the Substrate chain (e.g. `polkadot`, `kusama`) |
| `asset` | `VARCHAR` | Asset type or name |
| `para_id` | `BIGINT` | Parachain ID, if the balance is on a parachain |
| `free` | `DOUBLE` | Freely transferable balance (human-readable units) |
| `reserved` | `DOUBLE` | Reserved balance locked for on-chain activities (human-readable units) |
| `misc_frozen` | `DOUBLE` | Balance frozen for miscellaneous reasons (human-readable units) |
| `frozen` | `DOUBLE` | Total frozen balance (human-readable units) |
| `nonce` | `BIGINT` | Account transaction nonce at the time of the snapshot |
| `free_raw` | `VARCHAR` | Raw free balance in smallest denomination (Planck) |
| `reserved_raw` | `VARCHAR` | Raw reserved balance in smallest denomination (Planck) |
| `misc_frozen_raw` | `VARCHAR` | Raw misc frozen balance in smallest denomination (Planck) |
| `frozen_raw` | `VARCHAR` | Raw frozen balance in smallest denomination (Planck) |
| `flags_raw` | `VARCHAR` | Raw account flags value |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=balances)
# polkadot.blocks
Source: https://docs.dune.com/data-catalog/substrate/blocks
Description of Substrate blocks table on Dune.
## Table description
The `polkadot.blocks` table stores basic information about Substrate blocks, with one record per block, including the block hash and statistics on the number of extrinsics, events, and transfers contained in each block.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the block (partition column) |
| `month` | `INTEGER` | Calendar month of the block (partition column) |
| `day` | `INTEGER` | Calendar day of the block (partition column) |
| `block_time` | `TIMESTAMP` | The timestamp when the block was produced |
| `number` | `BIGINT` | The sequential block number |
| `spec_version` | `BIGINT` | Runtime specification version active at this block |
| `relay_block_number` | `BIGINT` | Corresponding relay chain block number (for parachains) |
| `hash` | `VARBINARY` | Unique hash identifying this block |
| `parent_hash` | `VARBINARY` | Hash of the preceding block |
| `state_root` | `VARBINARY` | Root hash of the state trie after this block |
| `extrinsics_root` | `VARBINARY` | Root hash of the extrinsics trie for this block |
| `author_ss58` | `VARCHAR` | SS58-encoded address of the block author/validator |
| `author_pub_key` | `VARBINARY` | Public key of the block author/validator |
| `relay_state_root` | `VARBINARY` | State root of the relay chain at this block (for parachains) |
| `extrinsic_count` | `BIGINT` | Number of extrinsics included in this block |
| `event_count` | `BIGINT` | Number of events emitted in this block |
| `transfer_count` | `BIGINT` | Number of token transfers in this block |
| `trace_count` | `BIGINT` | Number of traces recorded for this block |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=blocks)
# polkadot.calls
Source: https://docs.dune.com/data-catalog/substrate/calls
Description of Substrate calls tables on Dune.
## Table description
The `polkadot.calls` table represents *internal* calls within Substrate extrinsics, including recursive calls from `proxy` and `utility` (batch) pallets, and provides detailed call arguments at each level of the call tree. Unlike the `extrinsics` table which only captures the top-level call, this table exposes the full call hierarchy.
Common queries on the `calls` table will typically filter on `block_time`, `call_section` and `call_method` and extract JSON encoded information in
`data` or `decoded_data`.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the block (partition column) |
| `month` | `INTEGER` | Calendar month of the block (partition column) |
| `call_section` | `VARCHAR` | The pallet (module) of this call (e.g. `Balances`, `Staking`) |
| `call_method` | `VARCHAR` | The method name within the pallet (e.g. `transfer`, `bond`) |
| `block_number` | `BIGINT` | The sequential number of the block containing this call |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this call |
| `extrinsic_id` | `VARCHAR` | Identifier of the parent extrinsic (format: `blockNumber-extrinsicIndex`) |
| `relay_chain` | `VARCHAR` | Name of the relay chain (e.g. `polkadot`, `kusama`) |
| `para_id` | `BIGINT` | Parachain ID, if this call is on a parachain |
| `id` | `VARCHAR` | Unique identifier for this call |
| `block_hash` | `VARBINARY` | Hash of the block containing this call |
| `extrinsic_hash` | `VARBINARY` | Hash of the parent extrinsic |
| `extrinsic_section` | `VARCHAR` | The pallet of the top-level extrinsic |
| `extrinsic_method` | `VARCHAR` | The method of the top-level extrinsic |
| `call_id` | `VARCHAR` | Identifier for this specific call within the extrinsic |
| `call_index` | `VARBINARY` | Encoded index of the call within the pallet |
| `call_args` | `VARCHAR` | JSON-encoded arguments passed to this call |
| `call_args_def` | `VARCHAR` | JSON-encoded definition/schema of the call arguments |
| `root` | `BOOLEAN` | Whether this is the root (top-level) call in the extrinsic |
| `leaf` | `BOOLEAN` | Whether this is a leaf call with no further nested calls |
| `fee` | `DOUBLE` | Transaction fee paid for this call |
| `weight` | `BIGINT` | Execution weight consumed by this call |
| `signed` | `BOOLEAN` | Whether the parent extrinsic was signed |
| `signer_ss58` | `VARCHAR` | SS58-encoded address of the extrinsic signer |
| `signer_pub_key` | `VARBINARY` | Public key of the extrinsic signer |
| `lifetime` | `VARCHAR` | Validity period of the extrinsic (mortal/immortal era) |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=calls](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=calls)
# polkadot.events
Source: https://docs.dune.com/data-catalog/substrate/events
Substrate runtime events across Polkadot, Kusama, and parachain networks.
## Table description
The `events` table (e.g. `polkadot.events`) holds all events that occur on the chain, including their pallet `section` and `method`, as well as the decoded data involved in the event.
Common queries on the `events` table will typically filter on `block_time`, `section` and `method` and extract JSON encoded information in
`data` or `decoded_data`.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the block (partition column) |
| `month` | `INTEGER` | Calendar month of the block (partition column) |
| `section` | `VARCHAR` | The pallet (module) that emitted this event (e.g. `Balances`, `System`) |
| `method` | `VARCHAR` | The event method name within the pallet (e.g. `Transfer`, `ExtrinsicSuccess`) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this event |
| `block_number` | `BIGINT` | The sequential number of the block containing this event |
| `extrinsic_id` | `VARCHAR` | Identifier of the extrinsic that triggered this event |
| `event_id` | `VARCHAR` | Unique identifier for this event (format: `blockNumber-eventIndex`) |
| `data` | `VARCHAR` | JSON-encoded event data |
| `extrinsic_hash` | `VARBINARY` | Hash of the extrinsic that triggered this event |
| `block_hash` | `VARBINARY` | Hash of the block containing this event |
| `data_decoded` | `VARCHAR` | Human-readable decoded event data |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=events)
# polkadot.extrinsics
Source: https://docs.dune.com/data-catalog/substrate/extrinsics
Description of Substrate extrinsics table on Dune.
## Table description
Extrinsics (aka "transactions") normally contain a signature, some data to describe if the extrinsic has passed some validity checks and a reference to the pallet and call that it is intended for. Extrinsics may be signed or unsigned. Some extrinsics have a complex structure, e.g. when using proxy or utility pallets, resulting in the top-level call initiating other calls involving other pallets.
Common queries on the `extrinsics` table (e.g. `polkadot.extrinsics`) will typically filter on `block_time`, `section` and `method` and extract JSON encoded information in `data` or `decoded_data`. In many cases, an initial query on the `extrinsics` table is best developed on the calls table instead to properly capture how users often use proxy and utility constructs to interact with the Substrate chain.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the block (partition column) |
| `month` | `INTEGER` | Calendar month of the block (partition column) |
| `section` | `VARCHAR` | The pallet (module) of the top-level call (e.g. `Balances`, `Staking`) |
| `method` | `VARCHAR` | The method name within the pallet (e.g. `transferKeepAlive`, `nominate`) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this extrinsic |
| `block_number` | `BIGINT` | The sequential number of the block containing this extrinsic |
| `extrinsic_id` | `VARCHAR` | Unique identifier for this extrinsic (format: `blockNumber-extrinsicIndex`) |
| `hash` | `VARBINARY` | Hash of this extrinsic |
| `block_hash` | `VARBINARY` | Hash of the block containing this extrinsic |
| `lifetime` | `VARCHAR` | Validity period of the extrinsic (mortal/immortal era) |
| `params` | `VARCHAR` | JSON-encoded parameters of the top-level call |
| `fee` | `DOUBLE` | Transaction fee paid for this extrinsic |
| `weight` | `BIGINT` | Execution weight consumed by this extrinsic |
| `signed` | `BOOLEAN` | Whether this extrinsic includes a cryptographic signature |
| `signer_ss58` | `VARCHAR` | SS58-encoded address of the signer |
| `signer_pub_key` | `VARBINARY` | Public key of the signer |
| `status` | `BOOLEAN` | Whether the extrinsic executed successfully (`true`) or failed (`false`) |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=extrinsics](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=extrinsics)
# Materialized Views
Source: https://docs.dune.com/data-catalog/substrate/materialized_views
Useful materialized views for Polkadot, Kusama & their parachains.
> [!NOTE]
>
> Materialized views store pre-computed query results as tables, enabling faster queries and simplified data pipelines. To learn more about creating and using materialized views, see the [Materialized Views page](/query-engine/materialized-views).
A list of useful queries that we have [materialized](https://dune.com/queries?category=third_party_data\&catalog=dune\&schema=substrate) for usability. Some complex dashboards can be constructed more efficiently by referencing these materialized views. Forks and additions are welcome!
## Polkadot
| Materialized View | Query ID | Description |
| - | - | - |
| dune.substrate.result_polkadot_validators | [query_3302709](https://dune.com/queries/3302709) | Analyzes Polkadot validators' performance and staking rewards, including nominator associations and APR calculations. |
| dune.substrate.result_polkadot_nominationpools | [query_3327350](https://dune.com/queries/3327350) | Tracks and assesses Nomination Pool rewards, fees, and APR within the Polkadot ecosystem. |
| dune.substrate.result_polkadot_nominators | [query_3326829](https://dune.com/queries/3326829) | Summarizes active nominator contributions, rewards, and their share in validators' stakes in Polkadot. |
| dune.substrate.result_polkadot_poolmembers | [query_3327479](https://dune.com/queries/3327479) | Details individual Nomination Pool member contributions, rewards, and unclaimed amounts in Polkadot. |
| dune.substrate.result_polkadot_identity | [query_3420617](https://dune.com/queries/3420617) | A mapping between Polkadot and Kusama identities, linking addresses and verifying authenticity. |
| dune.substrate.result_polkadot_referenda_total_voting_power | [query_3394422](https://dune.com/queries/3394422) | Summarizes Polkadot referenda votes, detailing direct and delegated voting power and convictions. |
| dune.substrate.result_polkadot_staking_nomination_total | [query_3426963](https://dune.com/queries/3426963) | Displays Polkadot nominators, their staked totals per validator, and validator identities by era. |
| dune.substrate.result_polkadot_open_gov_delegation | [query_3393179](https://dune.com/queries/3393179) | Details staked totals by Polkadot nominators across validators and eras, including validator names. |
| dune.substrate.result_polkadot_vote_record | [query_3415321](https://dune.com/queries/3415321) | Polkadot referenda vote information, integrating direct, proxy, and delegated votes with dynamic links and voter identities. |
| dune.substrate.result_polkadot_proposals_proposed | [query_3394156](https://dune.com/queries/3394156) | Tracks Polkadot referenda statuses including proposer details, timelines, and outcome, with direct links to further information. |
| dune.substrate.result_polkadot_referenda_direct_vote | [query_3391225](https://dune.com/queries/3391225) | All Polkadot referendum direct votes (filter expired votes). |
| dune.substrate.result_polkadot_each_vote_record | [query_3393684](https://dune.com/queries/3393684) | Aggregates Polkadot referendum voting details, showing voter identities, vote types, convictions, and power, including direct and delegated votes. |
| dune.substrate.result_polkadot_referenda_origin_map | [query_3399352](https://dune.com/queries/3399352) | Associates Polkadot referenda with their origins. |
| dune.substrate.result_polkadot_failed_calls_in_batch | [query_3457139](https://dune.com/queries/3457139) | Finds some failed calls hidden in a utility batch on Polkadot. |
## Kusama
| Materialized View | Query ID | Description |
| - | - | - |
| dune.substrate.result_kusama_validators | [query_3477509](https://dune.com/queries/3477509) | Analyzes Kusama validators' performance and staking rewards, including nominator associations and APR calculations. |
| dune.substrate.result_kusama_nominationpools | [query_3477568](https://dune.com/queries/3477568) | Tracks and assesses Nomination Pool rewards, fees, and APR within the Kusama ecosystem. |
| dune.substrate.result_kusama_nominators | [query_3477192](https://dune.com/queries/3477192) | Summarizes active nominator contributions, rewards, and their share in validators' stakes in Kusama. |
| dune.substrate.result_kusama_poolmembers | [query_3477877](https://dune.com/queries/3477877) | Details individual Nomination Pool member contributions, rewards, and unclaimed amounts in Kusama. |
| dune.substrate.result_kusama_referenda_total_voting_power | [query_3480624](https://dune.com/queries/3480624) | Summarizes Kusama referenda votes, detailing direct and delegated voting power and convictions. |
| dune.substrate.result_kusama_open_gov_delegation | [query_3480477](https://dune.com/queries/3480477) | Details staked totals by Kusama nominators across validators and eras, including validator names. |
| dune.substrate.result_kusama_vote_record | [query_3480405](https://dune.com/queries/3480405) | Kusama referenda vote information, integrating direct, proxy, and delegated votes with dynamic links and voter identities. |
| dune.substrate.result_kusama_proposals_proposed | [query_3480370](https://dune.com/queries/3480370) | Tracks Kusama referenda statuses including proposer details, timelines, and outcome, with direct links to further information. |
| dune.substrate.result_kusama_referenda_direct_vote | [query_3480617](https://dune.com/queries/3480617) | All Kusama referendum direct votes (filter expired votes). |
| dune.substrate.result_kusama_each_vote_record | [query_3480878](https://dune.com/queries/3480878) | Aggregates Kusama referendum voting details, showing voter identities, vote types, convictions, and power, including direct and delegated votes. |
| dune.substrate.result_kusama_referenda_origin_map | [query_3480454](https://dune.com/queries/3480454) | Associates Kusama referenda with their origins. |
| dune.substrate.result_kusama_failed_calls_in_batch | [query_3480469](https://dune.com/queries/3480469) | Finds some failed calls hidden in a utility batch on Kusama. |
## Interlay
| Materialized View | Query ID | Description |
| - | - | - |
| dune.substrate.result_interlay_oracle | [query_3445402](https://dune.com/queries/3445402) | All graphs that use a price on Interlay |
| dune.substrate.result_interlay_vault_creation | [query_3437565](https://dune.com/queries/3437565) | All graphs that show vaults with their collateral |
| dune.substrate.result_hydradx_oracle | [query_3459562](https://dune.com/queries/3459562) | All graphs that use trade volume or prices on HydraDX. |
# Polkadot & Substrate Overview
Source: https://docs.dune.com/data-catalog/substrate/overview
Substrate chains (e.g. Polkadot and its parachains) are on Dune.
> [!WARNING]
>
> **Deprecation Notice**: Starting from the 7th of July 2025 Dune is not live ingesting and indexing Polkadot data. The historical data of the chain will remain available to be used.
The Polkadot Relay Chain is a proof-of-stake blockchain that provides shared security and secure interoperability to other blockchains, known as parachains. Parachain's transactions are processed in parallel by Polkadot. Kusama is a sister relay chain, designed as a canary blockchain, largely to test new Polkadot functionality before being deployed on Polkadot.
Both relay chains and all their parachains are built with Substrate. Substrate is the primary blockchain SDK used by developers to create parachains that make up the Polkadot and Kusama networks. There also is a growing number of chains built with Substrate that are outside of Polkadot's shared security infrastructure.
In Dune, Substrate tables model the activity of Substrate chains and are ingested hourly. All Substrate chains share identical schemas. For documentation purposes, we use `polkadot.` to showcase how to use all other `.`.
> [!NOTE]
>
>
>
> Polkadot and all of the substrate chains are ingested by [Colorful Notion](https://colorfulnotion.com)
> and are supported by [Polkadot OpenGov](https://polkadot.opengov.io).
## Onboarding Status
Both Polkadot and Kusama relay chains and several leading parachains have been onboarded as of March 2024. All Polkadot system chains and Polkadot parachains (as of early 2024) are being onboarded in early Q2 2024. Modeling EVM Activity within Substrate is planned in mid to late Q2 2024.
[https://dune.com/embeds/3523887/5925917](https://dune.com/embeds/3523887/5925917)
## Substrate Tables
All tables are organized by a temporal variable (`block_time` or `ts`). Because Substrate is organized by *pallets*, several of the key tables (`calls`, `events` and `extrinsics`) are usually filtered by the pallet section and method (`call_section` and `call_method` for `calls`, or `section` and `method` for `events` and `extrinsics`). Decoded data is available in `decoded_data` for these tables in JSON form.
> [card] [Blocks](/data-catalog/substrate/blocks)
>
> Each block in the blockchain, summarized with its hash and key statistics for quick overview.
> [card] [Extrinsics](/data-catalog/substrate/extrinsics)
>
> Detailed transaction data, encompassing both signed and unsigned operations, directly invoking pallet functions.
> [card] [Balances](/data-catalog/substrate/balances)
>
> Daily snapshots capturing the state of user assets, reflecting the end-of-day balances.
> [card] [Calls](/data-catalog/substrate/calls)
>
> Comprehensive info on function calls, expanding top-level extrinsics with internal calls.
> [card] [Events](/data-catalog/substrate/events)
>
> All events emitted by the runtime, including system events, and events from all pallets.
> [card] [Transfers](/data-catalog/substrate/transfers)
>
> Complete ledger of asset transfers across the network, capturing the movement of tokens between accounts.
> [card] [Traces](/data-catalog/substrate/traces)
>
> In-depth Substrate storage data, offering insights that are not readily available from the events data alone.
> [card] [Stakings](/data-catalog/substrate/stakings)
>
> Raw staking data including details on Validators, Nominators, Pools, and Pool Members, specific to Polkadot and Kusama Relay Chains.
> [card] [Materialized Views](/data-catalog/substrate/materialized_views)
>
> Optimized data views storing pre-processed information from other tables, streamlining access to pipelined chain data.
## Sample Queries
As Substrate chains use SS58 Addresses, the following Dune function is very useful:
* [SS58 functions: from_ss58(varchar) + to_ss58(varbinary, int)](/query-engine/Functions-and-operators/ss58)
### overview of recent blocks
```sql theme={null}
SELECT DATE(block_time) AS logDT,
count(distinct number) numBlocks,
MAX(block_time) AS lastBlockTime,
MIN(number) AS b0,
MAX(number) AS b1,
(MAX(number) -MIN(number) - count(distinct number)) + 1 as missing
FROM polkadot.blocks
WHERE block_time > DATE('2024-01-01')
GROUP BY 1
order by 1 desc;
```
### popular pallets
Query the most popular pallets and their methods.
```sql theme={null}
select count(distinct signer_ss58) numUsers, count(*) numCalls, call_section, call_method from polkadot.calls
where call_section not in ('timestamp', 'utility', 'proxy')
group by call_section, call_method order by count(*) desc
```
### frequent events
Query the most frequent events, excluding system events.
```sql theme={null}
select count(*) numEvents, concat(section, ':', method) as sm from polkadot.events
where section not in ('system')
group by 2 order by count(*) desc
```
### other chains
To query other chains, replace `polkadot` with the chain name, e.g. `kusama`, `interlay`, `astar` etc.
```sql theme={null}
SELECT
date_format(block_time, '%Y-%m') as monthDT,
call_method,
COUNT(DISTINCT signer_ss58) AS numUniqueActiveUsers,
COUNT(Distinct extrinsic_id ) AS numCalls
FROM
assethub.calls
WHERE
call_section IN ('nfts')
AND call_method IN ('buyItem', 'mint')
AND block_time >= TIMESTAMP '2023-01-01'
GROUP BY
1, 2
ORDER BY
1, 2;
```
### JSON extraction
You will often need to extract data from JSON fields. Here is an example of how to extract data from the `events` table.
```sql theme={null}
SELECT
E.block_time,
JSON_VALUE(E.data, 'strict $[0]') as account,
JSON_VALUE(E.data_decoded, 'strict $[0].address') as pub_key,
CAST(JSON_VALUE(E.data, 'strict $[1]') AS SMALLINT) as asset_id_1,
CAST(JSON_VALUE(E.data, 'strict $[2]') AS SMALLINT) as asset_id_2,
(JSON_VALUE(E.data, 'strict $[3]'))as amount_1,
(JSON_VALUE(E.data, 'strict $[4]'))as amount_2,
(JSON_VALUE(E.data, 'strict $[5]'))as hub_in,
(JSON_VALUE(E.data, 'strict $[6]'))as hub_out,
(JSON_VALUE(E.data, 'strict $[7]'))as asset_fee,
(JSON_VALUE(E.data, 'strict $[8]'))as protocol_fee,
A1.decimals as decimals_1,
A1.ticker as ticker_1,
A2.decimals as decimals_2,
A2.ticker as ticker_2,
method
FROM hydradx.events E
LEFT JOIN query_3482301 A1 on A1.asset_id=CAST(JSON_VALUE(data, 'strict $[1]') as INT)
LEFT JOIN query_3482301 A2 on A2.asset_id=CAST(JSON_VALUE(data, 'strict $[2]') as INT)
WHERE section='omnipool' and method in('SellExecuted', 'BuyExecuted')
```
# polkadot.stakings
Source: https://docs.dune.com/data-catalog/substrate/stakings
Polkadot staking data — validator nominations, staking rewards, and slash events.
## Table description
The `polkadot.stakings` table includes all the data necessary to compute staking-related metrics for Validators, Nominators, Pools, and Pool Members. This is currently supported for Polkadot and Kusama Relay Chain only.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the record (partition column) |
| `month` | `INTEGER` | Calendar month of the record (partition column) |
| `section` | `VARCHAR` | The pallet section for this staking record (e.g. `Staking`, `NominationPools`) |
| `storage` | `VARCHAR` | The specific storage item being tracked (e.g. `Validators`, `Nominators`) |
| `block_number` | `BIGINT` | The block number at which this staking snapshot was taken |
| `ts` | `TIMESTAMP` | Timestamp of the staking snapshot |
| `era` | `BIGINT` | The staking era number |
| `address_ss58` | `VARCHAR` | SS58-encoded address of the validator, nominator, or pool member |
| `address_pubkey` | `VARBINARY` | Public key of the validator, nominator, or pool member |
| `block_hash` | `VARBINARY` | Hash of the block at which the snapshot was taken |
| `submitted_in` | `BIGINT` | The era in which the nominator's nomination was submitted |
| `suppressed` | `BOOLEAN` | Whether the validator is suppressed (excluded from election) |
| `validator_total` | `DOUBLE` | Total stake backing this validator (own + nominated) |
| `validator_own` | `DOUBLE` | Validator's own bonded stake |
| `validator_commission` | `DOUBLE` | Validator's commission rate (0.0 to 1.0) |
| `validator_reward_shares` | `DOUBLE` | Proportion of total staking rewards earned by this validator |
| `validator_reward_points` | `BIGINT` | Reward points earned by this validator in the era |
| `validator_staking_rewards` | `DOUBLE` | Staking rewards earned by this validator in the era |
| `total_staked` | `DOUBLE` | Total amount staked across all validators in the era |
| `total_reward_points` | `BIGINT` | Total reward points across all validators in the era |
| `total_staking_rewards` | `DOUBLE` | Total staking rewards distributed in the era |
| `nominationpools_id` | `BIGINT` | Nomination pool ID |
| `nominationpools_total` | `DOUBLE` | Total staked in the nomination pool |
| `nominationpools_member_cnt` | `BIGINT` | Number of members in the nomination pool |
| `nominationpools_commission` | `DOUBLE` | Commission rate of the nomination pool |
| `nominationpools_rewardpools` | `VARCHAR` | JSON-encoded reward pool data for the nomination pool |
| `member_bonded` | `DOUBLE` | Amount bonded by a pool member |
| `member_unbonded` | `DOUBLE` | Amount in the process of unbonding for a pool member |
| `member_share` | `DOUBLE` | Pool member's share of the pool's total stake |
| `targets` | `ARRAY(VARCHAR)` | List of validator addresses targeted by this nominator |
| `pv` | `VARCHAR` | Protocol version or parameter value |
| `track` | `VARCHAR` | Governance track for OpenGov-related staking data |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=stakings](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=stakings)
# polkadot.traces
Source: https://docs.dune.com/data-catalog/substrate/traces
Polkadot execution traces — detailed runtime execution data across pallets.
## Table description
The `polkadot.traces` table, also known as the "snapshot" table, stores relevant on-chain state data that is otherwise difficult to acquire from base Substrate tables such as extrinsics and events. The traces tables are populated with special scripts modeling key storage elements at the end of the hour or day.
Having these snapshots enables Dune analysts to build useful dashboards on Dune
such as:
* [Polkadot Staking](https://dune.com/substrate/polkadot-staking)
* [Polkadot OpenGov](https://dune.com/substrate/polkadot-gov)
* [HydraDX OmniPool](https://dune.com/substrate/hydradx)
* [Interlay Vaults](https://dune.com/substrate/interlay)
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the snapshot (partition column) |
| `month` | `INTEGER` | Calendar month of the snapshot (partition column) |
| `section` | `VARCHAR` | The pallet (module) of the storage item being traced |
| `storage` | `VARCHAR` | The specific storage item name being traced |
| `ts` | `TIMESTAMP` | Timestamp of the state snapshot |
| `block_number` | `BIGINT` | The block number at which the snapshot was taken |
| `block_hash` | `VARBINARY` | Hash of the block at which the snapshot was taken |
| `chain_name` | `VARCHAR` | Name of the Substrate chain (e.g. `polkadot`, `kusama`, `hydradx`) |
| `address_ss58` | `VARCHAR` | SS58-encoded address associated with this trace entry |
| `address_pubkey` | `VARBINARY` | Public key associated with this trace entry |
| `track` | `VARCHAR` | Category or governance track for grouping trace data |
| `track_val` | `VARCHAR` | Value associated with the track |
| `kv` | `VARCHAR` | JSON-encoded key-value data from the storage item |
| `pv` | `VARCHAR` | Protocol version or parameter value |
| `source` | `VARCHAR` | Source or origin of the trace data |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=traces)
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kusama\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=kusama\&table_name_t6f0df=traces)
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=assethub\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=assethub\&table_name_t6f0df=traces)
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=interlay\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=interlay\&table_name_t6f0df=traces)
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hydradx\&table_name_t6f0df=traces](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=hydradx\&table_name_t6f0df=traces)
# polkadot.transfers
Source: https://docs.dune.com/data-catalog/substrate/transfers
Polkadot native token (DOT) transfers — sender, recipient, amount, and transfer type.
## Table description
The `polkadot.transfers` table the Substrate transfers table stores the types of stored assets, the sender and recipient, and the estimated value of the tokens converted into USD, if available.
## Table Schema
| Column | Type | Description |
| - | - | - |
| `year` | `INTEGER` | Calendar year of the block (partition column) |
| `month` | `INTEGER` | Calendar month of the block (partition column) |
| `day` | `INTEGER` | Calendar day of the block (partition column) |
| `block_time` | `TIMESTAMP` | The timestamp of the block containing this transfer |
| `block_number` | `BIGINT` | The sequential number of the block containing this transfer |
| `event_id` | `VARCHAR` | Unique identifier of the event that recorded this transfer |
| `extrinsic_id` | `VARCHAR` | Identifier of the extrinsic that initiated this transfer |
| `section` | `VARCHAR` | The pallet (module) that processed this transfer (e.g. `Balances`) |
| `method` | `VARCHAR` | The transfer method name (e.g. `Transfer`, `TransferKeepAlive`) |
| `extrinsic_hash` | `VARBINARY` | Hash of the extrinsic that initiated this transfer |
| `block_hash` | `VARBINARY` | Hash of the block containing this transfer |
| `from_ss58` | `VARCHAR` | SS58-encoded address of the sender |
| `from_pub_key` | `VARBINARY` | Public key of the sender |
| `to_ss58` | `VARCHAR` | SS58-encoded address of the recipient |
| `to_pub_key` | `VARBINARY` | Public key of the recipient |
| `asset` | `VARCHAR` | Asset type or identifier being transferred |
| `symbol` | `VARCHAR` | Token symbol of the transferred asset (e.g. `DOT`, `KSM`) |
| `decimals` | `BIGINT` | Number of decimal places for the token |
| `amount` | `DOUBLE` | Transfer amount in human-readable units |
| `raw_amount` | `DECIMAL(38,9)` | Transfer amount in the smallest denomination (Planck) |
| `updated_at` | `TIMESTAMP` | When this record was last updated in the database |
| `ingested_at` | `TIMESTAMP` | When this record was first ingested into the database |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=polkadot\&table_name_t6f0df=transfers)
# succinct.bids
Source: https://docs.dune.com/data-catalog/succinct/bids
Succinct prover bids — bid amounts, prover addresses, and auction outcomes.
The `succinct.bids` table contains all proof generation bids submitted by provers in the Succinct Network. Each bid represents a prover's offer to generate a ZK proof for a specific request at a given price, participating in the auction-based proof contest mechanism.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| id | long | Unique identifier for the bid |
| tx_hash | binary | Transaction hash of the bid submission |
| prover | binary | Address of the prover submitting the bid |
| request_id | binary | Unique identifier for the proof request |
| amount | bigint | Amount of PROVE tokens bid for the proof generation |
| created_at | timestamp | Timestamp when the bid was submitted |
| stake | decimal(38,0) | Amount of PROVE tokens staked by the prover |
| date | date | Date when the bid was submitted |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
## Sample Query
```sql theme={null}
-- Get the total number of bids and total amount bid per prover
SELECT
prover,
COUNT(*) as bid_count,
SUM(amount) as total_bid_amount
FROM succinct.bids
WHERE created_at >= NOW() - INTERVAL '7' DAY
GROUP BY prover
ORDER BY total_bid_amount DESC
LIMIT 10;
```
# Succinct
Source: https://docs.dune.com/data-catalog/succinct/overview
Succinct protocol data on Dune
Succinct is a protocol on Ethereum that proves the world's software. It coordinates hardware teams, infrastructure operators, and application developers to facilitate the generation of zero knowledge proofs. Application developers send programs in normal code that are wrapped with SP1 to the Succinct Network, allowing infrastructure and hardware teams (jointly called provers) to compete to generate proofs of the programs' execution.
## Key Features
* **Decentralized Prover Network**: The world's first decentralized protocol for ZK proving, enabling permissionless participation
* **High Performance Architecture**: Verifiable application (vApp) that settles to Ethereum with off-chain auctioneer service and on-chain settlement contracts
* **Competitive Pricing**: Auction-based mechanism where provers compete to generate proofs at the lowest cost
* **PROVE Token**: Native token enabling payments, incentivizing provers, and securing the network through staking and governance
* **Universal Compatibility**: Supports ZK rollups, bridges, games, oracles, AI agents, and more
## Protocol Architecture
The Succinct Network operates as a global, two-sided marketplace composed of provers and requesters. Provers compete to generate ZK proofs of programs submitted by requesters through an auction mechanism called proof contests. The network is architected as a verifiable application that settles to Ethereum, providing high performance while maintaining verifiability.
## Succinct Data on Dune
> [card] [Bids](/data-catalog/succinct/bids)
>
> Contains all proof generation bids submitted by provers in the network
> [card] [Requests](/data-catalog/succinct/requests)
>
> Contains all proof requests submitted by application developers
> [card] [Succinct Documentation](https://docs.succinct.xyz/docs/protocol/what-is-succinct)
>
> The official documentation for Succinct, providing detailed information on the protocol, architecture, and developer resources
# succinct.requests
Source: https://docs.dune.com/data-catalog/succinct/requests
Succinct proof generation requests — proof type, input parameters, and submission details.
The `succinct.requests` table contains all proof requests submitted by application developers to the Succinct Network. Each request represents a demand for ZK proof generation, which provers can then bid on through the auction mechanism.
## Table Schema
| Column Name | Data Type | Description |
| - | - | - |
| vk_hash | binary | Verification key hash for the proof request |
| requester | binary | Address of the application developer submitting the request |
| fulfiller_address | binary | Address of the prover that fulfilled the request |
| gas_price | bigint | Gas price for the request transaction |
| max_price_per_gas | bigint | Maximum price per gas unit the requester is willing to pay |
| gas_used | bigint | Gas used for the request transaction |
| gas_limit | bigint | Gas limit for the request transaction |
| cycles | bigint | Number of computational cycles required for the proof |
| created_at | timestamp | Timestamp when the request was submitted |
| fulfilled_at | timestamp | Timestamp when the request was fulfilled |
| deadline | timestamp | Deadline by which the proof must be generated |
| date | date | Date when the request was submitted |
| tx_hash | binary | Transaction hash of the request submission |
| id | binary | Unique identifier for the proof request |
| sender | binary | Address of the sender (may be different from requester) |
| base_fee | decimal(38,0) | Base fee for the transaction |
| min_auction_period | bigint | Minimum auction period in seconds |
| \_updated_at | timestamp | Last update timestamp |
| \_ingested_at | timestamp | Ingestion timestamp |
## Sample Query
```sql theme={null}
-- Get the total number of requests and fulfillment rates by requester
SELECT
requester,
COUNT(*) as total_requests,
COUNT(CASE WHEN fulfiller_address IS NOT NULL THEN 1 END) as fulfilled_requests,
COUNT(CASE WHEN fulfiller_address IS NOT NULL THEN 1 END) * 100.0 / COUNT(*) as fulfillment_rate
FROM succinct.requests
WHERE created_at >= NOW() - INTERVAL '30' DAY
GROUP BY requester
ORDER BY total_requests DESC
LIMIT 10;
```
## Sample Query
```sql theme={null}
-- Get request activity and gas usage over time
SELECT
DATE_TRUNC('day', created_at) as day,
COUNT(*) as total_requests,
AVG(gas_used) as avg_gas_used,
SUM(gas_used) as total_gas_used
FROM succinct.requests
WHERE created_at >= NOW() - INTERVAL '7' DAY
GROUP BY DATE_TRUNC('day', created_at)
ORDER BY day DESC;
```
# sui.checkpoints
Source: https://docs.dune.com/data-catalog/sui/checkpoints
Sui checkpoints — finalized checkpoint data with transaction digests and timestamps.
## Table Description
The `sui.checkpoints` table contains checkpoint data from the Sui blockchain. Checkpoints are fundamental units of consensus in Sui, representing a collection of transactions that have been finalized and agreed upon by validators. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **checkpoint_digest** | string | Unique hash identifier of the checkpoint |
| **sequence_number** | decimal(20,0) | Sequential number of the checkpoint |
| **epoch** | decimal(20,0) | Epoch number when the checkpoint was created |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the checkpoint was created |
| **date** | date | Date of when the checkpoint was created |
| **previous_checkpoint_digest** | string | Hash of the previous checkpoint |
| **end_of_epoch** | boolean | Whether this checkpoint marks the end of an epoch |
| **total_gas_cost** | bigint | Total gas cost for all transactions in this checkpoint |
| **computation_cost** | decimal(20,0) | Total computation cost for transactions in this checkpoint |
| **storage_cost** | decimal(20,0) | Total storage cost for transactions in this checkpoint |
| **storage_rebate** | decimal(20,0) | Total storage rebate for transactions in this checkpoint |
| **non_refundable_storage_fee** | decimal(20,0) | Non-refundable storage fees |
| **total_transaction_blocks** | decimal(20,0) | Total number of transaction blocks in this checkpoint |
| **total_transactions** | decimal(20,0) | Total number of transactions in this checkpoint |
| **total_successful_transaction_blocks** | decimal(20,0) | Total number of successful transaction blocks in this checkpoint |
| **total_successful_transactions** | decimal(20,0) | Total number of successful transactions in this checkpoint |
| **network_total_transaction** | decimal(20,0) | Total number of transactions processed by the network up to this checkpoint |
| **validator_signature** | string | Validator signature for this checkpoint |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=checkpoints](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=checkpoints)
# sui.events
Source: https://docs.dune.com/data-catalog/sui/events
Sui on-chain events — events emitted by Move packages during execution.
## Table Description
The `sui.events` table contains event data emitted by smart contracts and system operations on the Sui blockchain. Events provide a way for smart contracts to communicate state changes and important information to external systems. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **transaction_digest** | string | Hash of the transaction that emitted this event |
| **event_index** | decimal(20,0) | Index/sequence number of the event within the transaction |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this event |
| **epoch** | decimal(20,0) | Epoch number when the event was emitted |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the event was emitted |
| **date** | date | Date of when the event was emitted |
| **sender** | binary | Binary representation of the sender address |
| **package** | binary | Binary representation of the package ID that emitted the event |
| **module** | string | Module name that emitted the event |
| **event_type** | string | Type of the event (e.g., TransferObject, CoinBalanceChange) |
| **bcs** | string | Binary Canonical Serialization of the event data |
| **event_json** | string | JSON representation of the event data |
| **bcs_length** | decimal(20,0) | Length of the BCS data in bytes |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=events)
# sui.move_call
Source: https://docs.dune.com/data-catalog/sui/move_call
Sui Move function calls — package, module, and function invocations.
## Table Description
The `sui.move_call` table contains data about Move function calls executed on the Sui blockchain. This table tracks all smart contract function invocations, including the package, module, and function details. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **transaction_digest** | string | Hash of the transaction containing this move call |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this move call |
| **epoch** | decimal(20,0) | Epoch number when the move call was executed |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the move call was executed |
| **date** | date | Date of when the move call was executed |
| **package** | binary | Binary representation of the package ID containing the called function |
| **module** | string | Name of the module containing the called function |
| **function** | string | Name of the called function |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=move_call](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=move_call)
# sui.move_package
Source: https://docs.dune.com/data-catalog/sui/move_package
Sui Move package deployments — published packages and upgrade records.
## Table Description
The `sui.move_package` table contains information about Move packages deployed on the Sui blockchain. Move packages are collections of Move modules that define smart contracts and their functionality. This table tracks package deployments, updates, and metadata. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **package_id** | binary | Binary representation of the unique identifier of the Move package |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this package operation |
| **epoch** | decimal(20,0) | Epoch number when the package was deployed/updated |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the package was deployed/updated |
| **date** | date | Date of when the package was deployed/updated |
| **bcs** | string | Binary Canonical Serialization of the package data |
| **transaction_digest** | string | Hash of the transaction that deployed/updated this package |
| **package_version** | decimal(20,0) | Version number of the package |
| **original_package_id** | binary | Binary representation of the original package ID (for upgrades) |
| **bcs_length** | decimal(20,0) | Length of the BCS data in bytes |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=move_package](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=move_package)
# sui.objects
Source: https://docs.dune.com/data-catalog/sui/objects
Sui object data — owned and shared objects with type, version, and ownership info.
## Table Description
The `sui.objects` table contains data about Sui objects, which are the fundamental units of data storage on the Sui blockchain. Unlike traditional blockchains that use key-value stores, Sui uses an object-centric model where data is stored as objects with unique identifiers. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **object_id** | binary | Binary representation of the unique identifier of the object |
| **version** | decimal(20,0) | Version number of the object |
| **digest** | string | Hash digest of the object contents |
| **type\_** | string | Type of the object (e.g., "0x2::coin::Coin\<0x2::sui::SUI>") |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this object operation |
| **epoch** | decimal(20,0) | Epoch number when the object was created/updated |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the object was created/updated |
| **date** | date | Date of when the object was created/updated |
| **owner_type** | string | Type of ownership (e.g., "AddressOwner", "ObjectOwner", "Shared", "Immutable") |
| **owner_address** | binary | Binary representation of the owner address (if applicable) |
| **object_status** | string | Status of the object (e.g., "Created", "Mutated", "Deleted") |
| **initial_shared_version** | decimal(20,0) | Initial shared version for shared objects |
| **previous_transaction** | string | Hash of the previous transaction that modified this object |
| **has_public_transfer** | boolean | Whether the object can be publicly transferred |
| **is_consensus** | boolean | Whether this is a consensus object |
| **storage_rebate** | decimal(20,0) | Storage rebate for this object |
| **bcs** | string | Binary Canonical Serialization of the object data |
| **coin_type** | string | Type of coin if this object is a coin |
| **coin_balance** | decimal(20,0) | Balance of the coin if this object is a coin |
| **struct_tag** | string | Struct tag of the object |
| **object_json** | string | JSON representation of the object data |
| **bcs_length** | decimal(20,0) | Length of the BCS data in bytes |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=objects](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=objects)
# Sui Data
Source: https://docs.dune.com/data-catalog/sui/overview
Sui blockchain data on Dune
## What is Sui?
Sui is a layer 1 blockchain protocol designed for high performance and scalability. The name derives from the Japanese word for water, reflecting the platform's fluid and adaptable nature. Sui features several key innovations:
* **Object-Centric Architecture**: Unlike traditional blockchains that use key-value stores, Sui treats blocks as objects that define assets, enabling more sophisticated programmability.
* **Delegated Proof-of-Stake (DPoS)**: Energy-efficient consensus mechanism where validators stake SUI tokens to secure the network.
* **Move Programming Language**: A robust logic engine specifically designed for Sui's object-based approach to blockchain technology.
* **Parallel Transaction Processing**: Enables high throughput by processing independent transactions simultaneously.
## Sui Networks
Sui operates across multiple networks serving different purposes:
* **Mainnet**: Production network processing real transactions and handling SUI trading and NFT activities
* **Testnet**: Staging environment for quality assurance and developer testing
* **Devnet**: Development network for testing new features and latest planned capabilities
* **Localnet**: Local development environment for optimized workflows
## SUI Token Economics
The native token for Sui is **SUI**, with **MIST** serving as the smallest unit (1 SUI = 1 billion MIST). All transaction costs, including gas fees and data storage, are paid using SUI tokens. The platform uses a delegated proof-of-stake model where validators must stake SUI to participate in consensus, aligning their interests with network security and efficiency.
## Sui Data on Dune
Sui blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Checkpoints](/data-catalog/sui/checkpoints)
>
> Checkpoint data representing finalized collections of transactions agreed upon by validators.
> [card] [Events](/data-catalog/sui/events)
>
> Event data emitted by smart contracts and system operations on the Sui blockchain.
> [card] [Move Call](/data-catalog/sui/move_call)
>
> Data about Move function calls executed on the Sui blockchain.
> [card] [Move Package](/data-catalog/sui/move_package)
>
> Information about Move packages deployed on the Sui blockchain.
> [card] [Objects](/data-catalog/sui/objects)
>
> Sui's unique object-centric data including object states, ownership, and metadata.
> [card] [Transaction Objects](/data-catalog/sui/transaction_objects)
>
> Objects involved in transactions, tracking which objects are read, written, or deleted.
> [card] [Transactions](/data-catalog/sui/transactions)
>
> Comprehensive transaction data including transfers, smart contract interactions, and system operations.
> [card] [Wrapped Object](/data-catalog/sui/wrapped_object)
>
> Data about wrapped objects and their hierarchical ownership structure.
# sui.transaction_objects
Source: https://docs.dune.com/data-catalog/sui/transaction_objects
Sui transaction-object relationships — objects created, mutated, or deleted per transaction.
## Table Description
The `sui.transaction_objects` table contains data about objects that are involved in transactions on the Sui blockchain. This table tracks which objects are read, written, or deleted in each transaction, providing a comprehensive view of object interactions. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **object_id** | binary | Binary representation of the unique identifier of the object |
| **version** | decimal(20,0) | Version of the object in this transaction |
| **transaction_digest** | string | Hash of the transaction |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this transaction |
| **epoch** | decimal(20,0) | Epoch number when the transaction was executed |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the transaction was executed |
| **date** | date | Date of when the transaction was executed |
| **input_kind** | string | Kind of input for this object (e.g., "Input", "SharedInput", "Receiving") |
| **object_status** | string | Status of the object (e.g., "Created", "Mutated", "Deleted", "Unchanged") |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=transaction_objects](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=transaction_objects)
# sui.transactions
Source: https://docs.dune.com/data-catalog/sui/transactions
Sui transaction records — sender, gas, status, and transaction kind.
## Table Description
The `sui.transactions` table contains comprehensive transaction data from the Sui blockchain. This table records all transactions processed on the network, including transfers, smart contract interactions, and system operations. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **transaction_digest** | string | Unique hash identifier of the transaction |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this transaction |
| **epoch** | decimal(20,0) | Epoch number when the transaction was executed |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when transaction was executed |
| **date** | date | Date of when the transaction was executed |
| **sender** | binary | Binary representation of the address that initiated the transaction |
| **transaction_kind** | string | Type of transaction (e.g., "ProgrammableTransaction", "ChangeEpoch", "Genesis") |
| **is_system_txn** | boolean | Whether this is a system transaction |
| **is_sponsored_tx** | boolean | Whether this is a sponsored transaction |
| **transaction_count** | decimal(20,0) | Number of transactions in the batch |
| **execution_success** | boolean | Whether the transaction executed successfully |
| **input** | decimal(20,0) | Number of input objects |
| **shared_input** | decimal(20,0) | Number of shared input objects |
| **gas_coins** | decimal(20,0) | Number of gas coins used |
| **created** | decimal(20,0) | Number of objects created |
| **mutated** | decimal(20,0) | Number of objects mutated |
| **deleted** | decimal(20,0) | Number of objects deleted |
| **transfers** | decimal(20,0) | Number of transfers performed |
| **split_coins** | decimal(20,0) | Number of coin splits performed |
| **merge_coins** | decimal(20,0) | Number of coin merges performed |
| **publish** | decimal(20,0) | Number of packages published |
| **upgrade** | decimal(20,0) | Number of package upgrades |
| **others** | decimal(20,0) | Number of other operations |
| **move_calls** | decimal(20,0) | Number of move calls made |
| **packages** | string | Packages involved in the transaction |
| **gas_owner** | binary | Binary representation of the gas owner address |
| **gas_object_id** | binary | Binary representation of the gas object ID |
| **gas_object_sequence** | decimal(20,0) | Sequence number of the gas object |
| **gas_object_digest** | string | Digest of the gas object |
| **gas_budget** | decimal(20,0) | Gas budget allocated for the transaction |
| **total_gas_cost** | bigint | Total gas cost for the transaction |
| **computation_cost** | decimal(20,0) | Computation cost component of gas |
| **storage_cost** | decimal(20,0) | Storage cost component of gas |
| **storage_rebate** | decimal(20,0) | Storage rebate received |
| **non_refundable_storage_fee** | decimal(20,0) | Non-refundable storage fees |
| **gas_price** | decimal(20,0) | Gas price for the transaction |
| **raw_transaction** | string | Raw transaction data |
| **has_zklogin_sig** | boolean | Whether the transaction has zkLogin signature |
| **has_upgraded_multisig** | boolean | Whether the transaction has upgraded multisig |
| **transaction_json** | string | JSON representation of the transaction |
| **effects_json** | string | JSON representation of the transaction effects |
| **transaction_position** | decimal(20,0) | Position of the transaction within the checkpoint |
| **events_digest** | string | Digest of events emitted by the transaction |
| **transaction_data_bcs_length** | decimal(20,0) | Length of transaction data BCS in bytes |
| **effects_bcs_length** | decimal(20,0) | Length of effects BCS in bytes |
| **events_bcs_length** | decimal(20,0) | Length of events BCS in bytes |
| **signatures_bcs_length** | decimal(20,0) | Length of signatures BCS in bytes |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=transactions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=transactions)
# sui.wrapped_object
Source: https://docs.dune.com/data-catalog/sui/wrapped_object
Sui wrapped object records — objects contained within other objects.
## Table Description
The `sui.wrapped_object` table contains data about wrapped objects on the Sui blockchain. Wrapped objects are objects that have been wrapped by another object, creating a hierarchical ownership structure. This table tracks the wrapping relationships and metadata. This table is partitioned by date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **object_id** | binary | Binary representation of the unique identifier of the wrapped object |
| **root_object_id** | binary | Binary representation of the unique identifier of the root object that contains this wrapped object |
| **root_object_version** | decimal(20,0) | Version of the root object |
| **checkpoint** | decimal(20,0) | Checkpoint sequence number containing this wrapping operation |
| **epoch** | decimal(20,0) | Epoch number when the object was wrapped |
| **timestamp_ms** | decimal(20,0) | Unix timestamp in milliseconds when the object was wrapped |
| **date** | date | Date of when the object was wrapped |
| **json_path** | string | JSON path to the wrapped object within the root object |
| **struct_tag** | string | Struct tag of the wrapped object |
| **\_updated_at** | timestamp | Last time the record was updated |
| **\_ingested_at** | timestamp | Time when the record was ingested |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=wrapped_object](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=sui\&table_name_t6f0df=wrapped_object)
# thorchain.core_block
Source: https://docs.dune.com/data-catalog/thorchain/core_block
THORChain block data — block height, timestamp, and chain metadata.
## Table Description
The `thorchain.core_block` table contains block-level data from the THORChain blockchain including block headers, timestamps, and block statistics. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_id** | bigint | Identifier |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_date** | timestamp | Date of when the block was created |
| **block_hour** | timestamp | Block Hour |
| **block_week** | timestamp | Block Week |
| **block_month** | timestamp | Block Month |
| **block_quarter** | timestamp | Block Quarter |
| **block_year** | timestamp | Block Year |
| **block_dayofmonth** | timestamp | Block Dayofmonth |
| **block_dayofweek** | timestamp | Block Dayofweek |
| **block_dayofyear** | timestamp | Block Dayofyear |
| **timestamp** | timestamp | Timestamp of the record |
| **hash** | varchar | Hash |
| **agg_state** | varchar | Agg State |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_block](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_block)
# thorchain.core_instantiate_events
Source: https://docs.dune.com/data-catalog/thorchain/core_instantiate_events
THORChain module instantiation events.
## Table Description
The `thorchain.core_instantiate_events` table event data for contract instantiation events on THORChain. This table tracks when smart contracts are instantiated on the network. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **contract_address** | varchar | Address |
| **admin_address** | varchar | Address |
| **code_id** | bigint | Identifier |
| **sender** | varchar | Sender |
| **label** | varchar | Label |
| **msg** | varchar | Msg |
| **funds** | varchar | Funds |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_instantiate_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_instantiate_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_instantiate_events)
# thorchain.core_network_version_events
Source: https://docs.dune.com/data-catalog/thorchain/core_network_version_events
THORChain network version upgrade events.
## Table Description
The `thorchain.core_network_version_events` table event data for network version on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **version** | varchar | Version |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_network_version_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_network_version_events)
# thorchain.core_set_mimir_events
Source: https://docs.dune.com/data-catalog/thorchain/core_set_mimir_events
THORChain Mimir governance parameter change events.
## Table Description
The `thorchain.core_set_mimir_events` table event data for set mimir on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **key** | varchar | Key |
| **value** | varchar | Value |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_set_mimir_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_set_mimir_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_set_mimir_events)
# thorchain.core_thorname_change_events
Source: https://docs.dune.com/data-catalog/thorchain/core_thorname_change_events
THORChain THORName registration and update events.
## Table Description
The `thorchain.core_thorname_change_events` table event data for thorname change on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **owner** | varchar | Owner |
| **chain** | varchar | Chain |
| **address** | varchar | Address |
| **expire** | varchar | Expire |
| **name** | varchar | Name |
| **fund_amount_e8** | bigint | Amount value |
| **registration_fee_e8** | bigint | Registration Fee E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_thorname_change_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_thorname_change_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_thorname_change_events)
# thorchain.core_transfer_events
Source: https://docs.dune.com/data-catalog/thorchain/core_transfer_events
THORChain native RUNE transfer events.
## Table Description
The `thorchain.core_transfer_events` table event data for native asset transfers on THORChain. This table captures transfer events between addresses. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_transfer_events_id** | bigint | Surrogate key for the transfer event record |
| **day** | timestamp | Date of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_transfer_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_transfer_events)
# thorchain.core_transfers
Source: https://docs.dune.com/data-catalog/thorchain/core_transfers
THORChain token transfer records — RUNE and synth movements.
## Table Description
The `thorchain.core_transfers` table records all native asset transfers on THORChain. This table tracks RUNE and other asset transfers between addresses on the THORChain network. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_id** | bigint | Identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **rune_amount_usd** | decimal(20,6) | USD value of RUNE amount |
| **\_unique_key** | varchar | Unique Key |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_transfers_id** | bigint | Surrogate key for the fact record |
| **day** | timestamp | Date of the record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_transfers](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_transfers)
# thorchain.core_tss_keygen_failure_events
Source: https://docs.dune.com/data-catalog/thorchain/core_tss_keygen_failure_events
THORChain TSS key generation failure events.
## Table Description
The `thorchain.core_tss_keygen_failure_events` table event data for tss keygen failure on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **fail_reason** | varchar | Fail Reason |
| **is_unicast** | varchar | Is Unicast |
| **blame_nodes** | varchar | Blame Nodes |
| **round** | varchar | Round |
| **height** | varchar | Height |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tss_keygen_failure_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_tss_keygen_failure_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_tss_keygen_failure_events)
# thorchain.core_tss_keygen_success_events
Source: https://docs.dune.com/data-catalog/thorchain/core_tss_keygen_success_events
THORChain TSS key generation success events.
## Table Description
The `thorchain.core_tss_keygen_success_events` table event data for tss keygen success on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pub_key** | varchar | Pub Key |
| **members** | varchar | Members |
| **height** | varchar | Height |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tss_keygen_success_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_tss_keygen_success_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_tss_keygen_success_events)
# thorchain.core_wasm_contracts_events
Source: https://docs.dune.com/data-catalog/thorchain/core_wasm_contracts_events
THORChain CosmWasm contract execution events.
## Table Description
The `thorchain.core_wasm_contracts_events` table event data for wasm contracts on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **contract_address** | varchar | Address |
| **contract_type** | varchar | Contract Type |
| **sender** | varchar | Sender |
| **attributes** | varchar | Attributes |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_wasm_contracts_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_wasm_contracts_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=core_wasm_contracts_events)
# thorchain.defi_active_vault_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_active_vault_events
THORChain active vault rotation events.
## Table Description
The `thorchain.defi_active_vault_events` table event data for active vault on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **add_asgard_addr** | varchar | Add Asgard Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_active_vault_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_active_vault_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_active_vault_events)
# thorchain.defi_add_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_add_events
THORChain liquidity add events — assets deposited to pools.
## Table Description
The `thorchain.defi_add_events` table event data for liquidity addition actions on THORChain. This table captures events when users add liquidity to pools. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **fact_add_events_id** | bigint | Surrogate key for the add liquidity event record |
| **day** | timestamp | Date of the record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **tx_id** | bigint | Transaction ID |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **blockchain** | varchar | Source blockchain identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **pool_name** | varchar | Name of the liquidity pool |
| **memo** | varchar | Transaction memo |
| **to_address** | varchar | Destination address |
| **from_address** | varchar | Source address |
| **asset** | varchar | Asset identifier |
| **\_TX_TYPE** | varchar | Tx Type |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_add_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_add_events)
# thorchain.defi_affiliate_fee_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_affiliate_fee_events
THORChain affiliate fee collection events.
## Table Description
The `thorchain.defi_affiliate_fee_events` table event data for affiliate fee on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **fee_amt** | varchar | Fee Amt |
| **gross_amt** | varchar | Gross Amt |
| **fee_bps** | varchar | Fee Bps |
| **memo** | varchar | Transaction memo |
| **asset** | varchar | Asset identifier |
| **rune_address** | varchar | Address |
| **thorname** | varchar | Thorname |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_affiliate_fee_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_affiliate_fee_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_affiliate_fee_events)
# thorchain.defi_asgard_fund_yggdrasil_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_asgard_fund_yggdrasil_events
THORChain vault funding events — Asgard to Yggdrasil transfers.
## Table Description
The `thorchain.defi_asgard_fund_yggdrasil_events` table event data for asgard fund yggdrasil on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx** | varchar | Tx |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **vault_key** | varchar | Vault Key |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **tx_id** | bigint | Transaction ID |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_asgard_fund_yggdrasil_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_asgard_fund_yggdrasil_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_asgard_fund_yggdrasil_events)
# thorchain.defi_block_pool_depths
Source: https://docs.dune.com/data-catalog/thorchain/defi_block_pool_depths
THORChain pool depth snapshots per block — asset and RUNE balances.
## Table Description
The `thorchain.defi_block_pool_depths` table block-level data for block pool depths on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pool_name** | varchar | Name of the liquidity pool |
| **asset_e8** | bigint | Asset amount in e8 units |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **synth_e8** | bigint | Synth E8 |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_block_pool_depths](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_block_pool_depths)
# thorchain.defi_block_rewards
Source: https://docs.dune.com/data-catalog/thorchain/defi_block_rewards
THORChain block reward distributions — emissions to pools and node operators.
## Table Description
The `thorchain.defi_block_rewards` table block-level data for block rewards on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **day** | date | Date of the record |
| **liquidity_fee** | varchar | Identifier |
| **block_rewards** | varchar | Block Rewards |
| **earnings** | varchar | Earnings |
| **bonding_earnings** | varchar | Bonding Earnings |
| **liquidity_earnings** | varchar | Identifier |
| **avg_node_count** | varchar | Avg Node Count |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_block_rewards](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_block_rewards)
# thorchain.defi_bond_actions
Source: https://docs.dune.com/data-catalog/thorchain/defi_bond_actions
THORChain node bond actions — bond and unbond operations.
## Table Description
The `thorchain.defi_bond_actions` table records of bond actions on THORChain. This table tracks bonding and unbonding actions for validators and includes asset amounts and USD values.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **fact_bond_actions_id** | varchar | Surrogate key for the bond action record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | varchar | Reference to the block dimension table |
| **tx_id** | varchar | Transaction ID |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **blockchain** | varchar | Source blockchain identifier |
| **bond_type** | varchar | Type of bond action |
| **asset_amount** | decimal(38,0) | Amount of asset |
| **asset_usd** | decimal(20,6) | USD value of asset amount |
| **memo** | varchar | Transaction memo |
| **\_TX_TYPE** | varchar | Transaction type |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_bond_actions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_bond_actions)
# thorchain.defi_bond_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_bond_events
THORChain bond lifecycle events — deposits, withdrawals, and slashes.
## Table Description
The `thorchain.defi_bond_events` table event data for bond actions on THORChain. This table tracks bonding and unbonding events for validators.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **memo** | varchar | Transaction memo |
| **bond_type** | varchar | Bond Type |
| **e8** | varchar | E8 |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_tx_type** | varchar | Tx Type |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_bond_events_id** | bigint | Surrogate key for the bond event record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_bond_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_bond_events)
# thorchain.defi_daily_earnings
Source: https://docs.dune.com/data-catalog/thorchain/defi_daily_earnings
THORChain daily protocol earnings — fees, rewards, and revenue breakdown.
## Table Description
The `thorchain.defi_daily_earnings` table daily earnings statistics for THORChain. This table tracks liquidity fees, block rewards, and total earnings distributed to nodes and pools. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **day** | date | Date of the record |
| **liquidity_fees** | varchar | Identifier |
| **liquidity_fees_usd** | decimal(20,6) | Identifier |
| **block_rewards** | varchar | Block Rewards |
| **block_rewards_usd** | decimal(20,6) | Block Rewards Usd |
| **total_earnings** | varchar | Total Earnings |
| **total_earnings_usd** | decimal(20,6) | Total Earnings Usd |
| **earnings_to_nodes** | varchar | Earnings To Nodes |
| **earnings_to_nodes_usd** | decimal(20,6) | Earnings To Nodes Usd |
| **earnings_to_pools** | varchar | Earnings To Pools |
| **earnings_to_pools_usd** | decimal(20,6) | Earnings To Pools Usd |
| **avg_node_count** | varchar | Avg Node Count |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_daily_earnings_id** | bigint | Surrogate key for the fact record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_earnings](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_earnings)
# thorchain.defi_daily_pool_stats
Source: https://docs.dune.com/data-catalog/thorchain/defi_daily_pool_stats
THORChain daily pool statistics — volume, fees, APY, and depth by pool.
## Table Description
The `thorchain.defi_daily_pool_stats` table daily statistics for Continuous Liquidity Pools (CLPs) on THORChain. CLPs are THORChain's advanced AMM mechanism that allows for native asset swaps without wrapped tokens. This table tracks daily pool statistics including liquidity, swaps, fees, and rewards. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **DAY** | date | Date of the record |
| **pool_name** | varchar | Name of the liquidity pool |
| **system_rewards** | varchar | System Rewards |
| **system_rewards_usd** | decimal(20,6) | System Rewards Usd |
| **asset_liquidity** | varchar | Identifier |
| **asset_price** | varchar | Asset Price |
| **asset_price_usd** | decimal(20,6) | Asset Price Usd |
| **rune_liquidity** | varchar | Identifier |
| **rune_price** | varchar | Rune Price |
| **rune_price_usd** | decimal(20,6) | Rune Price Usd |
| **add_liquidity_count** | varchar | Identifier |
| **add_asset_liquidity** | varchar | Identifier |
| **add_asset_liquidity_usd** | decimal(20,6) | Identifier |
| **add_rune_liquidity** | varchar | Identifier |
| **add_rune_liquidity_usd** | decimal(20,6) | Identifier |
| **withdraw_count** | varchar | Withdraw Count |
| **withdraw_asset_liquidity** | varchar | Identifier |
| **withdraw_asset_liquidity_usd** | decimal(20,6) | Identifier |
| **withdraw_rune_liquidity** | varchar | Identifier |
| **withdraw_rune_liquidity_usd** | decimal(20,6) | Identifier |
| **il_protection_paid** | varchar | Identifier |
| **il_protection_paid_usd** | decimal(20,6) | Identifier |
| **average_slip** | varchar | Average Slip |
| **to_asset_average_slip** | varchar | To Asset Average Slip |
| **to_rune_average_slip** | varchar | To Rune Average Slip |
| **swap_count** | varchar | Swap Count |
| **to_asset_swap_count** | varchar | To Asset Swap Count |
| **to_rune_swap_count** | varchar | To Rune Swap Count |
| **swap_volume_rune** | varchar | Swap Volume Rune |
| **swap_volume_rune_usd** | decimal(20,6) | Swap Volume Rune Usd |
| **to_asset_swap_volume** | varchar | To Asset Swap Volume |
| **to_rune_swap_volume** | varchar | To Rune Swap Volume |
| **total_swap_fees_rune** | varchar | Total Swap Fees Rune |
| **total_swap_fees_usd** | decimal(20,6) | Total Swap Fees Usd |
| **total_asset_swap_fees** | varchar | Total Asset Swap Fees |
| **total_asset_rune_fees** | varchar | Total Asset Rune Fees |
| **unique_member_count** | varchar | Unique Member Count |
| **unique_swapper_count** | varchar | Unique Swapper Count |
| **liquidity_units** | varchar | Identifier |
| **\_unique_key** | varchar | Unique Key |
| **fact_daily_pool_stats_id** | bigint | Surrogate key for the daily pool stats record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_pool_stats](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_pool_stats)
# thorchain.defi_daily_tvl
Source: https://docs.dune.com/data-catalog/thorchain/defi_daily_tvl
THORChain daily total value locked — aggregate TVL across all pools.
## Table Description
The `thorchain.defi_daily_tvl` table daily total value locked (TVL) statistics for THORChain. This table tracks the total value locked across all pools on a daily basis. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **day** | date | Date of the record |
| **total_value_pooled** | varchar | Total Value Pooled |
| **total_value_pooled_usd** | decimal(20,6) | Total Value Pooled Usd |
| **total_value_bonded** | varchar | Total Value Bonded |
| **total_value_bonded_usd** | decimal(20,6) | Total Value Bonded Usd |
| **total_value_locked** | varchar | Total Value Locked |
| **total_value_locked_usd** | decimal(20,6) | Total Value Locked Usd |
| **fact_daily_tvl_id** | bigint | Surrogate key for the fact record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_tvl](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_daily_tvl)
# thorchain.defi_errata_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_errata_events
THORChain errata correction events — manual adjustments to chain state.
## Table Description
The `thorchain.defi_errata_events` table event data for errata on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **in_tx** | varchar | In Tx |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_errata_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_errata_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_errata_events)
# thorchain.defi_failed_deposit_messages
Source: https://docs.dune.com/data-catalog/thorchain/defi_failed_deposit_messages
THORChain failed deposit attempts — rejected inbound transactions.
## Table Description
The `thorchain.defi_failed_deposit_messages` table contains data for failed deposit messages on THORChain.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **from_addr** | varchar | From Addr |
| **memo** | varchar | Transaction memo |
| **code** | varchar | Code |
| **reason** | varchar | Reason |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **from_address** | varchar | Source address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_failed_deposit_messages_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_failed_deposit_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_failed_deposit_messages)
# thorchain.defi_fee_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_fee_events
THORChain fee collection events — swap fees, network fees, and outbound fees.
## Table Description
The `thorchain.defi_fee_events` table event data for fee events on THORChain. This table captures fee-related events including pool deductions and asset fees.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_date** | date | Date of when the block was created |
| **block_month** | timestamp | Month of when the block was created |
| **block_height** | bigint | Block height |
| **tx_id** | varchar | Transaction ID |
| **event_id** | varchar | Event identifier |
| **asset** | varchar | Asset identifier |
| **pool_deduct** | varchar | Pool deduction information |
| **asset_e8** | bigint | Asset amount in e8 units |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_fee_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_fee_events)
# thorchain.defi_gas_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_gas_events
THORChain gas reimbursement events — gas costs for outbound transactions.
## Table Description
The `thorchain.defi_gas_events` table event data for gas on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **tx_count** | varchar | Tx Count |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_gas_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_gas_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_gas_events)
# thorchain.defi_inactive_vault_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_inactive_vault_events
THORChain vault deactivation events.
## Table Description
The `thorchain.defi_inactive_vault_events` table event data for inactive vault on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **add_asgard_addr** | varchar | Add Asgard Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **add_asgard_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_inactive_vault_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_inactive_vault_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_inactive_vault_events)
# thorchain.defi_liquidity_actions
Source: https://docs.dune.com/data-catalog/thorchain/defi_liquidity_actions
THORChain liquidity actions — adds, withdrawals, and position changes.
## Table Description
The `thorchain.defi_liquidity_actions` table records of liquidity provision and withdrawal actions on THORChain. This table tracks when users add or remove liquidity from Continuous Liquidity Pools (CLPs). This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_id** | bigint | Identifier |
| **tx_id** | bigint | Transaction ID |
| **lp_action** | varchar | Type of liquidity action (add or withdraw) |
| **pool_name** | varchar | Name of the liquidity pool |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **rune_amount_usd** | decimal(20,6) | USD value of RUNE amount |
| **asset_amount** | decimal(38,0) | Amount of asset |
| **asset_amount_usd** | decimal(20,6) | USD value of asset amount |
| **stake_units** | varchar | Pool units (LP tokens) received or burned |
| **asset_tx_id** | bigint | Identifier |
| **asset_address** | varchar | Address |
| **asset_blockchain** | varchar | Asset Blockchain |
| **il_protection** | varchar | Il Protection |
| **il_protection_usd** | decimal(20,6) | Il Protection Usd |
| **unstake_asymmetry** | varchar | Unstake Asymmetry |
| **unstake_basis_points** | int | Unstake Basis Points |
| **\_unique_key** | varchar | Unique Key |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_liquidity_actions_id** | bigint | Surrogate key for the liquidity action record |
| **day** | timestamp | Date of the record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_liquidity_actions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_liquidity_actions)
# thorchain.defi_loan_open_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_loan_open_events
THORChain lending — loan origination events with collateral and debt details.
## Table Description
The `thorchain.defi_loan_open_events` table event data for loan open on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **owner** | varchar | Owner |
| **collateralization_ratio** | varchar | Collateralization Ratio |
| **collateral_asset** | varchar | Collateral Asset |
| **target_asset** | varchar | Target Asset |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **collateral_deposited** | varchar | Collateral Deposited |
| **debt_issued** | varchar | Debt Issued |
| **tx_id** | bigint | Transaction ID |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_loan_open_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_loan_open_events)
# thorchain.defi_loan_repayment_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_loan_repayment_events
THORChain lending — loan repayment events.
## Table Description
The `thorchain.defi_loan_repayment_events` table event data for loan repayment on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **owner** | varchar | Owner |
| **collateral_asset** | varchar | Collateral Asset |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **collateral_withdrawn** | varchar | Collateral Withdrawn |
| **debt_repaid** | varchar | Identifier |
| **tx_id** | bigint | Transaction ID |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_loan_repayment_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_loan_repayment_events)
# thorchain.defi_mint_burn_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_mint_burn_events
THORChain synthetic asset mint and burn events.
## Table Description
The `thorchain.defi_mint_burn_events` table event data for mint burn on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **supply** | varchar | Supply |
| **reason** | varchar | Reason |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_mint_burn_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_mint_burn_events)
# thorchain.defi_outbound_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_outbound_events
THORChain outbound transaction events — assets sent to external chains.
## Table Description
The `thorchain.defi_outbound_events` table event data for outbound on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **asset_amount** | decimal(38,0) | Amount of asset |
| **memo** | varchar | Transaction memo |
| **in_tx** | varchar | In Tx |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_tx_type** | varchar | Tx Type |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_outbound_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_outbound_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_outbound_events)
# thorchain.defi_pending_liquidity_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_pending_liquidity_events
THORChain pending liquidity events — asymmetric deposits awaiting pairing.
## Table Description
The `thorchain.defi_pending_liquidity_events` table event data for pending liquidity on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pool_name** | varchar | Name of the liquidity pool |
| **asset_tx_id** | bigint | Identifier |
| **asset_blockchain** | varchar | Asset Blockchain |
| **asset_address** | varchar | Address |
| **asset_e8** | bigint | Asset amount in e8 units |
| **asset_amount** | decimal(38,0) | Amount of asset |
| **rune_tx_id** | bigint | Identifier |
| **rune_address** | varchar | Address |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **pending_type** | varchar | Pending Type |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **pool_chain** | varchar | Pool Chain |
| **pool_asset** | varchar | Pool Asset |
| **fact_pending_liquidity_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pending_liquidity_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pending_liquidity_events)
# thorchain.defi_pool_balance_change_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_pool_balance_change_events
THORChain pool balance change events — triggered by swaps, adds, and withdrawals.
## Table Description
The `thorchain.defi_pool_balance_change_events` table event data for pool balance change on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **asset** | varchar | Asset identifier |
| **rune_amt** | varchar | Rune Amt |
| **rune_add** | varchar | Rune Add |
| **asset_amt** | varchar | Asset Amt |
| **asset_add** | varchar | Asset Add |
| **reason** | varchar | Reason |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **asset_amount** | decimal(38,0) | Amount of asset |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_pool_balance_change_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_balance_change_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_balance_change_events)
# thorchain.defi_pool_block_balances
Source: https://docs.dune.com/data-catalog/thorchain/defi_pool_block_balances
THORChain pool balances per block — RUNE and asset depths.
## Table Description
The `thorchain.defi_pool_block_balances` table block-level balances for Continuous Liquidity Pools (CLPs) on THORChain. This table tracks RUNE, asset, and synthetic asset balances in pools at each block. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **fact_pool_block_balances_id** | varchar | Surrogate key for the pool block balance record |
| **day** | date | Date of the record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | varchar | Reference to the block dimension table |
| **pool_name** | varchar | Name of the liquidity pool |
| **rune_amount** | decimal(38,0) | RUNE balance in the pool |
| **rune_amount_usd** | decimal(20,6) | USD value of RUNE balance |
| **asset_amount** | decimal(38,0) | Asset balance in the pool |
| **asset_amount_usd** | decimal(20,6) | USD value of asset balance |
| **synth_amount** | decimal(38,0) | Synthetic asset amount in the pool |
| **synth_amount_usd** | decimal(20,6) | USD value of synthetic asset amount |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_balances](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_balances)
# thorchain.defi_pool_block_fees
Source: https://docs.dune.com/data-catalog/thorchain/defi_pool_block_fees
THORChain pool fees per block — swap and liquidity fees collected.
## Table Description
The `thorchain.defi_pool_block_fees` table block-level data for pool fees on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **DAY** | date | Date of the record |
| **pool_name** | varchar | Name of the liquidity pool |
| **rewards** | varchar | Rewards |
| **total_liquidity_fees_rune** | varchar | Identifier |
| **asset_liquidity_fees** | varchar | Identifier |
| **rune_liquidity_fees** | varchar | Identifier |
| **earnings** | varchar | Earnings |
| **\_unique_key** | varchar | Unique Key |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_pool_block_fees_id** | bigint | Surrogate key for the fact record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_fees](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_fees)
# thorchain.defi_pool_block_statistics
Source: https://docs.dune.com/data-catalog/thorchain/defi_pool_block_statistics
THORChain pool statistics per block — volume, swap count, and slip.
## Table Description
The `thorchain.defi_pool_block_statistics` table block-level data for pool statistics on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **day** | date | Date of the record |
| **add_asset_liquidity_volume** | varchar | Identifier |
| **add_liquidity_count** | varchar | Identifier |
| **add_liquidity_volume** | varchar | Identifier |
| **add_rune_liquidity_volume** | varchar | Identifier |
| **asset** | varchar | Asset identifier |
| **asset_depth** | varchar | Asset Depth |
| **asset_price** | varchar | Asset Price |
| **asset_price_usd** | decimal(20,6) | Asset Price Usd |
| **average_slip** | varchar | Average Slip |
| **impermanent_loss_protection_paid** | varchar | Identifier |
| **rune_depth** | varchar | Rune Depth |
| **status** | varchar | Status |
| **swap_count** | varchar | Swap Count |
| **swap_volume** | varchar | Swap Volume |
| **to_asset_average_slip** | varchar | To Asset Average Slip |
| **to_asset_count** | varchar | To Asset Count |
| **to_asset_fees** | varchar | To Asset Fees |
| **to_asset_volume** | varchar | To Asset Volume |
| **to_rune_average_slip** | varchar | To Rune Average Slip |
| **to_rune_count** | varchar | To Rune Count |
| **to_rune_fees** | varchar | To Rune Fees |
| **to_rune_volume** | varchar | To Rune Volume |
| **totalfees** | varchar | Totalfees |
| **unique_member_count** | varchar | Unique Member Count |
| **unique_swapper_count** | varchar | Unique Swapper Count |
| **units** | varchar | Units |
| **withdraw_asset_volume** | varchar | Withdraw Asset Volume |
| **withdraw_count** | varchar | Withdraw Count |
| **withdraw_rune_volume** | varchar | Withdraw Rune Volume |
| **withdraw_volume** | varchar | Withdraw Volume |
| **total_stake** | varchar | Total Stake |
| **depth_product** | varchar | Depth Product |
| **synth_units** | varchar | Synth Units |
| **pool_units** | varchar | Pool Units |
| **liquidity_unit_value_index** | varchar | Identifier |
| **prev_liquidity_unit_value_index** | varchar | Identifier |
| **\_unique_key** | varchar | Unique Key |
| **fact_pool_block_statistics_id** | bigint | Surrogate key for the fact record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_statistics](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_block_statistics)
# thorchain.defi_pool_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_pool_events
THORChain pool lifecycle events — creation, suspension, and status changes.
## Table Description
The `thorchain.defi_pool_events` table event data for pool-related events on THORChain. This table captures various pool events including balance changes and pool operations.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **asset** | varchar | Asset identifier |
| **status** | varchar | Status |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **fact_pool_events_id** | bigint | Surrogate key for the fact record |
| **day** | timestamp | Date of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_pool_events)
# thorchain.defi_refund_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_refund_events
THORChain refund events — returned transactions that couldn't be processed.
## Table Description
The `thorchain.defi_refund_events` table event data for refund on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **asset_2nd** | varchar | Asset 2Nd |
| **asset_2nd_e8** | bigint | Asset 2Nd E8 |
| **memo** | varchar | Transaction memo |
| **code** | varchar | Code |
| **reason** | varchar | Reason |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_tx_type** | varchar | Tx Type |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_refund_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_refund_events)
# thorchain.defi_reserve_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_reserve_events
THORChain reserve fund events — emissions from the protocol reserve.
## Table Description
The `thorchain.defi_reserve_events` table event data for reserve on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **memo** | varchar | Transaction memo |
| **address** | varchar | Address |
| **e8** | varchar | E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_tx_type** | varchar | Tx Type |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_reserve_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_reserve_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_reserve_events)
# thorchain.defi_rewards_event_entries
Source: https://docs.dune.com/data-catalog/thorchain/defi_rewards_event_entries
THORChain reward distribution entries — per-pool reward allocations.
## Table Description
The `thorchain.defi_rewards_event_entries` table contains individual reward distribution entries on THORChain.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pool_name** | varchar | Name of the liquidity pool |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **saver_e8** | bigint | Saver E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_rewards_event_entries_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rewards_event_entries](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rewards_event_entries)
# thorchain.defi_rewards_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_rewards_events
THORChain reward distribution events — block-level reward summaries.
## Table Description
The `thorchain.defi_rewards_events` table event data for rewards on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **bond_e8** | bigint | Bond E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **fact_rewards_events_id** | bigint | Surrogate key for the fact record |
| **day** | timestamp | Date of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rewards_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rewards_events)
# thorchain.defi_rune_pool_deposit_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_rune_pool_deposit_events
THORChain RUNEPool deposit events.
## Table Description
The `thorchain.defi_rune_pool_deposit_events` table event data for rune pool deposit on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **rune_addr** | varchar | Rune Addr |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **units** | varchar | Units |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **rune_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rune_pool_deposit_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rune_pool_deposit_events)
# thorchain.defi_rune_pool_withdraw_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_rune_pool_withdraw_events
THORChain RUNEPool withdrawal events.
## Table Description
The `thorchain.defi_rune_pool_withdraw_events` table event data for rune pool withdraw on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **rune_addr** | varchar | Rune Addr |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **units** | varchar | Units |
| **basis_points** | int | Basis Points |
| **affiliate_basis_pts** | varchar | Affiliate Basis Pts |
| **affiliate_amount_e8** | bigint | Amount value |
| **affiliate_addr** | varchar | Affiliate Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **rune_address** | varchar | Address |
| **affiliate_basis_points** | int | Affiliate Basis Points |
| **affiliate_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rune_pool_withdraw_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_rune_pool_withdraw_events)
# thorchain.defi_scheduled_outbound_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_scheduled_outbound_events
THORChain scheduled outbound queue — pending external chain transactions.
## Table Description
The `thorchain.defi_scheduled_outbound_events` table event data for scheduled outbound on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **blockchain** | varchar | Source blockchain identifier |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **asset_decimals** | decimal(38,0) | Asset Decimals |
| **gas_rate** | varchar | Gas Rate |
| **memo** | varchar | Transaction memo |
| **in_hash** | varchar | In Hash |
| **out_hash** | varchar | Out Hash |
| **max_gas_amount** | decimal(38,0) | Amount value |
| **max_gas_decimals** | decimal(38,0) | Max Gas Decimals |
| **max_gas_asset** | varchar | Max Gas Asset |
| **module_name** | varchar | Module Name |
| **vault_pub_key** | varchar | Vault Pub Key |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | varchar | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_scheduled_outbound_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_scheduled_outbound_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_scheduled_outbound_events)
# thorchain.defi_secure_asset_deposit_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_secure_asset_deposit_events
THORChain secure asset deposit events.
## Table Description
The `thorchain.defi_secure_asset_deposit_events` table event data for secure asset deposit on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **asset_address** | varchar | Address |
| **rune_address** | varchar | Address |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_secure_asset_deposit_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_secure_asset_deposit_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_secure_asset_deposit_events)
# thorchain.defi_secure_asset_withdraw_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_secure_asset_withdraw_events
THORChain secure asset withdrawal events.
## Table Description
The `thorchain.defi_secure_asset_withdraw_events` table event data for secure asset withdraw on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **asset_address** | varchar | Address |
| **rune_address** | varchar | Address |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_secure_asset_withdraw_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_secure_asset_withdraw_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_secure_asset_withdraw_events)
# thorchain.defi_send_messages
Source: https://docs.dune.com/data-catalog/thorchain/defi_send_messages
THORChain send messages — internal transfer directives.
## Table Description
The `thorchain.defi_send_messages` table contains outgoing send messages on THORChain.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **memo** | varchar | Transaction memo |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_send_messages_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_send_messages](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_send_messages)
# thorchain.defi_stake_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_stake_events
THORChain staking events (legacy) — bond operations.
## Table Description
The `thorchain.defi_stake_events` table event data for stake on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pool_name** | varchar | Name of the liquidity pool |
| **asset_tx_id** | bigint | Identifier |
| **asset_blockchain** | varchar | Asset Blockchain |
| **asset_address** | varchar | Address |
| **asset_e8** | bigint | Asset amount in e8 units |
| **stake_units** | varchar | Pool units (LP tokens) received or burned |
| **rune_tx_id** | bigint | Identifier |
| **rune_address** | varchar | Address |
| **rune_e8** | bigint | RUNE amount in e8 units |
| **\_ASSET_IN_RUNE_E8** | bigint | Asset In Rune E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_stake_events_id** | bigint | Surrogate key for the fact record |
| **day** | timestamp | Date of the record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_stake_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_stake_events)
# thorchain.defi_streaming_swap_details_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_streaming_swap_details_events
THORChain streaming swap progress — partial fill details for large swaps.
## Table Description
The `thorchain.defi_streaming_swap_details_events` table event data for streaming swap details on THORChain. This table captures detailed information about streaming swaps including intervals, quantities, and success metrics.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_date** | date | Date of when the block was created |
| **block_month** | timestamp | Month of when the block was created |
| **block_height** | bigint | Block height |
| **tx_id** | varchar | Transaction ID |
| **event_id** | varchar | Event identifier |
| **interval** | varchar | Streaming swap interval |
| **quantity** | bigint | Quantity in the streaming swap |
| **count** | bigint | Count of swaps in the streaming |
| **last_height** | bigint | Last block height |
| **deposit_asset** | varchar | Deposit asset identifier |
| **deposit_e8** | bigint | Deposit amount in e8 units |
| **in_asset** | varchar | Input asset identifier |
| **in_e8** | bigint | Input amount in e8 units |
| **out_asset** | varchar | Output asset identifier |
| **out_e8** | bigint | Output amount in e8 units |
| **failed_swaps** | array(varchar) | Array of failed swap information |
| **failed_swap_reasons** | array(varchar) | Array of reasons for failed swaps |
| **is_successful** | boolean | Whether the streaming swap was successful |
| **failed_swap_count** | bigint | Number of failed swaps |
| **trade_direction** | varchar | Trade direction (sell_rune, buy_rune, asset_to_asset) |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_streaming_swap_details_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_streaming_swap_details_events)
# thorchain.defi_swap_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_swap_events
THORChain swap events — cross-chain and intra-chain asset swaps with pricing.
## Table Description
The `thorchain.defi_swap_events` table provides event-level data for swaps executed on THORChain. This table captures detailed swap events including amounts, fees, slippage, and streaming swap information.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **from_asset** | varchar | Source asset identifier |
| **from_e8** | bigint | From E8 |
| **to_asset** | varchar | Destination asset identifier |
| **to_e8** | bigint | To E8 |
| **memo** | varchar | Transaction memo |
| **pool_name** | varchar | Name of the liquidity pool |
| **to_e8_min** | bigint | To E8 Min |
| **swap_slip_bp** | varchar | Swap slippage in basis points |
| **liq_fee_e8** | bigint | Liq Fee E8 |
| **liq_fee_in_rune_e8** | bigint | Liq Fee In Rune E8 |
| **\_DIRECTION** | varchar | Direction |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **streaming_count** | varchar | Streaming Count |
| **streaming_quantity** | varchar | Streaming Quantity |
| **\_TX_TYPE** | varchar | Tx Type |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_swap_events_id** | bigint | Surrogate key for the swap event record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_swap_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_swap_events)
# thorchain.defi_swaps
Source: https://docs.dune.com/data-catalog/thorchain/defi_swaps
THORChain swap records — comprehensive swap data with fees, slip, and routing.
## Table Description
The `thorchain.defi_swaps` table records all cross-chain native asset swaps executed on THORChain. This table captures swap transactions that allow users to swap native assets across multiple chains without wrapped or pegged tokens.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_id** | bigint | Identifier |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **pool_name** | varchar | Name of the liquidity pool |
| **from_address** | varchar | Source address |
| **native_to_address** | varchar | Address |
| **to_pool_address** | varchar | Address |
| **affiliate_address** | varchar | Address |
| **affiliate_fee_basis_points** | int | Affiliate Fee Basis Points |
| **affiliate_addresses_array** | array(varchar) | Address |
| **affiliate_fee_basis_points_array** | int | Affiliate Fee Basis Points Array |
| **from_asset** | varchar | Source asset identifier |
| **to_asset** | varchar | Destination asset identifier |
| **from_amount** | decimal(38,0) | Amount of source asset |
| **to_amount** | decimal(38,0) | Amount of destination asset |
| **min_to_amount** | decimal(38,0) | Amount value |
| **from_amount_usd** | decimal(20,6) | USD value |
| **to_amount_usd** | decimal(20,6) | USD value |
| **rune_usd** | decimal(20,6) | Rune Usd |
| **asset_usd** | decimal(20,6) | Asset Usd |
| **to_amount_min_usd** | decimal(20,6) | USD value |
| **swap_slip_bp** | varchar | Swap slippage in basis points |
| **liq_fee_rune** | varchar | Liquidity fee in RUNE |
| **liq_fee_rune_usd** | decimal(20,6) | USD value of liquidity fee in RUNE |
| **liq_fee_asset** | varchar | Liq Fee Asset |
| **liq_fee_asset_usd** | decimal(20,6) | Liq Fee Asset Usd |
| **streaming_count** | varchar | Streaming Count |
| **streaming_quantity** | varchar | Streaming Quantity |
| **\_TX_TYPE** | varchar | Tx Type |
| **\_unique_key** | varchar | Unique Key |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_swaps_id** | bigint | Surrogate key for the swap record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_swaps](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_swaps)
# thorchain.defi_switch_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_switch_events
THORChain BEP2/ERC20 to native RUNE switch events.
## Table Description
The `thorchain.defi_switch_events` table event data for switch on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **burn_asset** | varchar | Burn Asset |
| **burn_e8** | bigint | Burn E8 |
| **mint_e8** | bigint | Mint E8 |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_switch_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_switch_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_switch_events)
# thorchain.defi_tcy_claim_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_tcy_claim_events
THORChain TCY claim events.
## Table Description
The `thorchain.defi_tcy_claim_events` table event data for tcy claim on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **rune_address** | varchar | Address |
| **l1_address** | varchar | Address |
| **asset** | varchar | Asset identifier |
| **tcy_amt** | varchar | Tcy Amt |
| **memo** | varchar | Transaction memo |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tcy_claim_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_claim_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_claim_events)
# thorchain.defi_tcy_distribution_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_tcy_distribution_events
THORChain TCY distribution events.
## Table Description
The `thorchain.defi_tcy_distribution_events` table event data for tcy distribution on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **rune_address** | varchar | Address |
| **rune_amt** | varchar | Rune Amt |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tcy_distribution_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_distribution_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_distribution_events)
# thorchain.defi_tcy_stake_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_tcy_stake_events
THORChain TCY staking events.
## Table Description
The `thorchain.defi_tcy_stake_events` table event data for tcy stake on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **amount** | decimal(38,0) | Amount value |
| **rune_address** | varchar | Address |
| **memo** | varchar | Transaction memo |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tcy_stake_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_stake_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_stake_events)
# thorchain.defi_tcy_unstake_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_tcy_unstake_events
THORChain TCY unstaking events.
## Table Description
The `thorchain.defi_tcy_unstake_events` table event data for tcy unstake on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx_id** | bigint | Transaction ID |
| **amount** | decimal(38,0) | Amount value |
| **rune_address** | varchar | Address |
| **memo** | varchar | Transaction memo |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_tcy_unstake_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_unstake_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_tcy_unstake_events)
# thorchain.defi_total_block_rewards
Source: https://docs.dune.com/data-catalog/thorchain/defi_total_block_rewards
THORChain total block rewards — aggregate emissions per block.
## Table Description
The `thorchain.defi_total_block_rewards` table block-level data for total rewards on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_id** | bigint | Identifier |
| **reward_entity** | varchar | Reward Entity |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **rune_amount_usd** | decimal(20,6) | USD value of RUNE amount |
| **\_unique_key** | varchar | Unique Key |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_total_block_rewards_id** | bigint | Surrogate key for the fact record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_total_block_rewards](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_total_block_rewards)
# thorchain.defi_total_value_locked
Source: https://docs.dune.com/data-catalog/thorchain/defi_total_value_locked
THORChain TVL snapshots — total value locked across all pools and features.
## Table Description
The `thorchain.defi_total_value_locked` table tracks total value locked (TVL) across THORChain pools.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **day** | date | Date of the record |
| **total_value_pooled** | varchar | Total Value Pooled |
| **total_value_bonded** | varchar | Total Value Bonded |
| **total_value_locked** | varchar | Total Value Locked |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_total_value_locked_id** | bigint | Surrogate key for the fact record |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_total_value_locked](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_total_value_locked)
# thorchain.defi_trade_account_deposit_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_trade_account_deposit_events
THORChain trade account deposit events.
## Table Description
The `thorchain.defi_trade_account_deposit_events` table event data for trade account deposit on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **asset_address** | varchar | Address |
| **rune_address** | varchar | Address |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_trade_account_deposit_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_trade_account_deposit_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_trade_account_deposit_events)
# thorchain.defi_trade_account_withdraw_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_trade_account_withdraw_events
THORChain trade account withdrawal events.
## Table Description
The `thorchain.defi_trade_account_withdraw_events` table event data for trade account withdraw on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **amount_e8** | bigint | Amount in e8 units (1e8 = 1 unit) |
| **asset** | varchar | Asset identifier |
| **asset_address** | varchar | Address |
| **rune_address** | varchar | Address |
| **tx_id** | bigint | Transaction ID |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_trade_account_withdraw_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_trade_account_withdraw_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_trade_account_withdraw_events)
# thorchain.defi_update_node_account_status_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_update_node_account_status_events
THORChain node status update events — active, standby, and disabled transitions.
## Table Description
The `thorchain.defi_update_node_account_status_events` table event data for update node account status on THORChain. This table is partitioned by day.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **former_status** | varchar | Former Status |
| **current_status** | varchar | Current Status |
| **node_address** | varchar | Address |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_update_node_account_status_events_id** | date | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_update_node_account_status_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_update_node_account_status_events)
# thorchain.defi_upgrades
Source: https://docs.dune.com/data-catalog/thorchain/defi_upgrades
THORChain protocol upgrade events — version changes and migration records.
## Table Description
The `thorchain.defi_upgrades` table contains data for protocol upgrade events on THORChain.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_id** | bigint | Identifier |
| **tx_id** | bigint | Transaction ID |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **burn_asset** | varchar | Burn Asset |
| **rune_amount** | decimal(38,0) | Amount in RUNE |
| **rune_amount_usd** | decimal(20,6) | USD value of RUNE amount |
| **mint_amount** | decimal(38,0) | Amount value |
| **mint_amount_usd** | decimal(20,6) | USD value |
| **\_unique_key** | varchar | Unique Key |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_upgrades_id** | bigint | Surrogate key for the fact record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_upgrades](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_upgrades)
# thorchain.defi_withdraw_events
Source: https://docs.dune.com/data-catalog/thorchain/defi_withdraw_events
THORChain liquidity withdrawal events — assets removed from pools.
## Table Description
The `thorchain.defi_withdraw_events` table event data for liquidity withdrawal actions on THORChain. This table captures events when users remove liquidity from pools.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **\_TX_TYPE** | varchar | Tx Type |
| **\_INSERTED_TIMESTAMP** | timestamp | Timestamp of the record |
| **fact_withdraw_events_id** | bigint | Surrogate key for the fact record |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **tx_id** | bigint | Transaction ID |
| **blockchain** | varchar | Source blockchain identifier |
| **from_address** | varchar | Source address |
| **to_address** | varchar | Destination address |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **emit_asset_e8** | bigint | Emit Asset E8 |
| **emit_rune_e8** | bigint | Emit Rune E8 |
| **memo** | varchar | Transaction memo |
| **pool_name** | varchar | Name of the liquidity pool |
| **stake_units** | varchar | Pool units (LP tokens) received or burned |
| **basis_points** | int | Basis Points |
| **asymmetry** | varchar | Asymmetry |
| **imp_loss_protection_e8** | bigint | Imp Loss Protection E8 |
| **\_emit_asset_in_rune_e8** | bigint | Emit Asset In Rune E8 |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_withdraw_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=defi_withdraw_events)
# thorchain.gov_new_node_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_new_node_events
THORChain new node registration events.
## Table Description
The `thorchain.gov_new_node_events` table event data for new node registration events on THORChain. This table tracks when new validator nodes are registered on the network.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **node_addr** | varchar | Node Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **node_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_new_node_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_new_node_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_new_node_events)
# thorchain.gov_set_ip_address_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_set_ip_address_events
THORChain node IP address configuration events.
## Table Description
The `thorchain.gov_set_ip_address_events` table event data for set ip address on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **node_addr** | varchar | Node Addr |
| **ip_addr** | varchar | Ip Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **node_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_set_ip_address_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_ip_address_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_ip_address_events)
# thorchain.gov_set_node_keys_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_set_node_keys_events
THORChain node key rotation events.
## Table Description
The `thorchain.gov_set_node_keys_events` table event data for set node keys on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **node_addr** | varchar | Node Addr |
| **secp256k1** | varchar | Secp256K1 |
| **ed25519** | varchar | Ed25519 |
| **validator_consensus** | varchar | Identifier |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **node_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_set_node_keys_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_node_keys_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_node_keys_events)
# thorchain.gov_set_node_mimir_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_set_node_mimir_events
THORChain node Mimir vote events — node operator governance votes.
## Table Description
The `thorchain.gov_set_node_mimir_events` table event data for set node mimir on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **address** | varchar | Address |
| **key** | varchar | Key |
| **value** | varchar | Value |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_set_node_mimir_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_node_mimir_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_node_mimir_events)
# thorchain.gov_set_version_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_set_version_events
THORChain node version declaration events.
## Table Description
The `thorchain.gov_set_version_events` table event data for set version on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **node_addr** | varchar | Node Addr |
| **version** | varchar | Version |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **node_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_set_version_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_version_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_set_version_events)
# thorchain.gov_slash_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_slash_events
THORChain slash events — validator penalties for misbehavior.
## Table Description
The `thorchain.gov_slash_events` table event data for slashing events on THORChain. This table tracks validator slashing events including the pool, asset, and amount slashed. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **pool_name** | varchar | Name of the liquidity pool |
| **asset** | varchar | Asset identifier |
| **asset_e8** | bigint | Asset amount in e8 units |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_slash_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_slash_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_slash_events)
# thorchain.gov_slash_points_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_slash_points_events
THORChain slash point accumulation events.
## Table Description
The `thorchain.gov_slash_points_events` table event data for slash points on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **node_address** | varchar | Address |
| **slash_points** | int | Slash Points |
| **reason** | varchar | Reason |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_slash_points_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_slash_points_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_slash_points_events)
# thorchain.gov_validator_request_leave_events
Source: https://docs.dune.com/data-catalog/thorchain/gov_validator_request_leave_events
THORChain validator leave request events — nodes signaling intent to exit.
## Table Description
The `thorchain.gov_validator_request_leave_events` table event data for validator request leave on THORChain. This table is partitioned by block_month.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **tx** | varchar | Tx |
| **from_addr** | varchar | From Addr |
| **node_addr** | varchar | Node Addr |
| **event_id** | bigint | Event identifier |
| **block_timestamp** | timestamp | Timestamp of when the block was created |
| **tx_id** | bigint | Transaction ID |
| **from_address** | varchar | Source address |
| **node_address** | varchar | Address |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_month** | timestamp | Block Month |
| **\_inserted_timestamp** | timestamp | Timestamp of the record |
| **fact_validator_request_leave_events_id** | bigint | Surrogate key for the fact record |
| **dim_block_id** | bigint | Reference to the block dimension table |
| **inserted_timestamp** | timestamp | Time when the record was inserted |
| **modified_timestamp** | timestamp | Time when the record was last modified |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_validator_request_leave_events](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=thorchain\&table_name_t6f0df=gov_validator_request_leave_events)
# THORChain Data
Source: https://docs.dune.com/data-catalog/thorchain/overview
THORChain blockchain data on Dune
## What is THORChain?
THORChain is an independent, cross-chain liquidity protocol that operates as a Layer 1 decentralised exchange (DEX). Built on the Cosmos SDK, it utilises the CometBFT consensus engine, the Cosmos-SDK state machine, and the GG20 Threshold Signature Scheme (TSS) to execute its purpose, which is to allow users to swap native assets across multiple chains with zero reliance on centralised third parties. In doing so, it stands as one of the few exchanges that verifiably ensures transparent and fair prices for cross-chain swaps of native assets.
THORChain's design renders no need for wrapped or pegged assets. Instead, the protocol deploys what are called continuous liquidity pools (CLPs), which—with highly complex algorithms—maximise the efficiency of its transactions. These CLPs allow for THORChain to manage funds directly in on-chain vaults, and it secures those funds via an economic security model. For all this, THORChain might be best described as a "cross-chain automated market maker (AMM), like Uniswap", or even a "decentralised Binance".
### Key Features
* **Native Cross-Chain Swaps**: Swap native assets across multiple chains without wrapped or pegged tokens
* **Continuous Liquidity Pools (CLPs)**: Advanced AMM mechanism that maximizes transaction efficiency
* **Economic Security Model**: Secures funds through bonded RUNE and validator economics
* **THORNodes**: Anonymous validators who bond RUNE to provide validation services
* **Permissionless Network**: Anyone with required funds can become a validator
### THORChain's Financial Offerings
THORChain pursues two important financial primitives:
1. Allow a user to **Swap** Asset X on Chain A to Asset Y on Chain B.
2. Allow a user to **Pool** RUNE across liquidity pools.
## THORChain Data on Dune
THORChain blockchain data is organized into several key tables that capture different aspects of on-chain activity:
> [card] [Blocks](/data-catalog/thorchain/core_block)
>
> Core block data including block headers, timestamps, and block statistics.
> [card] [Transfers](/data-catalog/thorchain/core_transfers)
>
> Native asset transfers between addresses on THORChain.
> [card] [Swaps](/data-catalog/thorchain/defi_swaps)
>
> Cross-chain native asset swaps executed on THORChain.
> [card] [Daily Pool Stats](/data-catalog/thorchain/defi_daily_pool_stats)
>
> Daily statistics for Continuous Liquidity Pools (CLPs) including liquidity, swaps, and fees.
> [card] [Liquidity Actions](/data-catalog/thorchain/defi_liquidity_actions)
>
> Add and remove liquidity actions across THORChain pools.
> [card] [Swap Events](/data-catalog/thorchain/defi_swap_events)
>
> Event-level data for swaps including amounts, fees, and slippage.
## Network Specifications
* **Consensus**: CometBFT (Tendermint)
* **State Machine**: Cosmos SDK
* **Security**: GG20 Threshold Signature Scheme (TSS)
* **Validator Model**: THORNodes with bonded RUNE
* **Churn Schedule**: Every three days, rotating validators to prevent centralization
## Resources
* [THORChain Documentation](https://docs.thorchain.org/)
* [THORChain Developer Documentation](https://docs.thorchain.org/developers)
# ton.accounts
Source: https://docs.dune.com/data-catalog/ton/accounts
TON account data — wallet addresses, contract types, balances, and status.
## Table Description
The `ton.accounts` table contains all updates of accounts. Including updates of balance and code_hash.
This table is created using [this SQL](https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/daily_spellbook/models/ton/ton_accounts.sql).
## Column Descriptions
| **Column** | **type** | **Description** |
| - | - | - |
| **address** | varchar | Account raw address |
| **status** | varchar | Status of account |
| **last_tx_hash** | varchar | Hash of the latest transaction |
| **last_tx_at** | timestamp(3) with time zone | timetsmap of the latest transaction |
| **balance** | bigint | Raw ton balance |
| **code_hash** | varchar | Account code hash (on-chain value) |
| **deployment_tx_hash** | varchar | Hash of transaction when account was deployed |
| **deployment_at** | timestamp(3) with time zone | Timestamp when account was deployed |
| **deployment_by_external** | boolean | Equals true when deployment of transactions was first transaction in trace, in other words when `(deployment tx_hash = deployment trace_id)`, false otherwise |
| **initial_funding_tx_hash** | varchar | Transaction hash with the first occur of account in transactions |
| **initial_funding_at** | timestamp(3) with time zone | Timestamp of the first occur of account in transactions |
| **first_tx_sender** | varchar | Raw address of who intiated the first transaction with this account |
| **interfaces** | array(varchar) | The list of known available interfaces (for example `wallet_v4r2`, [full list available here](https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/daily_spellbook/models/ton/ton_accounts.sql)) |
## Table Sample
Table sample can be found [here](https://dune.com/queries/3419983/5785629?table_name_t6f0df=accounts\&table_schema_t6f0df=ton).
# ton.balances_history
Source: https://docs.dune.com/data-catalog/ton/balances_history
TON account balance history — Toncoin holdings over time.
## Table Description
The `ton.balances_history` table contains information about all balances changes for native TON and jettons. This table allows
to get point time balance for each address as well latest balances.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_time** | timestamp | Timestamp of when the block containing the balance change was created |
| **block_date** | date | Date of when the block containing the balance change was created |
| **address** | string | Account raw address |
| **asset** | string | Asset address or **TON** for TON balance |
| **amount** | decimal(38,0) | Asset balance |
| **mintless_claimed** | boolean | Special flag for mintless jettons that mintless part was claimed |
| **timestamp** | int | Unix timestamp of the transaction |
| **lt** | bigint | Logical time of the transaction |
## Table Sample
[https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ton\&table_name_t6f0df=balances_history](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=ton\&table_name_t6f0df=balances_history)
# ton.blocks
Source: https://docs.dune.com/data-catalog/ton/blocks
TON block data — workchain, shard, seqno, and global block identifiers.
## Table Description
The `ton.blocks` table contains block-level data from the TON blockchain including block header information, validators, and block statistics. This table is partitioned by block_date.
## Column Descriptions
| **Column** | **Type** | **Description** |
| - | - | - |
| **block_time** | timestamp | Timestamp of when the block was created |
| **block_date** | date | Date of when the block was created |
| **workchain** | int | Workchain identifier |
| **shard** | bigint | Shard identifier |
| **seqno** | int | Sequence number |
| **root_hash** | string | Hash of the block root |
| **file_hash** | string | Hash of the block file |
| **mc_block_workchain** | int | Masterchain block workchain identifier |
| **mc_block_shard** | bigint | Masterchain block shard identifier |
| **mc_block_seqno** | int | Masterchain block sequence number |
| **global_id** | int | Global identifier |
| **version** | int | Block version |
| **after_merge** | boolean | Flag indicating if block was created after merge |
| **before_split** | boolean | Flag indicating if block was created before split |
| **after_split** | boolean | Flag indicating if block was created after split |
| **want_merge** | boolean | Flag indicating if block wants to merge |
| **want_split** | boolean | Flag indicating if block wants to split |
| **key_block** | boolean | Flag indicating if this is a key block |
| **vert_seqno_incr** | boolean | Vertical sequence number increment flag |
| **flags** | int | Block flags |
| **gen_utime** | bigint | Generation unix time |
| **start_lt** | bigint | Start logical time |
| **end_lt** | bigint | End logical time |
| **validator_list_hash_short** | int | Short hash of validator list |
| **gen_catchain_seqno** | int | Generation catchain sequence number |
| **min_ref_mc_seqno** | int | Minimum reference masterchain sequence number |
| **prev_key_block_seqno** | int | Previous key block sequence number |
| **vert_seqno** | int | Vertical sequence number |
| **master_ref_seqno** | int | Master reference sequence number |
| **rand_seed** | string | Random seed