API Key
Webauthn (Passkey)
Body
Enum options: ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2
Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
Unique identifier for a given Organization.
parameters field
A Wallet account address, Private Key address, or Private Key identifier.
Raw unsigned payload to be signed.
Enum options: PAYLOAD_ENCODING_HEXADECIMAL
, PAYLOAD_ENCODING_TEXT_UTF8
Enum options: HASH_FUNCTION_NO_OP
, HASH_FUNCTION_SHA256
, HASH_FUNCTION_KECCAK256
, HASH_FUNCTION_NOT_APPLICABLE
Response
A successful response returns the following fields:
The activity object containing type, intent, and result
The intent of the activity
activity.intent.signRawPayloadIntent
The signRawPayloadIntent objectShow signRawPayloadIntent details
activity.intent.signRawPayloadIntent.privateKeyId
Unique identifier for a given Private Key.
activity.intent.signRawPayloadIntent.payload
Raw unsigned payload to be signed.
activity.intent.signRawPayloadIntent.encoding
encoding fieldEnum options: PAYLOAD_ENCODING_HEXADECIMAL
, PAYLOAD_ENCODING_TEXT_UTF8
activity.intent.signRawPayloadIntent.hashFunction
hashFunction fieldEnum options: HASH_FUNCTION_NO_OP
, HASH_FUNCTION_SHA256
, HASH_FUNCTION_KECCAK256
, HASH_FUNCTION_NOT_APPLICABLE
The result of the activity
activity.result.signRawPayloadResult
The signRawPayloadResult objectShow signRawPayloadResult details
activity.result.signRawPayloadResult.r
Component of an ECSDA signature.
activity.result.signRawPayloadResult.s
Component of an ECSDA signature.
activity.result.signRawPayloadResult.v
Component of an ECSDA signature.
curl --request POST \
--url https://api.turnkey.com/public/v1/submit/sign_raw_payload \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"timestampMs": "<string> (e.g., 1745474677472)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"signWith": "<string>",
"payload": "<string>",
"encoding": "<PAYLOAD_ENCODING_HEXADECIMAL>",
"hashFunction": "<HASH_FUNCTION_NO_OP>"
}
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677472)",
"result": {
"activity": {
"type": "<string>",
"intent": {
"signRawPayloadIntent": {
"privateKeyId": "<string>",
"payload": "<string>",
"encoding": "<PAYLOAD_ENCODING_HEXADECIMAL>",
"hashFunction": "<HASH_FUNCTION_NO_OP>"
}
},
"result": {
"signRawPayloadResult": {
"r": "<string>",
"s": "<string>",
"v": "<string>"
}
}
}
}
}
}