Query editor
-- Flare Fees — All Sections-- 2026-09-01: FIRE / MEV section reclassification.-- * sort 2 renamed 'FIRE - MintingFee' -> 'FIRE - FassetMintingFee'.-- * 0x6E815bB968e32f91C7e273b9e1CDAE2825Bf8F3a moved OUT of section 4-- ("Core Vault and FAssets infrastructure (WH Flare)", short name 'Redeem - Add',-- pending source) and INTO section 1 as sort 4 'FIRE - FassetRedemption'.-- Moved, not copied, so the wallet is counted in exactly one section.-- The collector has no FXRP inflow yet, so the row reads 0 / $0 and turns on-- by itself once the first redemption fee lands.WITHfxrp_price AS (SELECT priceFROM prices.usd_latestWHERE blockchain = 'bnb'AND contract_address = 0x1d2f0da169ceb9fc7b3144628db156f3f6c60dbe),wflr_price AS (SELECT priceFROM prices.usd_latestWHERE blockchain = 'flare'AND contract_address = 0x1d80c49bbbcd1c0911346656b529df9e5c2f783d),usdt_price AS (SELECT priceFROM prices.usd_latestWHERE blockchain = 'flare'AND contract_address = 0x0b38e83b86d491735feaa0a791f65c2b99535396),-- XRPL: SACC cumulative incoming native-XRP payments. Do not use account balance; the wallet has outgoing sweeps.sacc_xrpl_incoming AS (SELECTCOUNT(*) AS num_transactions,COALESCE(SUM(COALESCE(t.delivered_amount_value, t.amount_value)), 0) AS fees_xrpFROM xrpl.transfers tINNER JOIN (SELECT DISTINCT xrplOwner AS xrpl_ownerFROM fassets_flare.masteraccountcontroller_evt_personalaccountcreatedWHERE evt_block_date >= DATE '2023-07-01') pa ON pa.xrpl_owner = t.account_address -- ← add thisWHERE t.ledger_close_date >= DATE '2024-01-01'AND t.destination_address = 'rM2LEysS4isvAJkZFfxKDL5z4aTfWcBTXV'AND (t.amount_currency = 'XRP' OR t.amount_currency_iso = 'XRP'OR t.delivered_amount_currency = 'XRP' OR t.delivered_amount_currency_iso = 'XRP')),-- WK free underlying: eth_call getAgentInfo(0x09011d...) on AssetManager, word 37 = freeUnderlyingBalanceUBAwk_free_underlying_raw AS (SELECT json_extract_scalar(json_parse(http_post('https://flare-api.flare.network/ext/C/rpc','{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"to":"0x2a3fe068cd92178554cabcf7c95adf49b4b0b6a8","data":"0x152052b000000000000000000000000009011d2a11a40db855cb00b3aa5a0f5f3bd485fd"},"latest"]}',ARRAY['Content-Type: application/json'])),'$.result') AS raw_result),wk_free_underlying AS (SELECT CAST(varbinary_to_uint256(from_hex(substr(raw_result, 2307, 64))) AS DOUBLE) / 1e6 AS free_fxrpFROM wk_free_underlying_raw