import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().importPrivateKey({ userId: "<string> (The ID of the User importing a Private Key.)", privateKeyName: "<string> (Human-readable name for a Private Key.)", encryptedBundle: "<string> (Bundle containing a raw private key encrypted to the enclave's target public key.)", curve: "<CURVE_SECP256K1>" // curve field, addressFormats: "<ADDRESS_FORMAT_UNCOMPRESSED>" // Cryptocurrency-specific formats for a derived address (e.g., Ethereum).});
import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().importPrivateKey({ userId: "<string> (The ID of the User importing a Private Key.)", privateKeyName: "<string> (Human-readable name for a Private Key.)", encryptedBundle: "<string> (Bundle containing a raw private key encrypted to the enclave's target public key.)", curve: "<CURVE_SECP256K1>" // curve field, addressFormats: "<ADDRESS_FORMAT_UNCOMPRESSED>" // Cryptocurrency-specific formats for a derived address (e.g., Ethereum).});