Skip to content

Commit

Permalink
Restore Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Dec 4, 2024
1 parent c6bba29 commit 6082c34
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions pages/sdk/signers/passkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,26 @@ In this guide, you will learn how to create a Passkey signer that can be added a

Check [how to initialize the Protocol Kit](../../reference-sdk-protocol-kit/initialization/init.mdx)

You can instantiate the provider using `viem` and the following imports:
{/* <!-- vale off --> */}

```typescript
import { createWalletClient, http } from 'viem'
import { sepolia } from 'viem/chains

const provider = createWalletClient({
chain: sepolia,
transport: http('https://rpc.ankr.com/eth_sepolia')
})
const signer = passkey
```
<Tabs items={['viem']}>
<Tabs.Tab>
You can instantiate the provider using `viem` and the following imports:

```typescript
import { createWalletClient, http } from 'viem'
import { sepolia } from 'viem/chains

const provider = createWalletClient({
chain: sepolia,
transport: http('https://rpc.ankr.com/eth_sepolia')
})
const signer = passkey
```
</Tabs.Tab>
</Tabs>

{/* <!-- vale on --> */}

### Instantiate SDK

Expand Down

0 comments on commit 6082c34

Please sign in to comment.