Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymarket/multi-endpoint-provider

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymarket/multi-endpoint-provider - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

lib/JsonRpcMultiProvider.js

@@ -10,2 +10,4 @@ "use strict";

return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -12,0 +14,0 @@ function __() { this.constructor = d; }

@@ -10,2 +10,4 @@ "use strict";

return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -12,0 +14,0 @@ function __() { this.constructor = d; }

@@ -10,2 +10,4 @@ "use strict";

return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -12,0 +14,0 @@ function __() { this.constructor = d; }

11

package.json
{
"name": "@polymarket/multi-endpoint-provider",
"version": "0.1.2",
"version": "0.1.3",
"description": "ethers.js Providers that try backup rpc endpoints when requests fail",

@@ -19,3 +19,4 @@ "author": "Sam Hatem <sam.hatem17@gmail.com>",

],
"dependencies": {
"dependencies": {},
"peerDependencies": {
"@ethersproject/logger": "^5.1.0",

@@ -27,4 +28,8 @@ "@ethersproject/networks": "^5.1.0",

},
"peerDependencies": {},
"devDependencies": {
"@ethersproject/logger": "^5.1.0",
"@ethersproject/networks": "^5.1.0",
"@ethersproject/properties": "^5.1.0",
"@ethersproject/providers": "^5.1.2",
"@ethersproject/web": "^5.1.0",
"@ethersproject/bignumber": "^5.1.1",

@@ -31,0 +36,0 @@ "@ethersproject/wallet": "^5.1.0",

# @polymarket/multi-endpoint-provider
ethers.js JsonRpcProvider and Web3Provider that try backup rpc endpoints when requests fail
ethers.js JsonRpcProvider and Web3Provider that try backup rpc endpoints when requests fail.
This package is expects ethers.js as a peer dependency so that different versions of ethers don't conflict.
```typescript
import { JsonRpcMultiProvider } from "@polymarket/multi-endpoint-provider";
const provider = new JsonRpcMultiProvider([
"https://polygon-mainnet.infura.io/v3/<infura_key>",
"https://rpc-mainnet.maticvigil.com/v1/<matic_vigil_key>",
], {
network: 137,
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc