Consider this is the transaction.json file:
{
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "5d1ad7d75b89e7051f17254f7e7342d70fcb502539ddb2ac1b97d5710d5fec37",
"vout": 1,
"prevout": {
"scriptpubkey": "76a9140a7a059306f69dec3d4658c618d4dd33a4b288bb88ac",
"scriptpubkey_asm": "OP_DUP OP_HASH160 OP_PUSHBYTES_20 0a7a059306f69dec3d4658c618d4dd33a4b288bb OP_EQUALVERIFY OP_CHECKSIG",
"scriptpubkey_type": "p2pkh",
"scriptpubkey_address": "1xPw97SFdG39TyTon7ZFeon7SgEa77HPa",
"value": 167972
},
"scriptsig": "473044022073cb5faf80c08efe1dc3b2bfbabe93f42ab16aeabe3c091ddfc795a30033ee74022017ac1f308e6ec9eb8360c181f11ebfb0f23d1554baeae47a02628f4ef778a2b7012103f498484d89d98539e4260c378584f3fc41f63e627c86b7001d0845d374d80991",
"scriptsig_asm": "OP_PUSHBYTES_71 3044022073cb5faf80c08efe1dc3b2bfbabe93f42ab16aeabe3c091ddfc795a30033ee74022017ac1f308e6ec9eb8360c181f11ebfb0f23d1554baeae47a02628f4ef778a2b701 OP_PUSHBYTES_33 03f498484d89d98539e4260c378584f3fc41f63e627c86b7001d0845d374d80991",
"is_coinbase": false,
"sequence": 4294967295
}
],
"vout": [
{
"scriptpubkey": "76a91437ca544d6159d8602780b854f196637f94a734fa88ac",
"scriptpubkey_asm": "OP_DUP OP_HASH160 OP_PUSHBYTES_20 37ca544d6159d8602780b854f196637f94a734fa OP_EQUALVERIFY OP_CHECKSIG",
"scriptpubkey_type": "p2pkh",
"scriptpubkey_address": "165zYdxqvNELWdGfrSM6yrqkqBEXKeTZ5A",
"value": 164132
}
]
}
How can we calculate the txid from this json file?