# 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 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-wallet.magiceden.io/bitcoin/provider-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
