Skip to content
Dune Analytics

@Bung / USD value of top 10 Tokens stored in Monolith smart contracts

USD value of top 10 Tokens stored in Monolith smart contracts

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 wallets AS (
2	SELECT 
3		block_time as creation_time,
4		block_number as creation_block_number,
5		address
6	from ethereum.traces 
7	where "from" in ('\x95BEBe7bfc6aCc186C13D055D0Aacc2DE5f81502','\xb24d47364163f909e64cf2cf7788d22c51cea851', '\x85bb8a852c29d8f100cb97ecdf4589086d1be2dd', '\xE0731c1a30E6eD0c6E9162EB87Fc85e831caF382') -- Monolith deployers
8	    and type = 'create'
9),
10
11ethbucket as (
12        SELECT  tx_hash, "from" AS address, -value AS amount,18 as decimals,'ETH' as symbol
13         FROM ethereum.traces
14         WHERE "from" IN (SELECT address FROM wallets)
15         AND tx_success = TRUE
16         AND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)
17         and error is null  -- to make the db use an index
18    UNION ALL
19        SELECT tx_hash, "to" AS address, value AS amount, 18 as decimals, 'ETH' as symbol
20         FROM ethereum.traces
21         WHERE "to" IN (SELECT address FROM wallets )
22         AND tx_success = TRUE
23         AND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)
24         and error is null  -- to make the db use an index
25),...

Result visualizations

Total ETH stored in Monolith contractsUSD value of top 10 Tokens stored in Monolith smart contracts

Loading