v7.0.0
Breaking Changes
- Deprecated v1 APIs have been removed. This affects:
getAsset/getAssetsgetBundle/getBundles(bundles were removed from OpenSea in Sept 2023)getCollectionresponse updated
ethersupdated fromv5tov6. This replacesBigNumberusage withbigint, and updates the tsconfig target toes2020- The
walletconstructor parameter inOpenSeaSDKwas removed. Add your provider to your wallet and pass as the first paramsignerOrProvider - The
chainparameter ingetNFTsByContract/getNFT/refreshNFTMetadatawas moved to the end of the parameter list and now defaults to the chain the sdk was initialized on. - Legacy exports
OpenSeaPortandOpenSeaAPIwere removed. - Removed parameter
retriesto simplify code - Deprecated
createBuyOrder/createSellOrderaliases were removed. Please usecreateOffer/createListinginstead. getPaymentTokens()updated togetPaymentToken()and updated to work across chains
New features
getBestListings()endpoint added for getting the best listings for a collectiongetCollectionStats()endpoint added for getting collection statsgetAccount()endpoint added for getting account information from an addressofferProtectionEnabledboolean added tobuildOffer()- All types now provided at top-level export for easier use
Misc.
package-lock.jsoncleared and reinitialized for the latest dependency and sub-dependency updates
PR: #1310