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

    Type Alias EvmClientInterface

    EvmClientInterface: Omit<
        typeof OpenApiEvmMethods,
        | "createEvmAccount"
        | "createEvmSmartAccount"
        | "createSpendPermission"
        | "listSpendPermissions"
        | "revokeSpendPermission"
        | "importEvmAccount"
        | "exportEvmAccount"
        | "exportEvmAccountByName"
        | "getEvmAccount"
        | "getEvmAccountByName"
        | "getEvmSmartAccount"
        | "getEvmSmartAccountByName"
        | "getEvmSwapPrice"
        | "createEvmSwapQuote"
        | "getUserOperation"
        | "updateEvmAccount"
        | "listEvmAccounts"
        | "listEvmSmartAccounts"
        | "listEvmTokenBalances"
        | "prepareUserOperation"
        | "requestEvmFaucet"
        | "sendUserOperation"
        | "signEvmHash"
        | "signEvmMessage"
        | "signEvmTransaction"
        | "signEvmTypedData"
        | "sendEvmTransaction"
        | "signEvmTypedData"
        | "updateEvmAccount"
        | "exportEvmAccount"
        | "exportEvmAccountByName"
        | "updateEvmSmartAccount",
    > & {
        createAccount: (
            options: CreateServerAccountOptions,
        ) => Promise<EvmServerAccount>;
        createSmartAccount: (
            options: CreateSmartAccountOptions,
        ) => Promise<EvmSmartAccount>;
        importAccount: (
            options: ImportServerAccountOptions,
        ) => Promise<EvmServerAccount>;
        exportAccount: (options: ExportServerAccountOptions) => Promise<string>;
        getAccount: (options: GetServerAccountOptions) => Promise<EvmServerAccount>;
        getSmartAccount: (
            options: GetSmartAccountOptions,
        ) => Promise<EvmSmartAccount>;
        getSwapPrice: (
            options: GetSwapPriceOptions,
        ) => Promise<GetSwapPriceResult | SwapUnavailableResult>;
        createSwapQuote: (
            options: CreateSwapQuoteOptions,
        ) => Promise<CreateSwapQuoteResult | SwapUnavailableResult>;
        getOrCreateAccount: (
            options: GetOrCreateServerAccountOptions,
        ) => Promise<EvmServerAccount>;
        getUserOperation: (
            options: GetUserOperationOptions,
        ) => Promise<UserOperation>;
        updateAccount: (
            options: UpdateEvmAccountOptions,
        ) => Promise<EvmServerAccount>;
        updateSmartAccount: (
            options: UpdateEvmSmartAccountOptions,
        ) => Promise<EvmSmartAccount>;
        listAccounts: (
            options: ListServerAccountsOptions,
        ) => Promise<ListServerAccountResult>;
        listSmartAccounts: (
            options: ListSmartAccountsOptions,
        ) => Promise<ListSmartAccountResult>;
        listTokenBalances: (
            options: ListTokenBalancesOptions,
        ) => Promise<ListTokenBalancesResult>;
        prepareUserOperation: (
            options: PrepareUserOperationOptions,
        ) => Promise<UserOperation>;
        requestFaucet: (
            options: RequestFaucetOptions,
        ) => Promise<RequestFaucetResult>;
        sendTransaction: (
            options: SendTransactionOptions,
        ) => Promise<TransactionResult>;
        sendUserOperation: (
            options: SendUserOperationOptions<unknown[]>,
        ) => Promise<SendUserOperationReturnType>;
        signHash: (options: SignHashOptions) => Promise<SignatureResult>;
        signMessage: (options: SignMessageOptions) => Promise<SignatureResult>;
        signTypedData: (options: SignTypedDataOptions) => Promise<SignatureResult>;
        signTransaction: (
            options: SignTransactionOptions,
        ) => Promise<SignatureResult>;
    }

    The EvmClient type, where all OpenApiEvmMethods methods are wrapped.