// No API Key Required:
// - Call directly from client side javascript / hosted anywhere (IPFS, etc.)
// - Let anyone in the community use the API to build their own front-ends, all free
let result = await sort.query("
SELECT
t.transaction_from,
SUM(CASE WHEN t.transaction_function_name = 'deposit' THEN CAST(params[3].value as FLOAT(38,0)) ELSE -CAST(params[3].value as FLOAT(38,0)) END) / POW(10, 18) AS balance
FROM
usery76xn3t.transaction_log t
WHERE
t.transaction_to = '0xd3b5d9a561c293fb42b446fe7e237daa9bf9aa84'
AND t.name = 'Transfer'
GROUP BY
t.transaction_from
ORDER BY
balance DESC
LIMIT 25
");