1

I've been reading the js-stellar-sdk and I didn't find a way to retrieve the operations for a certain Asset.

How should be this done?

2
  • By operations, do you mean operations or offers -- the two have very different meanings in the Stellar network.
    – Rob
    Mar 26, 2018 at 15:53
  • 2
    At present time there is no API endpoint that allows to retrieve operations for specific asset. The only way is to run your own Horizon instance and query this information directly from DB.
    – Orbit Lens
    Mar 26, 2018 at 19:55

1 Answer 1

1

You can do this with two ways.

  1. You can scrape and traverse through all operations and save records with your asset into your own database (I'm using this way before I build stellar-core horizon instance). You can use this method if your asset is still low operation volume, because horizon is limit rest api with 3600 request per hour.

  2. You can build your own stellar-core horizon instance, this is more flexible way because you had all data you need. I suggest using docker image (quickstart) to start.

Your Answer

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

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