walletClientToSmartAccountSigner
Takes a walletClient and returns a custom signer that can be used as a signer with permissionless accounts. This is especially useful when using useWallet
from wagmi, allowing for an easy way to plug in custom frontend wagmi signers to permissionless accounts.
Import
import { walletClientToSmartAccountSigner } from "permissionless"
Usage
import { walletClientToSmartAccountSigner } from "permissionless"
const smartAccountSigner = walletClientToSmartAccountSigner(walletClient)
Returns
SmartAccountSigner
The smart account signer that can be used with permissionless accounts.
Parameters
- Type:
WalletClient
The viem/wagmi wallet client.