getAddress
Returns the address of the connected account. Throws error if there is no connected account.
Usage
example.ts
import { smartAccountClient } from "./smartAccountClient";
const address = smartAccountClient.getAddress();
Returns
Promise<Address>
A Promise
that resolves to the address of the connected account
Parameters
account?: SmartContractAccount
If your client was not instantiated with an account, then you will have to pass the account in to this call.