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().importWallet({ userId: "<string> (The ID of the User importing a Wallet.)", walletName: "<string> (Human-readable name for a Wallet.)", encryptedBundle: "<string> (Bundle containing a wallet mnemonic encrypted to the enclave's target public key.)", accounts: [{ // A list of wallet Accounts., curve: "<CURVE_SECP256K1>" // curve field, pathFormat: "<PATH_FORMAT_BIP32>" // pathFormat field, path: "<string> (Path used to generate a wallet Account.)", addressFormat: "<ADDRESS_FORMAT_UNCOMPRESSED>" // addressFormat field, }]});
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().importWallet({ userId: "<string> (The ID of the User importing a Wallet.)", walletName: "<string> (Human-readable name for a Wallet.)", encryptedBundle: "<string> (Bundle containing a wallet mnemonic encrypted to the enclave's target public key.)", accounts: [{ // A list of wallet Accounts., curve: "<CURVE_SECP256K1>" // curve field, pathFormat: "<PATH_FORMAT_BIP32>" // pathFormat field, path: "<string> (Path used to generate a wallet Account.)", addressFormat: "<ADDRESS_FORMAT_UNCOMPRESSED>" // addressFormat field, }]});