opensea-js: DEPRECATED: Please use providerUtils.standardizeOrThrow() instead

I ran into some issues while following the official documentation examples. Spent nearly a week trying to solve it, but found that it wasn’t something I could solve.

node -v 
v16.14.0

npm -v
8.1.2

package.json

{
  "name": "opensea-sdk",
  "version": "1.0.0",
  "description": "test",
  "scripts": {},
  "dependencies": {
    "opensea-js": "^3.0.4",
    "web3": "^1.7.3"
  },
  "type": "module"
}
// app.js

import Web3 from 'web3'
import { OpenSeaPort, Network } from 'opensea-js'

// This example provider won't let you make transactions, only read-only calls:
const provider = new Web3.providers.HttpProvider('https://mainnet.infura.io')

const seaport = new OpenSeaPort(provider, {
  networkName: Network.Main,
  apiKey: ''
})

The above code can restore my problem。 Looking for help here, I hope the official can pay attention to this problem and keep the project in a usable state.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 15

Most upvoted comments

I am using web3 v1.7.3

this is from my package.json:

  "dependencies": {
    "opensea-js": "^2.0.2",
    "web3": "^1.7.3"
  }

This is a duplicate ticket, please follow this ticket for the latest updates on this issue to avoid confusion. I will go ahead and close.

#471

I’m facing the same issue and I don’t see how it is a duplicated issue. I already tried to install opensea-js both with npm and yarn, no luck.

This is a duplicate ticket, please follow this ticket for the latest updates on this issue to avoid confusion. I will go ahead and close.

https://github.com/ProjectOpenSea/opensea-js/issues/471

roll back to opensea-js version 2.0.2 and it will work

remove node_modules folder in package.json:

"dependencies": {
    "opensea-js": "^2.0.2",
    ...
  }

then run npm install

@JorgeFPastor I have tried with version 2.0.2 but still again I am getting same issue. What web3 version you are using?

roll back to opensea-js version 2.0.2 and it will work

remove node_modules folder in package.json:

"dependencies": {
    "opensea-js": "^2.0.2",
    ...
  }

then run npm install