Files
jxomandGitHub 37fe3038e8 docs: more twoslash (#1735)
* wip

* docs: migrate to inline notation
2024-02-06 12:35:58 +11:00

13 lines
278 B
TypeScript

import 'viem/window'
// ---cut---
// [!region imports]
import { createWalletClient, custom } from 'viem'
import { mainnet } from 'viem/chains'
// [!endregion imports]
export const walletClient = createWalletClient({
chain: mainnet,
transport: custom(window.ethereum!),
})