const hash = '3f772cc2096a317100504d7958ab4c5467729f49205f7ca8bcac703807f71e27'
fetch('https://notary-api.bitcoin.com/api/v1/proofs', {
method: 'POST',
body: hash,
})
.then(response => response.json())
.then(
response => {
console.log(response);
},
err => {
console.log(err);
},
);
/* Successful response from notary.bitcoin.com
{
"status": "ok",
"url": "https://notary.bitcoin.com/proof/?hash=3f772cc2096a317100504d7958ab4c5467729f49205f7ca8bcac703807f71e27",
"address": "bitcoincash:qqxzcazdwqgsl6ja8yrcly3kwxmvuyp0xgazj8henh",
"price": 5000,
"anchored": false,
}
*/