What Comes Around Posted April 22, 2020 Report Posted April 22, 2020 Quick question, From reading the docs from what I understand unless doing a real-time trade I won't be able to find out if the trade was accepted, only if it was sent. Is this correct? Is there any reliable way to find out if a user accepted a trade offer without using real-time trades? Quote
Dr. McKay Posted April 23, 2020 Report Posted April 23, 2020 Check out the sentOfferChanged event. Quote
What Comes Around Posted April 23, 2020 Author Report Posted April 23, 2020 6 hours ago, Dr. McKay said: Check out the sentOfferChanged event. Wonderful! Thank you! Quote
What Comes Around Posted April 25, 2020 Author Report Posted April 25, 2020 On 4/23/2020 at 4:07 AM, Dr. McKay said: Check out the sentOfferChanged event. Because I don't want to take up an entire new thread, I'll ask here, how can I check if a user's trade token is valid? Should I just try manager.createOffer and check if there's an error? Quote
Dr. McKay Posted April 26, 2020 Report Posted April 26, 2020 createOffer doesn't actually do anything on the network, so calling createOffer will never fail. You can check if the user's trade token is valid either by creating an offer and then calling getUserDetails, which will fail if the trade token is invalid (or the user cannot trade). You can also use GetTradeHoldDurations to check if a trade token is valid. What Comes Around 1 Quote
What Comes Around Posted April 26, 2020 Author Report Posted April 26, 2020 7 hours ago, Dr. McKay said: createOffer doesn't actually do anything on the network, so calling createOffer will never fail. You can check if the user's trade token is valid either by creating an offer and then calling getUserDetails, which will fail if the trade token is invalid (or the user cannot trade). You can also use GetTradeHoldDurations to check if a trade token is valid. Thanks! Works wonders! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.