Jump to content
McKay Development

Recommended Posts

Posted

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?

Posted
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?

Posted
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!

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...