> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://viem-d2k3terix-wevm.vercel.app/api/mcp` to find what you need.

# Extending Client with ERC-7715 \[Setting up your Viem Client]

To use the experimental functionality of ERC-7715, you can extend your existing (or new) Viem Client with experimental ERC-7715 Actions.

```ts
import { createPublicClient, createWalletClient, http } from 'viem'
import { mainnet } from 'viem/chains'
import { erc7715Actions } from 'viem/experimental' // [!code focus]

const walletClient = createWalletClient({
  chain: mainnet,
  transport: custom(window.ethereum!),
}).extend(erc7715Actions()) // [!code focus]

const id = await walletClient.grantPermissions({/* ... */})
```
