Skip to content

Commit

Permalink
0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Aug 31, 2023
1 parent 51c5017 commit 8b43eea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,22 @@ const providerWithCustomOptions = new JsonRpcRetryProvider(
);
```

### JsonRpcRetryBatchProvider

```js
import { JsonRpcRetryBatchProvider } from "@instadapp/utils";

const provider = new JsonRpcRetryBatchProvider("https://rpc.ankr.io/eth");

const providerWithCustomOptions = new JsonRpcRetryBatchProvider(
"https://rpc.ankr.io/eth",
{
timeouts: [5_000, 10_000, 15_000], // timeouts for each retry attempt in ms
delay: 300, // delay between retries in ms
}
);
```

### StaticJsonRpcRetryProvider

```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instadapp/utils",
"version": "0.4.6",
"version": "0.4.7",
"description": "",
"repository": "instadapp/utils",
"license": "MIT",
Expand Down

0 comments on commit 8b43eea

Please sign in to comment.