SpecterCyher bridge
Updated 2024-08-23
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
WITH Ethprice AS (
SELECT price, token_address
from ethereum.price.ez_prices_hourly
where token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
and hour = current_date()
),
--Ethereum
Cypher AS (
SELECT tx_hash, FROM_ADDRESS,
VALUE As amount_eth,
VALUE * price AS amounts,
TX_FEE,
TX_FEE * price AS fee
FROM ethereum.core.fact_transactions, Ethprice
WHERE to_address = '0xfdf7c22ca4704dfef46e7e5ef53dca1d5a9f8e12'
AND block_timestamp >= '2024-05-24'
and STATUS = 'SUCCESS'
UNION ALL
--Arbitrum
SELECT tx_hash, FROM_ADDRESS,
VALUE As amount_eth,
VALUE * price AS amounts,
TX_FEE,
TX_FEE * price AS fee
FROM arbitrum.core.fact_transactions, Ethprice
WHERE to_address = '0xfdf7c22ca4704dfef46e7e5ef53dca1d5a9f8e12'
AND block_timestamp >= '2024-05-24'
and STATUS = 'SUCCESS'
UNION ALL
-- Base
SELECT tx_hash, FROM_ADDRESS,
VALUE As amount_eth,
VALUE * price AS amounts,
TX_FEE,
QueryRunArchived: QueryRun has been archived