MetaLighthandsome-orange
    Updated 2025-04-14
    WITH bitz_transactions AS (
    SELECT
    tx_id AS signature,
    signers[0] AS signer,
    fee,
    block_timestamp AS block_time,
    instructions,
    inner_instructions,
    log_messages
    FROM eclipse.core.fact_transactions
    WHERE block_timestamp >= DATEADD(DAY, -1, CURRENT_TIMESTAMP)
    ),

    flattened_instructions AS (
    SELECT
    t.signature,
    t.signer,
    t.fee,
    t.block_time,
    f.value:"executing_account"::STRING AS program_id,
    f.value:"data"::STRING AS instruction_data
    FROM bitz_transactions t,
    LATERAL FLATTEN(input => t.instructions) f
    ),

    flattened_inner_instructions AS (
    SELECT
    t.signature,
    t.signer,
    t.fee,
    t.block_time,
    f.value:"executing_account"::STRING AS program_id,
    f.value:"data"::STRING AS instruction_data
    FROM bitz_transactions t,
    LATERAL FLATTEN(input => t.inner_instructions) f
    )
    Last run: 3 months ago
    No Data to Display
    0
    2B
    120s