I want to get the mempool data and find out which tranactions are ordinal inscription transaction. So if I want to find the mempool that will be confirmed and find how many ordinal inscription transactions are there what shell I check. Is there a way to do this using bitcoin-cli?
Initially I thought first getting the bestblock by
# Get the blockhash of the best block, but not right for now
cmd = ['bitcoin-cli', 'getbestblockhash'] # Shall get the last nconfirmed block
result = subprocess.run(cmd, capture_output=True, text=True)
best_block_hash = result.stdout.strip()
# Get transaction IDs from of the block
cmd = ['bitcoin-cli', 'getblock', best_block_hash]
result = subprocess.run(cmd, capture_output=True, text=True)
mempool_txids = json.loads(result.stdout)
Assuming I have the txids of the last memblock how can I understand if the transaction is a ordinal inscription transaction?