> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ton.org/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.ton.org/feedback

```json
{
  "path": "/ecosystem/tma/analytics/supported-events",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Supported events

Events from TON Connect will be sent only if `@tonconnect/ui-react@2.0.3`, `@tonconnect/ui@2.0.3` or `@tonconnect/sdk@3.0.3` and higher versions packages are used.

| Event name                       | Description                                                                              | TON Connect required |
| -------------------------------- | ---------------------------------------------------------------------------------------- | -------------------- |
| `app-init`                       | Connection attempts and their initiation                                                 | false                |
| `app-hide`                       | Hiding the app from the screen                                                           | false                |
| `custom-event`                   | The event specified by the user                                                          | false                |
| `connection-started`             | The user starts connecting the wallet                                                    | true                 |
| `connection-completed`           | Successful connection to a wallet                                                        | true                 |
| `connection-error`               | Errors in connection specifying reasons (e.g., user canceled)                            | true                 |
| `connection-restoring-completed` | The connection was restored successfully                                                 | true                 |
| `connection-restoring-error`     | Connection restoration failed                                                            | true                 |
| `transaction-sent-for-signature` | The user submits the transaction for signature                                           | true                 |
| `transaction-signed`             | The user successfully signs the transaction                                              | true                 |
| `transaction-signing-failed`     | The user cancels the transaction signature or an error occurs during the signing process | true                 |
| `disconnection	user-initiated`   | Disconnection events, specifying scope (dApp or wallet)                                  | true                 |
