v56

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03113163377.5 KB
Subkey

Activate pending subkey

Activate a pending subkey by providing a Starknet signature over pedersen(timestamp, eph_public_key).

post/account/keys/subkeys/activate

Request body

account_idstring required

Account ID that the pending subkey belongs to.

namestring

Optional: New name for the subkey upon activation.

public_keystring required

Public key of the pending subkey to activate.

signaturestring[] required

Starknet signature [r, s] over pedersen(timestamp, eph_public_key).

timestampinteger required

Unix timestamp (seconds) included in signed message.

Example request

{
  "account_id": "0x1234567890abcdef",
  "name": "My Mobile Device",
  "public_key": "0x3d9f2b2e5f50c1aade60ca540368cd7490160f41270c192c05729fe35b656a9",
  "signature": [
    "[\"0xr...\"",
    "\"0xs...\"]"
  ],
  "timestamp": 1706400000
}

Response

OK

encrypted_keystring

Encrypted private key returned to client.

Example response

{
  "encrypted_key": "0xabc..."
}