| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### Optional metadata when starting an operation.

- **OperationID**  
  string  
  Unique operation identifier.

- **InitiatorID**  
  string  
  Initiator identifier.

- **ChainName**  
  string

- **CAIP19**  
  string

- **Asset**  
  string  
  required

- **TestNetwork**  
  boolean  
  truefalse

- **MasterKeyName**  
  string  
  required

- **Account**  
  string  
  required

- **SubAddressData**  
  array of objects  
  required  
  length ≥ 1

- **SubAddressData***  
    object  
    One asset and sub-address row when consolidating from multiple sub-addresses.

- **Asset**  
      string  
      Asset symbol for this consolidation row.

- **Amount**  
      string  
      Amount for this sub-address.

- **SubAddressIndex**  
      integer  
      Index of the sub-address within the account.

### ADD object

```  
200      Operation started

400      Invalid input, validation error, or malformed request

500      Internal server error. May include an `errorCode` (M-prefixed) and `data` from the MPA error code system. See `cwpapi/errors.go` for codes.
```

**Updated 3 months ago**

---

### Shell Examples

- **Ruby**  
- **PHP**  
- **Python**

### Base URL

`https://api.your-wallet.blockdaemon-wallet.com/api/cwp/operations/start/generateConsolidationData`

```
xxxxxxxxxx

curl --request POST \
     --url https://api.your-wallet.blockdaemon-wallet.com/api/cwp/operations/start/generateConsolidationData \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "SubAddressData": []
}
'
```

Click `Try It!` to start a request and see the response here! Or choose an example:

```json
200
400
500
```

**Updated 3 months ago**
