jeaffbozosUntitled Query
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
offer_loan_tx AS (
SELECT
block_time,
instructions[1].account_arguments[4] AS escrow
FROM
solana.transactions
WHERE
block_time > (NOW() - INTERVAL '21' DAY)
AND contains(
account_keys,
'SHARKobtfF1bHhxD2eqftjHBdVSCbKo9JtgK71FhELP'
)
AND contains(
log_messages,
'Program log: Instruction: OfferLoan'
)
AND cardinality(instructions) > 1
AND cardinality(instructions[1].account_arguments) > 5
),
take_loan_tx AS (
SELECT
block_time,
instructions[1].account_arguments[6] AS nft,
instructions[1].account_arguments[7] AS escrow
FROM
solana.transactions
WHERE
block_time > (NOW() - INTERVAL '21' DAY)
AND contains(
account_keys,
'SHARKobtfF1bHhxD2eqftjHBdVSCbKo9JtgK71FhELP'
)
AND contains(
log_messages,
'Program log: Instruction: TakeLoan'
Run a query to Download Data