Skip to content

Commit

Permalink
v5.0.1: fix provider: static, batch, non-async
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 3, 2021
1 parent fc8dbee commit dea1d1b
Show file tree
Hide file tree
Showing 20 changed files with 42,580 additions and 105 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ describe('resetCache', ()=>{
})
```

#### provider

In order to mock requests with [depay-web3-mock](https://github.com/DePayFi/depay-web3-mock) you need to fetch `depay-web3-client` provider and pass it to `depay-web3-mock`:

```javascript
import { provider } from 'depay-web3-client'
import { mock } from 'depay-web3-mock'

mock({
provider: provider('ethereum'),
blockchain: 'ethereum'
})

// ...
```

### estimate

Allows you to estimate transactions before they happen to determine if they are possible and how much they will cost:
Expand Down
Loading

0 comments on commit dea1d1b

Please sign in to comment.