hello all,
first of all sorry for the silly request... I am trying to understand the outcome of blockexplores api
for example if I check the followign address: 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH
https://blockexplorer.com/address/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH I get three transaction:
two deposit: 0.03086609 and 0.03602039
and one withdraw: 0.03602039
if instead I use the API, I get the overall block data
https://blockexplorer.com/api/txs/?address=1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbHI am unsure how to read the JSON I get back from the API... how do I know what is the incoming and outgunning transaction? how do I know what was paid in fees?
can anyone illuminate me
(below extract of JSON)
{
"txid": "4c26a643aa025a2320eee133cf553949d71bd9cb180071c152d753903645d221",
"vout": 24,
"sequence": 4294967293,
"n": 0,
"scriptSig": {
"hex": "47304402203ec5248f97b98b7e860c0b46ffd44f7f5ccd04c2f97f78c5a960e1abc5b705c702201251677c5adab0ad032b049408df02f8e91225c6cc6594a901540e09baf6d94a012102d79ba705aac9f43d8f1d629a9f12838a1ee04c5398c3ed89054694fd7bbd6f9a",
"asm": "304402203ec5248f97b98b7e860c0b46ffd44f7f5ccd04c2f97f78c5a960e1abc5b705c702201251677c5adab0ad032b049408df02f8e91225c6cc6594a901540e09baf6d94a[ALL] 02d79ba705aac9f43d8f1d629a9f12838a1ee04c5398c3ed89054694fd7bbd6f9a"
},
"addr": "1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH",
"valueSat": 3602039,
"value": 0.03602039,
"doubleSpentTxID": null
}
{
"value": "0.03086609",
"n": 0,
"scriptPubKey": {
"hex": "76a914a66f0c9c8e60898f4b7b8a25d21437a223e0cab988ac",
"asm": "OP_DUP OP_HASH160 a66f0c9c8e60898f4b7b8a25d21437a223e0cab9 OP_EQUALVERIFY OP_CHECKSIG",
"addresses": [
"1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH"
],
"type": "pubkeyhash"
},
"spentTxId": null,
"spentIndex": null,
"spentHeight": null
}
{
"value": "0.03602039",
"n": 24,
"scriptPubKey": {
"hex": "76a914a66f0c9c8e60898f4b7b8a25d21437a223e0cab988ac",
"asm": "OP_DUP OP_HASH160 a66f0c9c8e60898f4b7b8a25d21437a223e0cab9 OP_EQUALVERIFY OP_CHECKSIG",
"addresses": [
"1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH"
],
"type": "pubkeyhash"
},
"spentTxId": "75ccef7cfd58cb9b3cd24d3d31a4405b423efbffd21dcf46e0b0b63419236e05",
"spentIndex": 0,
"spentHeight": 609868
}