question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get "offer_id" after successful submission of a ManageBuy/SellOffer Operation

See original GitHub issue

Hi, I was trying to get the “offer_id” of my sell/buy offers after their creation, in order to keep them in my local db. Just found this answer https://stellar.stackexchange.com/questions/2357/python-retrieve-offer-id-from-a-manage-offer-operation but that code raises this exception in execution, (Exception has occurred: AttributeError ‘nullclass’ object has no attribute ‘manageOfferResult’) about “tr.manageOfferResult” the Transction is successful and all those attributes are available in the Watch-Window of Debug_Pane of VS-Code. Any solution?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Dragon2flycommented, Oct 14, 2021

Thank you, it worked.

This should be on the docs. It would be better if we have an option when calling ManageBuy/SellOffer op to include this offer_id when it returns the response.

1reaction
farzboodcommented, Jul 26, 2020

Greate! Thanks for guidance. BTW: While I was digging the SDK code, it comes to my attention that in https://github.com/StellarCN/py-stellar-base/blob/master/stellar_sdk/operation/utils.pycheck_price()” method, seems the error-message part referring to “amount” better off be the “price” for sake of avoiding confusion between “amount” and “price” for the target.

Stay Safe V

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found