Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Feb 21, 2024
1 parent 8cd8a51 commit f6d9982
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/docs/guides/wagmi_usage/wagmi.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
sidebar_position: 1
sidebar_label: 'Wagmi Web3js Adaptor'
title: 'Wagmi Web3js Adaptor'
sidebar_label: 'Wagmi Web3js Adapter'
title: 'Wagmi Web3js Adapter'
---

If you're using [Wagmi](https://wagmi.sh/react/getting-started#use-wagmi) and want to add web3.js, use this provider in your project:

### Reference Implementation
If you're using [Wagmi](https://wagmi.sh/react/getting-started#use-wagmi) and want to add web3.js, use this code in your project. This snippet will help you to convert a `Viem` client to a `web3.js` instance for signing transactions and interacting with the blockchain:


```typescript
Expand Down Expand Up @@ -39,6 +41,7 @@ export function useWeb3jsSigner({chainId}: { chainId?: number } = {}) {
}
```

### Usage examples
Get block data example:

```typescript
Expand Down

1 comment on commit f6d9982

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: f6d9982 Previous: 6c075db Ratio
processingTx 9176 ops/sec (±4.28%) 9301 ops/sec (±4.81%) 1.01
processingContractDeploy 38084 ops/sec (±8.14%) 39129 ops/sec (±7.62%) 1.03
processingContractMethodSend 19464 ops/sec (±6.34%) 19443 ops/sec (±5.19%) 1.00
processingContractMethodCall 39487 ops/sec (±4.99%) 38971 ops/sec (±6.34%) 0.99
abiEncode 43054 ops/sec (±7.15%) 44252 ops/sec (±6.92%) 1.03
abiDecode 30547 ops/sec (±6.76%) 30419 ops/sec (±8.89%) 1.00
sign 1635 ops/sec (±3.57%) 1656 ops/sec (±4.08%) 1.01
verify 371 ops/sec (±0.49%) 373 ops/sec (±0.78%) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.