Create an order on behalf of a managed user

This endpoint allows the client to create a staking, unstaking, or withdrawal order on behalf of a managed user. One key feature of this endpoint is the ability to include an optional validatorKey field when creating a staking order.

Including a Validator Key (Ethereum only)

By including a validatorKey in the staking order, the client specifies a pre-generated and signed Ethereum validator key that should be used for the staking transaction. This key must meet all required security and operational standards, as it will be directly used for staking on the Ethereum blockchain.

The validatorKey object includes cryptographic details such as the keystore information, public key, and the cryptographic path. Including this key is beneficial for users who prefer to maintain a level of control over their staking operations and ensure that their specific validators are utilized.

Without a Validator Key

If no validatorKey is provided, Northstake handles the staking operation internally. This process requires that the managed user's account must have sufficient balance in their deposit account to cover the staking transaction and any associated fees. In this case, Northstake will generate the necessary validator keys, handle the cryptographic operations, and ensure the validator is registered correctly on the blockchain.

Usage Scenarios

  • With Validator Key: Ensures that a specific, pre-approved validator key is used, providing transparency and control to the user.
  • Without Validator Key: Ideal for users who prefer a hands-off approach, allowing Northstake to manage the technical and operational complexities of staking on their behalf.

Clients are advised to ensure that all provided validator keys are secure and generated according to best security practices. Improper handling or exposure of validator keys can lead to significant security risks, including loss of staked assets.

Language
Click Try It! to start a request and see the response here!