Skip to content

getWalletClient

Using wallet client to make write calls

WalletClient

Wallet clients are used to make write calls.

example.ts
import { mintclub } from 'mint.club-v2-sdk'
 
 
const 
const walletClient: any
walletClient
= await mintclub.network('base').getWalletClient()
example.ts
import { mintclub } from 'mint.club-v2-sdk'
 
const walletClient = await mintclub.network('base').getWalletClient() 
 
const [account] = await walletClient?.getAddresses() || [] 
 
if(account) { 
	const 
const signed: any
signed
= await walletClient?.signMessage({
account, message: 'Hello, Mint Club!' }) }

Viem Documentation

For more information on how to use the wallet client more effectively, you can refer to the Viem's documentation