hyperweb-io / hyperweb-io/telescope

endpoint providers and fallbacks

Open
#167 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
154
Forks
53
PR merge metrics
No merged PRs in 30d

Description

The default should be easy, so a junior dev can simple provide an URL and get up and running. However, an array of fallback endpoints could be provided if exists!

```ts
interface EndpointWeight {
url: string;
weight: number;
}

export const getRpc = async (endpoints: EndpointWeight[]) => {
//...
};
```

## example docs:

- [ ] https://docs.ethers.io/v5/api/providers/provider/
- [ ] https://docs.ethers.io/v5/api/providers/other/#FallbackProvider

## example providers that are services

- https://blog.cosmos.network/kyve-the-web3-data-lake-solution-turns-to-cosmos-to-launch-scalable-and-streamlined-layer-1-16a2f4794f86
- https://www.pokt.network/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.