Delegate Key
Last updated
Last updated
POST /keys/:keyId/delegate
Only keys created with "delayDelegation: true
" can then be delegated to an end-user. It means you need to know ahead of time that you're creating a wallet meant to be delegated to an end-user later. This is a safety to prevent, for example, a treasury wallet from being unintentionally delegated to an end-user.
This operation is irreversible. The key ownership will be transferred to the end-user
In most cases, when you want to implement , simply create the wallet by directly delegating it to an end user, in which case it will the non-custodial from the start. There are some rare cases, however, where the key or wallet must be created before the user has accessed to the system. To accommodate this, we've added the ability to create a key or wallet in delay delegation mode, and then later delegate it (ie. transfer ownership of it) to an end user via this endpoint.
Keys:Delegate
Always Required
keyId
Unique identifier of the key.
userId
The ID of the end user to delegate the key to.
String
The response indicates the status of the operation.