Jump to content
McKay Development

Recommended Posts

Posted

Hi
im using this logit to check if trade partner has any prohibition or escrow or not

 

const offer = manager.createOffer({tradeLink});

offer.getUserDetails((err, me, them) => {
    if (err) {
      return res.status(200).send({
        status: 1,
        tradeBan: true,
        error: err.message,
      });
    }

    if (them.escrowDays) {
      logger(`user has trade escrow days: ${them.escrowDays}`);
      return res.status(200).send({
        status: 1,
        tradeBan: true,
        error: 'trade has escrow',
      });
    }


but for some reason i got this error: "HTTP error 429" and its for rate limit / too many requests
i want to know
1. is there any other way to check prohibition or escrow in trade execpt the getUserDetails() method?
2. how the taradeoffermanager works and get prohibition data from ?

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...