predictSmartAccountAddress

Predict the address of a smart account.

Example

import { predictSmartAccountAddress } from "thirdweb/wallets/smart";
const predictedAddress = await predictSmartAccountAddress({
client,
chain,
adminAddress,
});
function predictSmartAccountAddress(args: {
accountSalt?: string;
adminAddress: string;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
factoryAddress?: string;
}): Promise<string>;

Parameters

The options for predicting the address of a smart account.

Type

let args: {
accountSalt?: string;
adminAddress: string;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
factoryAddress?: string;
};

Returns

let returnType: Promise<string>;

The predicted address of the smart account.