Build, sign, and send a consolidation transaction for an account-based asset all in 1 call. For account-based assets, consolidating the balances in the receive addresses to the base address maximizes the spendable balance of a wallet.
Path Parameters
coinstringRequired
A cryptocurrency or token ticker symbol.
Example: btc
walletIdstringRequired
Example: 59cd72485007a239fb00282ed480da1f
Pattern: ^[0-9a-f]{32}$
Request Body
consolidateAddressesarray[string]
Optional: restrict the consolidation to the specified receive addresses. If not provided, will consolidate the
funds from all receive addresses up to 500 addresses.
walletPassphrasestring
Passphrase to decrypt the user key on the wallet.
Required if External Signer is not used to sign the transactions.
prvstring
The un-encrypted user private key in string form.
If the key is a JSON object it must be stringified.
Required if 'walletPassphrase' is not available or encrypted private key is not stored by BitGo.
apiVersionstring
The Trasaction Request API version to use for MPC EdDSA Hot Wallets.
Defaults based on the wallet type and asset curve.
Allowed values: fulllite
200 Response
successrequired
txRequestIdstringrequired
A unique ID for the TxRequest document across all wallets. The combination of the txRequestId and version will always be unique.
versionnumberrequired
The version of the document. Data changes are done only with inserts and incrementing the version.
latestbooleanrequired
A boolean flag that indicates whether the document is the latest version of the TxRequest.
walletIdstringrequired
The id of the Wallet the TxRequest is for.
walletTypestring
The type describes who owns the keys to the wallet associated to the TxRequest.