shreyash-5873User-specific aUST Collateralisation
    Updated 2021-08-31
    select
    m.event_attributes:"0_from"::string as sender,
    m.event_attributes:collateral_amount[0]:amount as uaust_collateralised,
    m.event_attributes:collateral_amount[0]:amount / pow(10, 6) as aust_collateralised
    from terra.msg_events m
    where m.event_type = 'from_contract'
    and m.event_attributes:"0_to"::string = 'terra1wfz7h3aqf4cjmjcvc6s8lxdhh7k30nkczyf0mj'
    and m.event_attributes:collateral_amount[0]:denom::string = 'terra1hzh9vpxhsk8253se0vv5jj6etdvxu3nv8z07zu'
    and m.event_attributes:"0_from"::string = 'terra1san7x37tn4zs09ufazgtyxf9h0ht9gm4t6qcdd';
    -- and m.tx_id = 'D99E35E5ACF4F5F4FBE834D1A550C746E8A7797F317646CF7C735CA74D1C2D9E'
    Run a query to Download Data