Query editor
-- Showdown Skin Gacha (core program BTuK8Be2PmWXpYpiQukK2s9N2UuX9DwVQQAgDxKzj763, mainnet).-- Vault token account A3fG8V7P… is owned by the config PDA Apx6nunZ…. USDC only.-- open_core: player -> vault (crate price). sell_core: vault -> player (resale payout).-- refund_core: vault -> player. settle_core / withdraw_core move no USDC.-- open_core layouts: 21 accounts (release of 2026-10-26, Open at [8]) and 23 accounts (release of-- 2026-11-03, Open at [9]); core_box is [7] in both. settle/sell/withdraw/refund layouts unchanged.-- The Open account is REUSED per player+crate, so every later instruction is attributed to the most-- recent open_core on that account (open_id = open_account || ':' || open block_time).-- Watermark: tokens_solana.transfers lands later than solana.instruction_calls, so rows are cut at the-- last day that has vault transfers; a day appears only once its money legs are complete.WITH raw AS (SELECT block_date, block_time, tx_id, outer_instruction_index, tx_signer, data, account_arguments,to_hex(substr(data,1,8)) AS disc, cardinality(account_arguments) AS n_accountsFROM solana.instruction_callsWHERE block_date >= date '2026-10-26'AND executing_account = 'BTuK8Be2PmWXpYpiQukK2s9N2UuX9DwVQQAgDxKzj763'AND is_inner = false AND tx_success = true),ix AS (SELECT block_date, block_time, tx_id, outer_instruction_index, tx_signer, disc,CASE discWHEN '5073F8B25E327FE8' THEN 'open_core'WHEN '8FC44F6C75D938F2' THEN 'settle_core'WHEN '1DBBF808B2E0481B' THEN 'sell_core'WHEN '31613072DA744960' THEN 'withdraw_core'WHEN 'E529198CBEE84764' THEN 'deliver_core'WHEN '7BEC290268365574' THEN 'cancel_core_withdrawal'WHEN 'B5253D68E47F63FD' THEN 'refund_core'WHEN '1EE61880D511D856' THEN 'create_core_box'ELSE 'other' END AS ix_name,CASE discWHEN '5073F8B25E327FE8' THEN (CASE WHEN n_accounts <= 21 THEN account_arguments[8] ELSE account_arguments[9] END)WHEN '8FC44F6C75D938F2' THEN account_arguments[6]WHEN '1DBBF808B2E0481B' THEN account_arguments[5]WHEN '31613072DA744960' THEN account_arguments[3]WHEN 'B5253D68E47F63FD' THEN account_arguments[4]END AS open_account,CASE discWHEN '5073F8B25E327FE8' THEN account_arguments[2]WHEN '1DBBF808B2E0481B' THEN account_arguments[1]WHEN '31613072DA744960' THEN account_arguments[1]END AS player_wallet,CASE discWHEN '5073F8B25E327FE8' THEN account_arguments[7]WHEN '8FC44F6C75D938F2' THEN account_arguments[5]END AS crate_account,CASE disc WHEN '8FC44F6C75D938F2' THEN bytearray_to_bigint(reverse(substr(data,44,8))) END AS settled_ceiling_atoms,CASE disc WHEN '8FC44F6C75D938F2' THEN bytearray_to_bigint(substr(data,9,1)) END AS settled_rarity,CASE disc WHEN '1DBBF808B2E0481B' THEN bytearray_to_bigint(reverse(substr(data,41,8))) END AS quoted_value_atomsFROM raw),tr_raw AS (SELECT block_date, tx_id, outer_instruction_index, to_token_account, from_token_account, amount_displayFROM tokens_solana.transfersWHERE block_date >= date '2026-10-26'AND outer_executing_account = 'BTuK8Be2PmWXpYpiQukK2s9N2UuX9DwVQQAgDxKzj763'AND (to_token_account = 'A3fG8V7Pgc9gSSBXcqaHRxwHdQ8teYvVUrGXoF5xaPLL' OR from_token_account = 'A3fG8V7Pgc9gSSBXcqaHRxwHdQ8teYvVUrGXoF5xaPLL')),tr AS (SELECT tx_id, outer_instruction_index,