2

I would like to get the full raw data on the latest bitcoin block. I was hoping I could get this from an API.

I looked at blockchain.com's API's but these don't seem to provide the full data for each block including the header and transactions.

Does anyone know of a good source for this? Or should I be looking at alternatives to an API?

4
  • 3
    I am not aware of any public endpoint that will serve you the raw bitcoin core data. You can try with other explorers like blockstream.info but if you're looking for raw data, the best option is to run your own bitcoin core node.
    – Tony Sanak
    Jun 2, 2020 at 16:08
  • Thanks for your reply Tony. I don't know if 'raw' is the correct terminology for me to use. I need the full block data so I can see the header and transactions. If that makes any difference?
    – Toms Code
    Jun 2, 2020 at 17:44
  • 2
    So basically something like this? api.smartbit.com.au/v1/blockchain/block/360973
    – m1xolyd1an
    Jun 2, 2020 at 18:00
  • Thanks m1xolyd1an, yes perfect! Except is their a way to get this for the latest block?
    – Toms Code
    Jun 2, 2020 at 18:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.