# Provider Events

## Provider Events

### **`accountsChanged`** <a href="#accountschanged" id="accountschanged"></a>

#### **Description**

An event that is emitted when a user changes the account they are looking at on the ME Wallet

**Properties**

| Property   | Type               | Description                                                     |
| ---------- | ------------------ | --------------------------------------------------------------- |
| `accounts` | `BitcoinAccount[]` | The array of `BitcoinAccount` objects from the user's ME wallet |

`BitcoinAccount` **Response Properties**

| Property  | Type                             | Description                                                                                                            |
| --------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `address` | `string`                         | The user's BTC address                                                                                                 |
| `purpose` | `enum - 'payment' \| 'ordinals'` | The purpose of the address is used to indicate whether this address is preferrably used for payments or ordinals/runes |
