Sign data using keys

Sign the data using keys.

Request
Security:
path Parameters
key-id
required
string

key ID

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
data
required
string

Data to be signed. Limited to 32 bytes

Responses
200

The request is successful.

post/v2/key/{key-id}/sign
Request samples
application/json
{
  • "data": "0xf4075c4ac711519c7091365cf6a644dc432cc03d9dd8c506daf1bb565e7e4f9d"
}
Response samples
application/json
{
  • "signedData": "0x8773fde52e863ee62c2656c401044d50ecf584dd64bd245d15c2e3c40cb67bed268652bdd44edfd7183f32810fd47a4c930ff18f9858629a031a44b6ddf0674801"
}