Subkey

Activate pending subkey

Changed on

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

post/account/keys/subkeys/activate

Request

  • Base URL
    https://api.prod.paradex.trade/v1
  • URL
    https://api.prod.paradex.trade/v1/account/keys/subkeys/activate
  • Auth
    none declared

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..."
}

Changes

    • warning

      added the new ADDRESS_BOOK_NOT_PARADEX_ACCOUNT enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_NOT_PARADEX_ACCOUNT enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_NOT_PARADEX_ACCOUNT enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_REPEATED_IN_IMPORT enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_REPEATED_IN_IMPORT enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_REPEATED_IN_IMPORT enum value to the //// response property for the response status

    • warning

      added the new STARKNET_PARENT_ONBOARDING_DISABLED enum value to the //// response property for the response status

    • warning

      added the new STARKNET_PARENT_ONBOARDING_DISABLED enum value to the //// response property for the response status

    • warning

      added the new STARKNET_PARENT_ONBOARDING_DISABLED enum value to the //// response property for the response status

    • warning

      added the new SESSION_EXPIRED enum value to the //// response property for the response status

    • warning

      added the new SESSION_EXPIRED enum value to the //// response property for the response status

    • warning

      added the new SESSION_EXPIRED enum value to the //// response property for the response status

    • warning

      added the new SESSION_REVOKED enum value to the //// response property for the response status

    • warning

      added the new SESSION_REVOKED enum value to the //// response property for the response status

    • warning

      added the new SESSION_REVOKED enum value to the //// response property for the response status