CDP SDK TypeScript - v1.25.0
    Preparing search index...

    Type Alias EvmSmartAccountProperties

    type EvmSmartAccountProperties = {
        address: Address;
        name?: string;
        owners: EvmAccount[];
        type: "evm-smart";
        policies: string[] | undefined;
        useNetwork: <Network extends KnownEvmNetworks>(
            network: Network,
        ) => Promise<NetworkScopedEvmSmartAccount<Network>>;
    }
    Index

    Properties

    address: Address

    The smart account's address.

    name?: string

    The name of the smart account.

    owners: EvmAccount[]

    Array of accounts that own and can sign for the smart account (currently only supports one owner but will be extended to support multiple owners in the future).

    type: "evm-smart"

    Identifier for the smart account type.

    policies: string[] | undefined

    The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists.

    useNetwork: <Network extends KnownEvmNetworks>(
        network: Network,
    ) => Promise<NetworkScopedEvmSmartAccount<Network>>

    A function that returns a network-scoped smart account.

    Type declaration

    // For known networks, type is inferred automatically:
    const baseAccount = await smartAccount.useNetwork("base");

    // For custom RPC URLs with type hints (requires casting):
    const typedAccount = await smartAccount.useNetwork<"base">("https://mainnet.base.org" as "base");

    // For custom RPC URLs without type hints (only sendTransaction, transfer and waitForTransactionReceipt methods available):
    const customAccount = await smartAccount.useNetwork("https://mainnet.base.org");