---
title: "Consolidate account (advanced)"
method: POST
path: "/api/v2/{coin}/wallet/{walletId}/consolidateAccount/build"
tags: ["Wallet"]
---

# Consolidate account (advanced)

`POST /api/v2/{coin}/wallet/{walletId}/consolidateAccount/build`

Build a consolidation transaction for an account-based asset. Once built, you must sign and send the transaction. For account-based assets, consolidating the balances in the receive addresses to the base address maximizes the spendable balance of a wallet.

## Path parameters

- `coin` 'algo' | 'talgo' | 'xtz' | 'txtz' | 'eth' | 'hteth', required — This route is only available for Algorand, Tezos, and Eth.
- `walletId` string, required

## Request body

- ConsolidateAccountBuildRequest
  - `consolidateAddresses` 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.
  - `apiVersion` 'full' | 'lite' — The Trasaction Request API version to use for MPC EdDSA Hot Wallets. Defaults based on the wallet type and asset curve.

## Response `200`

OK

- ConsolidateAccountBuildResponse
  - `keyDerivationPath` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
