17 lines
455 B
TypeScript
17 lines
455 B
TypeScript
// [!region setup]
|
|
import { createClient, http, publicActions, walletActions } from 'viem'
|
|
import { privateKeyToAccount } from 'viem/accounts'
|
|
import { tempoModerato } from 'viem/chains'
|
|
import { tempoActions } from 'viem/tempo'
|
|
|
|
export const client = createClient({
|
|
account: privateKeyToAccount('0x...'),
|
|
chain: tempoModerato,
|
|
transport: http(),
|
|
})
|
|
.extend(publicActions)
|
|
.extend(walletActions)
|
|
.extend(tempoActions())
|
|
|
|
// [!endregion setup]
|