0

A trustline for an asset can be deleted by changeTrust and assigning its limit to 0. But the server returns an error op_invalid_limit if there is a pending buy offer for the asset. Is there a way to know if such an offer for the asset exists for an account before moving ahead with the deletion? One may suggest scanning the active offers for the account but the server would return only so many offers at a time, and one may find it impracticable for an account with many offers.

And, is there a way to know from the returned error object above which offer caused the op_invalid_limit error?

Your Answer

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

Browse other questions tagged or ask your own question.