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().createWalletAccounts({ walletId: "<string> (Unique identifier for a given Wallet.)", 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, name: "<string> (Optional human-readable name for the account.)", }], persist: true // Indicates if the wallet accounts should be persisted. This is helpful if you'd like to see the addresses of different derivation paths without actually creating the accounts. Defaults to true.});
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().createWalletAccounts({ walletId: "<string> (Unique identifier for a given Wallet.)", 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, name: "<string> (Optional human-readable name for the account.)", }], persist: true // Indicates if the wallet accounts should be persisted. This is helpful if you'd like to see the addresses of different derivation paths without actually creating the accounts. Defaults to true.});