v7.0.0
Breaking Changes
- Deprecated v1 APIs have been removed. This affects:
getAsset
/getAssets
getBundle
/getBundles
(bundles were removed from OpenSea in Sept 2023)getCollection
response updated
ethers
updated fromv5
tov6
. This replacesBigNumber
usage withbigint
, and updates the tsconfig target toes2020
- The
wallet
constructor parameter inOpenSeaSDK
was removed. Add your provider to your wallet and pass as the first paramsignerOrProvider
- The
chain
parameter ingetNFTsByContract
/getNFT
/refreshNFTMetadata
was moved to the end of the parameter list and now defaults to the chain the sdk was initialized on. - Legacy exports
OpenSeaPort
andOpenSeaAPI
were removed. - Removed parameter
retries
to simplify code - Deprecated
createBuyOrder
/createSellOrder
aliases were removed. Please usecreateOffer
/createListing
instead. 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 addressofferProtectionEnabled
boolean added tobuildOffer()
- All types now provided at top-level export for easier use
Misc.
package-lock.json
cleared and reinitialized for the latest dependency and sub-dependency updates
PR: #1310