Skip to content
Dune Analytics

@Bung / Monolith - USD history amount Tokens in Community Chest

Monolith - Community Pool USD token sharesMonolith - USD history amount Tokens in Community Chest

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 results

Loading
 

SQL query

1WITH traces as (
2    SELECT  date_trunc('minute', block_time) as hour, 'ETH' as symbol ,sum(amount) / 1e18 as balance, sum(amount) / 1e18 * (SELECT price FROM prices.usd WHERE symbol = 'ETH' ORDER BY minute desc LIMIT 1) as balance_usd
3    FROM (
4        SELECT "from" AS address, -value AS amount, block_time
5         FROM ethereum.traces
6         WHERE "from" = '\x24F0bB6c9b2C3DB66603Fa0Ec07Ab0CF55cDd387'
7         AND tx_success = TRUE
8         AND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)
9         and error is null  -- to make the db use an index
10    UNION ALL
11        SELECT "to" AS address, value AS amount, block_time
12         FROM ethereum.traces
13         WHERE "to" = '\x24F0bB6c9b2C3DB66603Fa0Ec07Ab0CF55cDd387'
14         AND tx_success = TRUE
15         AND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)
16         and error is null  -- to make the db use an index
17    ) t
18    group by 1
19),
20
21transfers AS (
22  SELECT
23    evt_tx_hash AS tx_hash,
24    contract_address AS token_address,
25    -tr.value AS amount...