REST API›Wallet & Transact›Wallet share

POST

Updates a wallet share, typically to accept or cancel it. Accepting a share adds the user to the wallet.

Path Params

  • coin string required
    A cryptocurrency or token ticker symbol
  • shareId string required
    The 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.

  • state string enum required

    The new state of the wallet share.

    Accept a share with accepted or cancel it with canceled.

    pendingapprovalactiveacceptedcanceledrejected
  • encryptedPrv string

    Private 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.

  • pub string

    Public 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.

  • webauthnInfo object

    Passkey PRF wallet encryption data.

    When provided alongside encryptedPrv on a hot wallet, attaches the passkey device metadata to the user key. With an enterpriseId the PRF salt is checked against that enterprise and the user must be a member of it.

    ONE OF

    • enterpriseId string required
    • prfSalt string required
    • otpDeviceId string required
    • encryptedPrv string required

Responses

200
OK

Response Body

object

  • state string enum required
    New state of the wallet share after update
    pendingapprovalactiveacceptedcanceledrejected
  • changed boolean required
    Whether the wallet share was changed
400
Bad Request

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
401
Unauthorized

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
403
Forbidden

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
404
Not Found

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
500
Internal Server Error

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id