You&#x27;re right, Bitcoin doesn&#x27;t natively have a way to query a database, but here&#x27;s an example of a how to read Blockcast transactions from the blockchain:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;blockai&#x2F;blockcast-state-engine&#x2F;blob&#x2F;master&#x2F;test.js#L32" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;blockai&#x2F;blockcast-state-engine&#x2F;blob&#x2F;maste...</a><p>The next step would be storing the results in a SQL database as we do with our production servers that maintain a queryable database of Open Publish registrations and transactions (Open Publish uses Blockcast for storing metadata on digital media assets).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;blockai&#x2F;openpublish-state" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;blockai&#x2F;openpublish-state</a><p>This is definitely a more piecemeal approach to creating smart contract applications than with Ethereum&#x27;s one-stop-shop, but there are benefits to building on top of Bitcoin, especially for Open Publish, which uses native Bitcoin transactions for payments and royalties.