Hello,
The problem: monitoring the purchases/sales of NFTs from a specific JPG project.
What did I do:
- I used Blockfrost Webhooks with the trigger condition: “policy id equal <policy ID of the project.”
- with Python, I located the UTXOs from the transaction hash received by endpoint URL:
api.transaction_utxos(hash)
- I located the hashes of the datas:
data_hashes = []
for i in inputs:
if i.data_hash != None:
data_hashes.append(i.data_hash)
- I got the datum:
api.script_datum(<data_hash>, return_type='json')
The problem:
a) I can’t get the value I found in “int” (I don’t know how to work well with json in python)
b) I’m not sure if this is a good solution
I appreciate any help.