Socket
Book a DemoInstallSign in
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

ethers.js Providers that try backup rpc endpoints when requests fail

latest
npmnpm
Version
0.1.5
Version published
Maintainers
8
Created
Source

@polymarket/multi-endpoint-provider

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.

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,
}

Keywords

typescript

FAQs

Package last updated on 21 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts