Repository navigation
v14.0.0
What's Changed
Major Changes
-
aac5e9c: Remove the deprecated API surface. Each removed item has a replacement that already shipped in 13.x:
- The 88 flat
OpenSeaAPImethods are gone. Call the same method on its namespace with the same arguments, for exampleapi.getCollection(slug)becomesapi.collections.getCollection(slug). Four were renamed:api.buildDropMintTransactionisapi.drops.buildMintTransaction,api.buildCrossChainDropMintTransactionsisapi.drops.buildCrossChainMintTransactions,api.getDeployContractReceiptisapi.drops.getDeployReceipt, andapi.validateNFTMetadataisapi.nfts.validateMetadata. The full method-to-namespace table is in the API reference.api.search(args)is unchanged. - Stream:
onItemReceivedOffer,EventType.ITEM_RECEIVED_OFFER,ItemReceivedOfferEventandItemReceivedOfferEventPayloadare removed. The Stream API never emitted that event; useonItemReceivedBid,EventType.ITEM_RECEIVED_BID,ItemReceivedBidEventandItemReceivedBidEventPayload. - Stream: the
tokenoption onClientConfigis removed. PassapiKey. A config with onlytokennow throws "An OpenSea API key is required". - Auth:
OpenSeaAuthConfig.authBaseUrlandLinkWalletWithSiwxOptions.authBaseUrlare removed; useapiBaseUrl.LinkWalletWithSiwxOptions.statement, which was already ignored, is removed: the API issues the statement with the wallet-link nonce. TheAuthTokenResponsetype is removed;OpenSeaAuthreturnsAuthToken, built from the scoped-token and exchange responses. OpenSeaRateLimitErroris removed. It was an alias ofOpenSeaApiError, which carriesstatusCode(429 or 599 on a rate limit),retryAfterandresponseBody.GetTokensArgs.nextis removed, along with its translation tocursor. Pass the previous response'snextascursortoapi.tokens.getTrendingTokensandapi.tokens.getTopTokens.GetTopPfpCollectionsArgs.chainis removed, andapi.collections.getTopPfpCollectionsno longer sends achainquery parameter, which the API deprecated. Passchains: [chain].
- The 88 flat
Full Changelog: v13.0.6...v14.0.0