AephiaFleet Rentals - txs
    Updated 14 hours ago
    WITH fleet_rentals AS (
    select
    --*
    date_trunc('day',block_timestamp::date) as date
    ,count(case when ft.log_messages::string LIKE '%CreateContract%'
    then tx_id end) as CreateContract
    ,count(case when ft.log_messages::string LIKE '%CloseContract%'
    then tx_id end) as CloseContract
    ,count(case when ft.log_messages::string LIKE '%AcceptRental%'
    then tx_id end) as AcceptRental
    ,count(case when ft.log_messages::string LIKE '%CloseRental%'
    then tx_id end) as CloseRental
    ,count(case when ft.log_messages::string LIKE '%CancelRental%'
    then tx_id end) as CancelRental
    FROM solana.core.fact_events fe
    inner join solana.core.fact_transactions ft USING(block_timestamp, tx_id, succeeded)
    WHERE program_id = 'SRSLY1fq9TJqCk1gNSE7VZL2bztvTn9wm4VR8u8jMKT' --Fleet Rentals
    AND (ft.log_messages::string LIKE '%CreateContract%'
    OR ft.log_messages::string LIKE '%CloseContract%'
    OR ft.log_messages::string LIKE '%AcceptRental%'
    OR ft.log_messages::string LIKE '%CloseRental%'
    OR ft.log_messages::string LIKE '%CancelRental%')
    AND succeeded = 'true'
    AND block_timestamp > current_date-30 AND block_timestamp < current_date

    group by 1
    )


    ,pay_rentals AS (
    select
    --fe.*
    date_trunc('day',block_timestamp::date) as date
    ,sum(value:parsed:info:amount) / POW(10,8) as atlas_rental
    Last run: about 14 hours ago
    DATE
    CREATECONTRACT
    CLOSECONTRACT
    ACCEPTRENTAL
    CLOSERENTAL
    CANCELRENTAL
    ATLAS_RENTAL
    CREATECONTRACT_CUM
    CLOSECONTRACT_CUM
    ACCEPTRENTAL_CUM
    CLOSERENTAL_CUM
    CANCELRENTAL_CUM
    ATLAS_RENTAL_CUM
    RENTED_FLEETS
    ACTIVE_OFFERS
    1
    2025-03-31 00:00:00.0001018379113233375833542681226520319506586261926-934
    2
    2025-03-30 00:00:00.000113799205326952432532598218619306483248681861-900
    3
    2025-03-29 00:00:00.000959979010155744931402519209419301450553441774-852
    4
    2025-03-28 00:00:00.000385856014117056930452420201519291434978951705-789
    5
    2025-03-27 00:00:00.0005023521013121745230072362195919277423273261663-741
    6
    2025-03-26 00:00:00.0007667743517605302957233919079264411098741634-752
    7
    2025-03-25 00:00:00.00010889746120323742881227218336259393493441568-700
    8
    2025-03-24 00:00:00.00091898602112701902773218317590258373169701501-653
    9
    2025-03-23 00:00:00.000111130950920780572682209416730237360467801436-611
    10
    2025-03-22 00:00:00.00072896401217509372571196415780228339687231350-515
    11
    2025-03-21 00:00:00.0008178760815066152499187515140216322177861298-458
    12
    2025-03-20 00:00:00.0001121107701623199132418179714380208307111711230-401
    13
    2025-03-19 00:00:00.00085646101012224662306168713610192283912581169-358
    14
    2025-03-18 00:00:00.0009194910823654182221162313000182271687921118-338
    15
    2025-03-17 00:00:00.0001261209302017746982130152912090174248033741035-260
    16
    2025-03-16 00:00:00.00011010559061274464200414091116015423028676962-213
    17
    2025-03-15 00:00:00.00014013691081952479189413041057014821754212909-171
    18
    2025-03-14 00:00:00.00012710081012161968617541168966014019801733826-100
    19
    2025-03-13 00:00:00.00016713410109263845616271068885012818182047757-70
    20
    2025-03-12 00:00:00.000106111630611897191460934784011915543591665-20
    27
    2KB
    579s