Sajjadiiipolismo111
    Updated 2023-01-29
    WITH base_from_chain AS (
    SELECT block_timestamp , tx_id ,
    attribute_value AS source_Chain
    FROM axelar.core.fact_msg_attributes
    WHERE attribute_key = 'sourceChain'
    AND tx_succeeded = TRUE
    ),

    base_from_address AS (
    SELECT block_timestamp , tx_id ,
    attribute_value AS source_Address
    FROM axelar.core.fact_msg_attributes
    WHERE attribute_key = 'depositAddress'
    AND tx_id IN (SELECT tx_id FROM base_from_chain)
    AND tx_succeeded = TRUE
    ),

    base_to_chain AS (
    SELECT block_timestamp , tx_id ,
    attribute_value AS destination_Chain
    FROM axelar.core.fact_msg_attributes
    WHERE attribute_key = 'destinationChain'
    AND tx_id IN (SELECT tx_id FROM base_from_chain)
    AND tx_succeeded = TRUE
    ),

    base_to_address AS (
    SELECT block_timestamp , tx_id ,
    attribute_value AS destination_Address
    FROM axelar.core.fact_msg_attributes
    WHERE attribute_key = 'destinationAddress'
    AND tx_id IN (SELECT tx_id FROM base_from_chain)
    AND tx_succeeded = TRUE
    ),

    base_token_bridge AS (
    Run a query to Download Data