opensea-js
opensea-js copied to clipboard
'API Error 429: Message: {"detail":"Request was throttled."}' on Bidding on Multiple Assets
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
});
This is only allowed for bundles.
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.