opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

'API Error 429: Message: {"detail":"Request was throttled."}' on Bidding on Multiple Assets

Open asafd11 opened this issue 4 years ago • 2 comments

not sure what am doing wrong mabye the list of assets is not set right but i keep getting throttled even when trying to bid on 2 tokenids tokenId is a string like "200,14"

var assets_list=[];
      var tokenidlist=tokenId.split(",");
      for(var i=0;i<tokenidlist.length;i++){
        var tokenId=tokenidlist[i];
        var asset= {
          tokenId,
          tokenAddress,
        };
        assets_list.push(asset);
      }
      const assets = assets_list;
      const offer = await seaport.createBundleBuyOrder({
      assets,
      accountAddress,
      startAmount: price,
      // Optional expiration time for the order, in Unix time (seconds):
      expirationTime: Math.round(Date.now() / 1000 + 60 * 60 * 1) // One day from now
      });

asafd11 avatar Feb 15 '22 11:02 asafd11

This is only allowed for bundles.

ism avatar Feb 16 '22 02:02 ism

There is already a popular thread going on with issues related to this. I recommend following it. https://github.com/ProjectOpenSea/opensea-js/issues/86. Closing this one since it is a duplicate.

esteban-OpenSea avatar Apr 08 '22 17:04 esteban-OpenSea