#### URL Expired

The URL for this request expired after 30 days.

Request to get a balance for a master key, account, and asset.

### Parameters

- **MasterKey**  
  string  
  required  
  Master key name.

- **Account**  
  string  
  required  
  Account name.

- **CAIP19**  
  string  
  required  
  Asset identifier in CAIP-19 format (e.g. `eip155:1/slip44:60`).

### Responses

#### Success Responses
- **`200`**  
  The on-chain balance.

#### Client Errors
- **`400`**  
  Invalid input, validation error, or malformed request
- **`404`**  
  Not found — the master key / account does not exist, or the CAIP-19 is not registered.

#### Server Errors
- **`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 12 days ago

---

### Curl Request

```bash
curl --request POST \
     --url https://api.your-wallet.blockdaemon-wallet.com/api/cwp/balances/onchain \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```

### Base URL

https://api.your-wallet.blockdaemon-wallet.com/api/cwp/balances/onchain

### Response Status Codes

- `200`
- `400`
- `500`

### Updated 12 days ago
