Unique identifier for a given organization.
Unique identifier for a given private key.
privateKey field
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_private_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"privateKeyId": "<string>"
}'
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().getPrivateKey({
organizationId: "<string> (Unique identifier for a given organization.)",
privateKeyId: "<string> (Unique identifier for a given private key.)"
});
{
"privateKey": {
"privateKeyId": "<string>",
"publicKey": "<string>",
"privateKeyName": "<string>",
"curve": "<CURVE_SECP256K1>",
"addresses": [
{
"format": "<ADDRESS_FORMAT_UNCOMPRESSED>",
"address": "<string>"
}
],
"privateKeyTags": [
"<string>"
],
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"exported": "<boolean>",
"imported": "<boolean>"
}
}
Get details about a private key.
Show privateKey details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_private_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"privateKeyId": "<string>"
}'
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().getPrivateKey({
organizationId: "<string> (Unique identifier for a given organization.)",
privateKeyId: "<string> (Unique identifier for a given private key.)"
});
{
"privateKey": {
"privateKeyId": "<string>",
"publicKey": "<string>",
"privateKeyName": "<string>",
"curve": "<CURVE_SECP256K1>",
"addresses": [
{
"format": "<ADDRESS_FORMAT_UNCOMPRESSED>",
"address": "<string>"
}
],
"privateKeyTags": [
"<string>"
],
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"exported": "<boolean>",
"imported": "<boolean>"
}
}
Was this page helpful?