Update a wallet share
Updates a wallet share, typically to accept or cancel it. Accepting a share adds the user to the wallet.
Path Params
-
coinstring requiredA cryptocurrency or token ticker symbol -
shareIdstring requiredThe ID of the wallet share
Body Params
object
Update V2 Wallet Share Request Body
The request body for updating a wallet share: the new state of the share and, when the share is accepted, the key material of the accepting user.
-
statestring enum requiredThe new state of the wallet share.
Accept a share with
acceptedor cancel it withcanceled.pendingapprovalactiveacceptedcanceledrejected -
encryptedPrvstringPrivate key encrypted by the accepting user.
Used when accepting a wallet share to add to the user's keychains for using the wallet. Required when accepting a share that includes a keychain or when userMultiKeyRotationRequired is true.
-
pubstringPublic key of the accepting user.
Required for multi-user-key wallet shares (when userMultiKeyRotationRequired is true). Optional for other wallets, and validated against the wallet's user key public key if provided.
-
webauthnInfoobjectPasskey PRF wallet encryption data.
When provided alongside encryptedPrv on a hot wallet, attaches the passkey device metadata to the user key. With an
enterpriseIdthe PRF salt is checked against that enterprise and the user must be a member of it.ONE OF
-
enterpriseIdstring required -
prfSaltstring required -
otpDeviceIdstring required -
encryptedPrvstring required
-
prfSaltstring required -
otpDeviceIdstring required -
encryptedPrvstring required
-
Responses
200
OK
Response Body
object
-
statestring enum requiredNew state of the wallet share after updatependingapprovalactiveacceptedcanceledrejected -
changedboolean requiredWhether the wallet share was changed
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
401
Unauthorized
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
403
Forbidden
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
404
Not Found
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
500
Internal Server Error
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id