predictAccountAddress

Calls the "getAddress" function on the contract.

Example

import { getAddress } from "thirdweb/extensions/erc4337";
const result = await getAddress({
contract,
adminSigner: ...,
data: ...,
});
function predictAccountAddress(
options: BaseTransactionOptions<GetAddressParams>,
): Promise<string>;

Parameters

The options for the getAddress function.

Type

let options: BaseTransactionOptions<GetAddressParams>;

Returns

let returnType: Promise<string>;

The parsed result of the function call.