datavortexretired-jade
    Updated 2024-11-24
    --SELECT DISTINCT tx_type, event_type, event_address FROM aptos.core.fact_events
    /*
    SELECT
    tx_type,
    event_type,
    event_address,
    SPLIT_PART(event_type, '::', 1) AS event_address_extracted,
    SPLIT_PART(event_type, '::', 2) AS event_module,
    SPLIT_PART(event_type, '::', 3) AS event_resource
    FROM aptos.core.fact_events
    LIMIT 100;
    */
    /*
    SELECT
    SPLIT_PART(event_type, '::', 1) AS event_address_extracted,
    SPLIT_PART(event_type, '::', 2) AS event_module,
    SPLIT_PART(event_type, '::', 3) AS event_resource
    FROM aptos.core.fact_events
    LIMIT 100;
    */
    /*
    SELECT DISTINCT
    SPLIT_PART(event_type, '::', 1) AS event_address_extracted,
    SPLIT_PART(event_type, '::', 2) AS event_module,
    SPLIT_PART(event_type, '::', 3) AS event_resource,
    account_address
    FROM aptos.core.fact_events
    WHERE SPLIT_PART(event_type, '::', 3) ILIKE 'swap'
    LIMIT 1000;
    */
    --SELECT DISTINCT event_data FROM aptos.core.fact_events
    /*

    SELECT DISTINCT
    key AS json_key,
    value AS json_value
    QueryRunArchived: QueryRun has been archived