0

When creating a new buy offer, one sets OfferID to 0 in txnbuild.ManageBuyOffer operation. I would expect OfferID for a newly created offer to be returned in ManageBuyOfferResult, but I can't figure out how to get a hold on the result. What is it that I am missing? Is there an example on how ManageBuyOfferResult is supposed to be used? Thank you!

0

Actually, it is all in the (Go) code. For example:

var v xdr.TransactionResult
opResult := (*(*v.Result.Results)[0].Tr).ManageBuyOfferResult

The ultimate documentation is code!

| improve this answer | |

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.