Questions tagged [dune-analytics]
4 questions
0
votes
0 answers
How to cast uint256 to varchar in DuneSQL?
How to cast uint256 to varchar in DuneSQL?
Here is an example query
Here is an output
Error: Line 36:11: Cannot cast array(uint256) to uint256 at line 36, position 11 [Execution ID: 01H8J5X9M7BKXB59N0ZFYS4F7J]
#dune

xinbenlv
- 893
- 9
- 15
0
votes
1 answer
How to calculate transaction fees or gas fees in USD for a specific ETH address on Dune Analytics?
I am trying to write a query to calculate total transaction fees paid in USD. For that I am writing the below query but somehow join messes things up.
SELECT
date_trunc('minute',block_time),
hash,
(gas_used*gas_price/1e18) as…

mohammad obaid
- 415
- 4
- 16
-1
votes
1 answer
Beginner SQL / Dune Analytics
I've been playing around with Dune Analytics but can't seem to get this to work!
I've managed to filter a wallet to display the transactions showing the number of tokens sold and the corresponding BNB received (it was working before I started…
-4
votes
0 answers
Queries on Flipside or Dune analytics
Could someone please write me an SQL script to extract the total number of transactions for the top 5 Layer 1 (L1) chains of all time, as well as for the period from January 2022 to June 2023, using either Flipside Analytics or Dune Analytics?

Cercuit
- 1
- 2