ExpressAdvanced Wallets

POST

Advanced Wallets - Consolidate and Recover Assets

Recover assets from an advanced wallet with a balance in multiple receive addresses. Build, sign, and send a consolidation and recovery, all in one call. Sign using your user and backup keys. Works for both multisignature and MPC recoveries.

Retrieves the private keys from KMS using the provided public keys or common keychain, then signs and returns the broadcastable transaction hex.

Note: This endpoint only works when AWM and MBE are running in recovery mode.

To recover assets from an advanced wallet with a balance only in the base address, use Advanced Wallets - Recover Assets.

Use this endpoint only with advanced wallets. For other wallet types, use the Wallet Recovery Wizard.

Path Params

  • coin string required

Body Params

object

Request type for wallet recovery consolidations endpoint. Used to consolidate and recover funds from multiple addresses in a wallet, via signing with user and backup keys.
  • userPub string
    The user's public key for standard multisig wallets. Required for onchain multisig recovery consolidations.
  • backupPub string
    The backup public key for standard multisig wallets. Required for onchain multisig recovery consolidations.
  • bitgoPub string
    The BitGo public key for standard multisig wallets. Required for onchain UTXO multisig recovery consolidations.
  • multisigType string enum required
    The type of wallet to recover - onchain: Traditional multisig wallets. - tss: Threshold Signature Scheme wallets.
    onchaintss
  • commonKeychain string
    The common keychain for TSS wallets. Required when multisigType is 'tss'.
  • tokenContractAddress string
    The token contract address for token recovery (e.g., ERC20 tokens on Ethereum or SPL tokens on Solana). Required when recovering specific tokens instead of the native coin.
  • startingScanIndex number
    The starting index to scan for addresses to consolidate. Useful for limiting the scan range for better performance.
  • endingScanIndex number
    The ending index to scan for addresses to consolidate. Useful for limiting the scan range for better performance.

    Defaults to 20

  • apiKey string
    API key for blockchain explorer services. Required for some coins to build recovery transactions.
  • durableNonces object
    Durable nonces configuration for Solana transactions. Provides transaction durability for Solana recovery operations. Refer to https://github.com/BitGo/wallet-recovery-wizard/blob/master/DURABLE_NONCE.md on durable nonce creation.
    durableNonces object
    • publicKeys array of strings required
    • secretKey string required
      The secret key of the durable nonce account.

Responses

200
OK
No response body
400
Bad Request

Response Body

object

  • error string required
    The error name
  • details string required
    Error details
404
Not Found

Response Body

object

  • error string required
    The error name
  • details string required
    Error details
409
Conflict

Response Body

object

  • error string required
    The error name
  • details string required
    Error details
422
Unprocessable Entity

Response Body

object

  • error string required
    The error name
  • details string required
    Error details
500
Internal Server Error

Response Body

object

  • error string required
    The error name
  • details string required
    Error details
501
Not Implemented

Response Body

object

  • error string required
    The error name
  • details string required
    Error details