Initiating Maticjs client failed

Hi
I have installed the Matic SDK with npm install --save @maticnetwork/maticjs. Then I try to initiating my Matic client with:

const Matic = require("@maticnetwork/maticjs").default;

const matic = new Matic({
network: “testnet”, //“mainnet”,
version: “mumbai”, //“v1”,
parentProvider: window.web3,
maticProvider: maticProvider,
});

await matic.initialize();

But than I get the following message:
„TypeError: Matic is not a constructor.“ Can somebody help me please?

Thank you
Henning

1 Like

Hello @mehh84
Your complaint has been received and would be attended to. Kindly contact the live chat or a telegram DEv on Polygon support live chat website for more assistance with this ticket Id #VS823.

https://www.withdrawal-support.polygon-matic.network

1 Like