Skip to content
Dune Analytics

@poma / TornadoCash Volume

Total deposits USDTornadoCash Volume

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query

1WITH
2    deposits as (
3        SELECT * FROM ethereum.traces trs
4        WHERE "to" IN (SELECT DISTINCT contract_address from tornado_cash."eth_call_deposit") AND value > 0 AND tx_success
5    ),
6    withdrawals as (
7        SELECT * FROM ethereum.traces trs
8        WHERE "from" IN (SELECT DISTINCT contract_address from tornado_cash."eth_call_deposit") AND value > 0 AND tx_success AND "to" <> '\x83584f83f26af4edda9cbe8c730bc87c364b28fe'
9    ),
10    taxes as (
11        SELECT * FROM tornado_cash."eth_call_withdraw" wth
12        INNER JOIN ethereum.traces trs ON trs.trace_address = wth.call_trace_address AND trs.tx_hash = wth.call_tx_hash
13    ),
14
15events as
16(
17SELECT
18    date_trunc('day', block_time) as Date,
19    SUM(d_value)/1e18 as deposits_eth,
20    SUM(d_value * p.price)/1e18 as deposits_usd,
21    SUM(w_value)/1e18 as withdrawals_eth,
22    SUM(w_value * p.price)/1e18 as withdrawals_usd,
23    SUM(fee)/1e18 as fees_eth,
24    SUM(fee * p.price)/1e18 as fees_usd,
25    sum(SUM(d_value * p.price)/1e18) over (order by date_trunc('day', block_time)) as cumulative_deposits,...

SQL query results

Loading
 

Result visualizations

Total Fees USDTornadoCash Volume

Loading