You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy .env.example to .env and update the values as needed.
Run docker compose up -d --remove-orphans to start the services.
Run docker compose down to stop the services.
Useful queries
-- get latest blocks with breakdown by count of each transaction type-- mind that 2000 is the limit of lookup in block_trace table, actual number of blocks will be less-- blocks that have no payments and no zkapp transactions will not be shownselectbt.block_id, bt.time, txs.value->>0 type, count(*) cnt
from
(
select block_id, max(meta::text)::jsonb meta, to_timestamp(max(time)) timefrom
(
select block_id, metadata_json meta, trace_started_at timefrom block_trace
order by block_trace_id desclimit2000
) AS subquery1
group by block_id
) bt
cross join jsonb_array_elements(bt.meta->'transactions') txs
wheretxs.value->>0 not in ('coinbase', 'fee_transfer')
group bybt.block_id, bt.time, txs.value->>0order bybt.timedesc;