connectToAccount

Connects the Provider to an Account and returns a Signer

Import

1import { EthersProviderAdapter } from "@aa-sdk/ethers";

Parameters

account

SmartContractAccount

  • the account to connect to

Returns

AccountSigner an AccountSigner that can be used to sign and send user operations