Skip to content

Issue with setting up Web3 client with Matic #300

Discussion options

You must be logged in to vote

your code is -

const Web3ClientPlugin = require('@maticnetwork/maticjs-web3')

change it to -

const { Web3ClientPlugin } = require("@maticnetwork/maticjs-web3");

take a look at our example code - https://github.com/maticnetwork/matic.js/blob/master/examples/utils.js

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ujjwalgupta94
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #299 on December 16, 2021 09:28.