michelf
Posts: 7
Joined: Thu Aug 31, 2017 1:23 am

Donate BTC of your choice to 1HJdUgtpFZ8cDVGK7Jvk2VfYt23YYczooe

Bitcoin Cash explorer API & cashaddr

Wed Jun 20, 2018 2:18 am

The API for the bitcoin cash explorer on Bitcoin.com doesn't seem to support cashaddr. The website with the nice user friendly web pages does, but not the API. For instance, I can get the data for a specific address at this URL:

https://cashexplorer.bitcoin.com/api/ad ... dkyR3fdjTW

But trying the same with an address using the cashaddr format doesn't work:

https://cashexplorer.bitcoin.com/api/ad ... 7yml03edkp
https://cashexplorer.bitcoin.com/api/ad ... 7yml03edkp

BlockExplorer seem to accept it:

https://bitcoincash.blockexplorer.com/a ... dkyR3fdjTW
https://bitcoincash.blockexplorer.com/a ... 7yml03edkp
https://bitcoincash.blockexplorer.com/a ... 7yml03edkp

As does BitPay:

https://bch-insight.bitpay.com/api/addr ... 7yml03edkp
https://bch-insight.bitpay.com/api/addr ... 7yml03edkp

(In fact BitPay does not accept the legacy format, only cashaddr.)

Is there a plan for Bitcoin.com to support cashaddr in the block explorer API?

sagech
Services
Services
Posts: 1
Joined: Wed Jun 20, 2018 6:57 am
Contact: Telegram

Re: Bitcoin Cash explorer API & cashaddr

Wed Jun 20, 2018 7:17 am

Hi michelf!

We currently do not have a policy on public API usage for our block explorer API, but of course, you may use it.

We have plans to add CashAddr support to our upcoming upgrade to the API server (To be able to query using both legacy and CashAddr, as well as have a response with both legacy and CashAddr format).

Thanks,
Sam

Return to “Explorer”

Who is online

Users browsing this forum: No registered users and 25 guests