The most popular actions after bridging to Near through Rainbow bridge according to the number of transactions
nsa2000The most popular actions after bridging to Near through Rainbow bridge according to the number of transactions
Updated 2022-10-19Copy Reference Fork
999
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 bridge_to_near_or_aurora as (
SELECT
*,
CASE
WHEN LEN(account_id) = 64 then 'Near'
WHEN contains(account_id,'near') then 'Near'
WHEN contains(account_id,'aurora:') then 'Aurora'
ELSE account_id
END as label
FROM (
SELECT
CASE
WHEN TX_JSON:receipt:logs[1]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[1]:decoded:inputs:accountId
WHEN TX_JSON:receipt:logs[2]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[2]:decoded:inputs:accountId
WHEN TX_JSON:receipt:logs[3]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[3]:decoded:inputs:accountId
WHEN TX_JSON:receipt:logs[4]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[4]:decoded:inputs:accountId
WHEN TX_JSON:receipt:logs[5]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[5]:decoded:inputs:accountId
WHEN TX_JSON:receipt:logs[6]:decoded:inputs:accountId IS NOT NULL THEN TX_JSON:receipt:logs[6]:decoded:inputs:accountId
ELSE NULL
END as account_id,
CASE
WHEN TX_JSON:receipt:logs[1]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[1]:decoded:inputs:amount
WHEN TX_JSON:receipt:logs[2]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[2]:decoded:inputs:amount
WHEN TX_JSON:receipt:logs[3]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[3]:decoded:inputs:amount
WHEN TX_JSON:receipt:logs[4]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[4]:decoded:inputs:amount
WHEN TX_JSON:receipt:logs[5]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[5]:decoded:inputs:amount
WHEN TX_JSON:receipt:logs[6]:decoded:inputs:amount IS NOT NULL THEN TX_JSON:receipt:logs[6]:decoded:inputs:amount
ELSE NULL
END as amount,
CASE
WHEN TX_JSON:receipt:logs[1]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[1]:decoded:inputs:token
WHEN TX_JSON:receipt:logs[2]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[2]:decoded:inputs:token
WHEN TX_JSON:receipt:logs[3]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[3]:decoded:inputs:token
WHEN TX_JSON:receipt:logs[4]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[4]:decoded:inputs:token
WHEN TX_JSON:receipt:logs[5]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[5]:decoded:inputs:token
WHEN TX_JSON:receipt:logs[6]:decoded:inputs:token IS NOT NULL THEN TX_JSON:receipt:logs[6]:decoded:inputs:token
Run a query to Download Data