0

Is there an API from where I can get latest received transactions for a bitcoin-cash address?

1

Blockexplorers typically provide APIs that serve exactly that sort of data. For example the address call of the Blockchair API returns the latest 100 transactions the address was involved in.

You would retrieve the data for example by calling

curl https://api.blockchair.com/bitcoin-cash/dashboards/address/<someAddress>

where you'll need to replace the address at the end of the url with your own. If you want to see what you'll get, you can hit the above url with an example address in your browser:

enter image description here

  • I have a full node running in my system. I'm not sure which method to use to get the transactions for an address not generated within my node. Any idea? – Paras Jun 23 at 11:29
  • Oh, I didn't get at all that you meant to look it up from your own node. Next time be sure to include a bit more background on what you're trying to do. However, to answer that, Bitcoin Core and software forked from it does not maintain a full address index, it only indexes addresses that are its own. If you want a full address index, you have to either create it yourself or use another software. Also see, e.g. bitcoin.stackexchange.com/q/77685/5406 – Murch Jun 23 at 18:30
1

you can search to find it. there are a lot of API,s which help you. as an example try https://explorer.bitcoin.com/bch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.