samUntitled Query
Updated 2022-08-01Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
⌄
select
block_timestamp::date as day,
tx_hash,
tx:receipt[0]:outcome:logs[0] as arguments
/* split(arguments, ' ')[1] as token_in_amount,
split(arguments, ' ')[2] as token_in_denom,
split(arguments, ' ')[4] as token_out_amount,
split(arguments, ' ')[5] as token_out_denom
-- try_base64_decode_string(tx:actions[0]:FunctionCall:args::string)
*/
from near.core.fact_transactions
--where block_timestamp::date = '2022-01-15'
--and tx_hash = 'DX2CmfVThGWpsmCv2vTZBJGWS3gYuWfcvZUAsRtYZU8D'
where block_timestamp >= '2022-05-01'
--and token_in_denom = 'wrap.near'
--and token_out_denom = 'dac17f958d2ee523a2206206994597c13d831ec7.factory.bridge.near'
and tx:actions[0]:FunctionCall:method_name = 'swap'
limit 20
Run a query to Download Data