Author

Topic: Address in Bitcoin Transaction json (Read 124 times)

copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
April 21, 2022, 09:33:09 AM
#2
The bold "addr" is the flag for the value  of your public key hash.

All the examples you gave are technically true names for that key type but a bitcoin address is normally the most used term for it.
newbie
Activity: 1
Merit: 0
April 21, 2022, 04:22:42 AM
#1
Dear All
I am working with Bitcoin transaction json.

Anyone could you please clarify the key addr (in bold letter) in the transaction json file is a

1. Wallet address
2. Public address
3. Bitcoin address

Note: that address related with multiple transactions (not a one time address)

Eg

 {
    "hash": "ca1509ef12b7d9d0d87bd62de12a3979b47d80113518c660fe96248e59ccaeb6",
    "ver": 1,
    "vin_sz": 1,
    "vout_sz": 1,
    "size": 134,
    "weight": 536,
    "fee": 0,
    "relayed_by": "0.0.0.0",
    "lock_time": 0,
    "tx_index": 6427579807548562,
    "double_spend": false,
    "time": 1307979529,
    "block_index": 130549,
    "block_height": 130549,
    "inputs": [
      {
        "sequence": 4294967295,
        "witness": "",
        "script": "042f931d1a0157",
        "index": 0,
        "prev_out": {
          "tx_index": 0,
          "value": 0,
          "n": 4294967295,
          "type": 0,
          "spent": true,
          "script": "",
          "spending_outpoints": [
            {
              "tx_index": 6427579807548562,
              "n": 0
            }
          ]
        }
      }
    ],
    "out": [
      {
        "type": 0,
        "spent": true,
        "value": 5021835008,
        "spending_outpoints": [
          {
            "tx_index": 4854733449756291,
            "n": 0
          }
        ],
        "n": 0,
        "tx_index": 6427579807548562,
        "script": "41045cb0969134f4da69770b0463940444907bc81a2e2dfce3645fcf0d7be57064d54ee066927a3 c665fffd5c22f01382f713998ecb681f275faf81c7609cb2ed66dac",
        "addr": "16SdiHbygRDx6aPnT9nnxZXNH9yUaT1ZCi"
      }
    ]
  },
  {
    "hash": "d9e3ab5c9c83a105606cbdc1cc6766745a8783ff29dbd6124ab1e47bb9c60e7d",
    "ver": 1,
    "vin_sz": 3,
    "vout_sz": 1,
    "size": 585,
    "weight": 2340,
    "fee": 0,
    "relayed_by": "0.0.0.0",
    "lock_time": 0,
    "tx_index": 4400077345881238,
    "double_spend": false,
    "time": 1307979529,
    "block_index": 130549,
    "block_height": 130549,
    "inputs": [
      {
        "sequence": 4294967295,
        "witness": "",
        "script": "493046022100eb6823c07873244e442f29f163384d841e458cf34f20528fbdfbec514646c77f022 1008757613166d4f85ab951f230e63d4b92fca3055743db29d43acd766124fd5719014104ac2cc6 281144166e0e844711801eb789c248128a826c15d01a25ea8e97e02fb154061c40125a5c43890b1 b99ff14dbe7dbad5d82ec0620b17126a50e02e8b422",
        "index": 0,
        "prev_out": {
          "tx_index": 2072833947963008,
          "value": 4999000000,
          "n": 1,
          "type": 0,
          "spent": true,
          "script": "76a91443f0163549d08dca358c121e614b5d1b758fad3c88ac",
          "spending_outpoints": [
            {
              "tx_index": 4400077345881238,
              "n": 0
            }
          ],
          "addr": "17CDtNc9ebFimaUHazKAMUo5p7W5x3YUxM"
        }
      },
      {
        "sequence": 4294967295,
        "witness": "",
        "script": "47304402200cfd7c833ea54645925b231fb439f55fff20c169be0f5626056de02c4fcd6e1902203 8036843f303c1eea4808021c0ed3b9f6033a4bad6d5c0e125bfa55eeeab370e014104025563aed4 be5e75d294eafdcbfe39a95debd6044140b5aa3dbe692229c9dae5baaed5168cfb2ec5b30456565 94da4ec96f32d040230eb0cd24f60d6061ed5be",
        "index": 1,
        "prev_out": {
          "tx_index": 5451278949255804,
          "value": 1000000000,
          "n": 0,
          "type": 0,
          "spent": true,
          "script": "76a914946de1a16ea7dbe5ac24f47057ce348daa4d66da88ac",
          "spending_outpoints": [
            {
              "tx_index": 4400077345881238,
              "n": 1
            }
          ],
          "addr": "1EXpe5mrt5hDkodw7nj6LV1KdQJUbgKdRS"
        }
      },
      {
        "sequence": 4294967295,
        "witness": "",
        "script": "493046022100d43faa3ef81e8b054bd0238fdbe4eedc11ca12053e2d3d853ee8e9172f10f1c5022 100fb7777dc4564b9f3f50c598f1a9214258d7d905b3865f568ed353f7043a0b60a0141048866bb e84d99e7359bb200fa2ba19aac4efde30a946f7f31148ecb5d50d98584b8679c1bd2aec17145e17 e9a80df5c84076acffd55d512adcaca81ba7b610664",
        "index": 2,
        "prev_out": {
          "tx_index": 6950777916837299,
          "value": 1000000,
          "n": 1,
          "type": 0,
          "spent": true,
          "script": "76a914da3f56fe4a43c78e1649f385fa3080be991323b988ac",
          "spending_outpoints": [
            {
              "tx_index": 4400077345881238,
              "n": 2
            }
          ],
          "addr": "1LtzBkJxE9XaDjd8JHet6m9XtwG5T8eETW"
        }
      }
    ],
    "out": [
      {
        "type": 0,
        "spent": true,
        "value": 6000000000,
        "spending_outpoints": [
          {
            "tx_index": 1330889596569513,
            "n": 0
          }
        ],
        "n": 0,
        "tx_index": 4400077345881238,
        "script": "76a914a0eacea540c7c2420503fdfa1b875dffee8e39a888ac",
        "addr": "1FfrQPFzqP6sneGypvKARwWZyXRUSsrVVy"
      }
    ]
  },
Jump to: