UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

13 lines 446 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAddress = void 0; const account_js_1 = require("../../errors/account.js"); const getAddress = (client, args) => { const { account } = args ?? { account: client.account }; if (!account) { throw new account_js_1.AccountNotFoundError(); } return account.address; }; exports.getAddress = getAddress; //# sourceMappingURL=getAddress.js.map