Type alias SmartAccountClientConfig<transport, chain, client, rpcSchema>

SmartAccountClientConfig<transport, chain, client, rpcSchema>: Prettify<Pick<ClientConfig<transport, chain, SmartAccount, rpcSchema>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "rpcSchema"> & {
    accountAddress?: Address;
    attesterThreshold?: ToNexusSmartAccountParameters["attesterThreshold"];
    attesters?: ToNexusSmartAccountParameters["attesters"];
    bootStrapAddress?: Address;
    bundlerTransport: transport;
    client?: client | Client;
    factoryAddress?: Address;
    index?: bigint;
    module?: Module;
    paymaster?: true | {
        getPaymasterData?: PaymasterActions["getPaymasterData"];
        getPaymasterStubData?: PaymasterActions["getPaymasterStubData"];
    };
    paymasterContext?: PaymasterContext;
    registryAddress?: Address;
    signer: OneOf<EthereumProvider | WalletClient<Transport, Chain | undefined, Account> | LocalAccount | EthersWallet>;
    transport: transport;
    useTestBundler?: boolean;
    userOperation?: {
        estimateFeesPerGas?: ((parameters) => Promise<EstimateFeesPerGasReturnType<"eip1559">>);
    };
    validatorAddress?: Address;
}>

Configuration for creating a Smart account Client

Type Parameters

  • transport extends Transport = Transport
  • chain extends Chain | undefined = Chain | undefined
  • client extends Client | undefined = Client | undefined
  • rpcSchema extends RpcSchema | undefined = undefined