Verify a job
Check that the output you hold is the output the receipt describes.
import hashlib, requests
r = requests.get("https://api.obsyd.online/v1/receipts/rcpt_31c9").json()
with open("output.tar", "rb") as f:
local = hashlib.sha256(f.read()).hexdigest()
assert local == r["output_sha256"], "output does not match the receipt"
print("ok: output matches receipt", r["receipt"], "in block", r["block"])sha256sum output.tar curl -s https://api.obsyd.online/v1/receipts/rcpt_31c9 | jq -r .output_sha256 # the two hashes must be equal
Then open payment_tx and tx on the chain explorer to confirm the payment and the receipt exist and match.
Note
If the hashes differ, the file was changed after the job ended. Download again from the link in the job response.
Was this page helpful?