0 votes
1 view
in Blockchain by (11k points)

Need help to convert the value parameter from this page https://blockchain.info/address/1CVrg5P8s3g7byiqr9bBpjjxZV7Gp3fzRG/?format=json&filter=2 transaction to a real BTC number like 0.00232.

1 Answer

0 votes
by (26.9k points)

You can do it by dividing with 10^8, refer the code below:

  {
     "spent":true,
     "tx_index":173071723,
     "type":0,
     "addr":"16jXf2iHuvtPY6D9NumQBKff5mLUKCP6nA",
     "value":18003000,
     "n":1,
     "script":"76a9143ee3b07bbcd8d9748b4f3b906fc8c5adeca0a88188ac"
  }

...