trader-xyz / nft-swap-sdk

Ethereum's missing p2p NFT and token swap library for web3 developers. Written in TypeScript. Powered by 0x.
https://swapsdk.xyz
MIT License
219 stars 83 forks source link

Adds support to batch buy NFTs #67

Closed johnrjj closed 2 years ago

johnrjj commented 2 years ago

e.g. shopping cart functionality, buy multiple ERC721 or ERC1155s in one tx

const fillTx = await nftSwap.batchBuyNfts([
  signedNftSellOrder1,
  signedNftSellOrder2,
]);
github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/nft-swap-sdk.cjs.production.min.js 283.7 KB (+0.05% 🔺)
dist/nft-swap-sdk.esm.js 178.71 KB (+0.08% 🔺)