{"id":15837819,"url":"https://github.com/sambacha/web3-rpc-failover","last_synced_at":"2025-03-15T17:31:39.257Z","repository":{"id":40349769,"uuid":"388221353","full_name":"sambacha/web3-rpc-failover","owner":"sambacha","description":"web3 rpc provider connectivity failover ","archived":false,"fork":false,"pushed_at":"2023-09-24T16:39:38.000Z","size":678,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T20:06:30.912Z","etag":null,"topics":["ethereum","provider","rpc","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambacha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-21T19:14:09.000Z","updated_at":"2021-11-15T20:07:14.000Z","dependencies_parsed_at":"2024-10-30T06:15:34.116Z","dependency_job_id":null,"html_url":"https://github.com/sambacha/web3-rpc-failover","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fweb3-rpc-failover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fweb3-rpc-failover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fweb3-rpc-failover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambacha%2Fweb3-rpc-failover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambacha","download_url":"https://codeload.github.com/sambacha/web3-rpc-failover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243766783,"owners_count":20344811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","provider","rpc","web3"],"created_at":"2024-10-05T15:41:54.002Z","updated_at":"2025-03-15T17:31:37.999Z","avatar_url":"https://github.com/sambacha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web3-rpc-failover\n\n\u003e FailoverProvider via yaml configuration file for cascading connection fallbacks\n\n## Motivation\n\nProviding assurances for Service Provider outages in a robust and simple way. \n\nDo not confuse our usage of `failover` with how *ethers-js* uses _fallback_. [see the ethers documentation, fallback provider](https://docs.ethers.io/v5/single-page/#/v5/api/providers/other/-%23-FallbackProvider)\n\n\n\n## Install\n\n `npm i web3-rpc-failover`  \n\n\n### Usage: as an external module\n\n\n- install web3-rpc-failover\n- configure your RPC Service Providers in order of preference for failover\n\n  ```yaml\n  providers:\n    - url: 'https://mainnet.infura**'\n      config:\n        priority: 2\n        stallTimeout: 200\n        weight: 2\n    - url: 'infura.io/zzz'\n      config:\n        priority: 1\n        stallTimeout: 100\n        weight: 1\n  ```\n\n  `priority`:  priority used for the provider\n  `stallTimeout`:  timeout (in ms)\n\n### Usage: as a library\n\n  ```js\n  const {FallbackProvider} = require('web3-rpc-failover')\n  const provider = new FallbackProvider(\u003cpathToYAMLConfig\u003e)\n  ```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Fweb3-rpc-failover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambacha%2Fweb3-rpc-failover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambacha%2Fweb3-rpc-failover/lists"}