Use datascript 0.4.1. Add the tx-meta-filters feature to filter out transactions based on their metadata.