LittlerDataOsmosis Transfer In
    Updated 2023-01-04
    /* SQL by Ali3n with a bit from jackguy */

    with DestinationChainT as (
    select
    block_timestamp
    ,tx_id
    ,attribute_value as Destination_Chain
    from axelar.core.fact_msg_attributes
    where tx_succeeded = 'TRUE'
    and attribute_key = 'destinationChain'
    ),

    DestinatinoUserT as (
    select
    block_timestamp
    ,tx_id
    ,attribute_value as Destination_User
    from axelar.core.fact_msg_attributes
    where tx_succeeded = 'TRUE'
    and attribute_key = 'destinationAddress'
    and tx_id in (select tx_id from DestinationChainT)
    ),

    OriginChainT as (
    select
    block_timestamp
    ,tx_id
    ,attribute_value as Origin_Chain
    from axelar.core.fact_msg_attributes
    where tx_succeeded = 'TRUE'
    and attribute_key = 'sourceChain'
    and tx_id in (select tx_id from DestinationChainT)
    ),

    OriginUserT as (
    select
    Run a query to Download Data