> For the complete documentation index, see [llms.txt](https://docs.twilight.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.twilight.org/boomerang/clearing.md).

# Clearing

Clearing is the source of truth for all the intermediary state of a fragment. All transfers are recorded in clearing.&#x20;

```protobuf
message ClearingAccount {
    string TwilightAddress = 1;
    string BtcDepositAddress = 2;
    uint32 BtcDepositAddressIdentifier = 3; 
    string BtcWithdrawAddress = 4;
    uint32 BtcWithdrawAddressIdentifier = 5;
    repeated IndividualTwilightReserveAccountBalance ReserveAccountBalances = 6
```

Individual accounts have a separate mapping

```protobuf
message IndividualTwilightReserveAccountBalance {
    uint64 ReserveId = 1;
    uint64 Amount = 2;
```
