marquMagic Eden - $ME Claim Txs.
    Updated 2024-12-10
    -- previous query version: https://flipsidecrypto.xyz/studio/queries/98d35481-59c3-4bdf-a995-da0faa9394b3

    with

    claim_txs as (

    select
    block_timestamp
    , tx_id
    , signers[0] as fee_payer
    , instruction :accounts[1] as claimant
    , utils.udf_hex_to_int(to_char(reverse(to_binary(substr(utils.udf_base58_to_hex(instruction :data), 19, 16))))) / pow(10, 6) as amount

    , 'veT' as claim_program
    from solana.core.fact_events
    where succeeded
    and fact_events.program_id = 'veTbq5fF2HWYpgmkwjGKTYLVpY6miWYYmakML7R7LRf'
    and substr(utils.udf_base58_to_hex(fact_events.instruction :data), 3, 16) = '0438e530aa0ffd05' -- Claim From Distribution
    and block_timestamp >= '2024-12-10 14:05:13.000'

    union all

    select
    block_timestamp
    , tx_id
    , signers[0] as fee_payer
    , instruction :accounts[4] as claimant
    , utils.udf_hex_to_int(to_char(reverse(to_binary(substr(utils.udf_base58_to_hex(instruction :data), 19, 16))))) / pow(10, 6) as amount
    , 'dis' as claim_program
    from solana.core.fact_events
    where succeeded
    QueryRunArchived: QueryRun has been archived