How to get "offer_id" after successful submission of a ManageBuy/SellOffer Operation
See original GitHub issueHi,
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:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.py “
check_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