UNPKG

startale-aa-sdk

Version:

SDK for startale account integration with support for account abstraction, ERC-7579, ERC-4337.

14 lines 653 B
import { parseAccount } from "viem/utils"; import { AccountNotFoundError } from "../../../account/utils/AccountNotFound.js"; export async function waitForTransactionReceipt(client, { account: account_ = client.account, hash }) { if (!account_) throw new AccountNotFoundError({ docsPath: "/docs/actions/wallet/waitForTransactionReceipt" }); const account = parseAccount(account_); const accountClient = account?.client; if (!accountClient) throw new Error("Requires a Public Client"); return accountClient.waitForTransactionReceipt({ hash }); } //# sourceMappingURL=waitForTransactionReceipt.js.map