Page 1 of 1

Bitcoin Cash explorer API & cashaddr

Posted: Wed Jun 20, 2018 2:18 am
by michelf
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?

Re: Bitcoin Cash explorer API & cashaddr

Posted: Wed Jun 20, 2018 7:17 am
by sagech
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