Getting started with the Matic SDK
The easiest way to consume the SDK is via NPM. To install it in your project runnpm install @maticnetwork/maticjs
To access the SDK, import it in your application using..
The providers can be RPC urls or web3 based providers like Metamask provider, HDWalletProvider etc. based on requirement.
- RPC URL
- Metamask provider
- HD WAllet provider
Instantiate the client by passing network details and providers based on the network you are integrating.
More details can be provided if you want to override the default values.
Originally published @ https://docs.matic.network/docs/develop/ethereum-matic/pos/using-sdk/getting-started