Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k 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 (29.5k points)
edited by

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"
  }

Know Blockchain better with Blockchain Training by Intellipaat.

Browse Categories

...