Error Reports (Keon)
How Keon Wallet sends opt-in error reports, and what the server stores
Keon Wallet can send error reports to help us fix problems. This is opt-in: the "Help improve Keon: send error reports" setting is off by default, and nothing is sent while it's off.
Most readers will not call this directly. It's the wallet's plumbing. We document it for transparency, so anyone can check exactly what a report may contain.
What a report never contains
Account addresses, balances, transaction calldata, the origins of connected dApps, recovery phrases, keys, passwords, or the device's IP address. The wallet redacts before it sends, and the server enforces the same rules again:
- The payload shape is strict. Any field not listed below is rejected with
400, so there is no way to send extra data. - The free-text
messageis scrubbed again on the server:- Any run of 32 or more hex digits becomes
[redacted], with or without0xand however long it is. This covers keys, addresses, hashes and signatures. Short values such as0x0or an encoded revert reason like0x4552433230are kept. - Any run of 12 or more BIP-39 words becomes
[redacted], whatever separates the words (spaces, commas, dashes, newlines). - Control characters become spaces, and the message is cut to 500 characters.
- Any run of 32 or more hex digits becomes
contractis never the user's own account. When the failure is in the account itself (__validate__or__execute__), the wallet leavescontractout, so a report can't tieinstall_idto an address.- The client IP is used only for rate limiting and is never stored.
install_id is a random UUID the wallet generates once per install. It isn't derived from or linked to any account. It's used only to group duplicates and to rate-limit.
Retention
Reports are deleted 90 days after they're received. Reports whose occurred_at is already older than that are accepted but not stored.
Authentication and limits
Send your api-key header. Going over either limit returns 429 with a Retry-After header:
| Limit | Counts |
|---|---|
| 120 per hour per client IP | Every POST, checked first. |
30 per hour per install_id | Every POST that passes validation. |
POST /api/keon/error-reports/
A batch of 1 to 20 reports from one install. Wallets queue reports while offline and send them in batches.
1{2 "install_id": "5f1e8f9e-2b8c-4c7e-9a51-7b8f3f2d0c11",3 "platform": "android",4 "reports": [5 {6 "app_version": "1.9.1",7 "network": "mainnet",8 "kind": "insufficient_fee_balance",9 "code": "INSUFFICIENT_FEE_BALANCE",10 "contract": "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",11 "entrypoint": "transfer",12 "message": "Not enough STRK to pay the network fee",13 "screen": "send/review",14 "occurred_at": "2026-11-01T11:40:02.118Z",15 "count": 216 }17 ]18}Batch fields
| Field | Required | Rules |
|---|---|---|
install_id | yes | A UUID. |
platform | yes | extension, android or ios. |
reports | yes | 1 to 20 report objects. |
Report fields
| Field | Required | Rules |
|---|---|---|
app_version | yes | Semver, for example 1.9.1 or 1.9.1-beta.2. This is the version the error happened on, which can differ from the sending version for queued reports. |
network | yes | mainnet or sepolia. |
kind | yes | Lowercase slug up to 48 characters, for example a parseStarknetError kind such as slippage or out_of_gas. |
code | no | Up to 64 characters of letters, digits and _ . -. A number is accepted and stored as text. |
contract | no | The failing contract (public on-chain data). A hex felt, stored padded. Never the user's account. |
entrypoint | no | The failing entrypoint, as a Cairo identifier. |
message | no | The redacted error message. Scrubbed again and cut to 500 characters. |
screen | yes | The screen or flow, as a lowercase path such as swap/review. |
occurred_at | yes | ISO 8601 time with a timezone. It may be up to 5 minutes in the future (clock skew). |
count | no | How many times this identical error happened, from 1 to 1000. Defaults to 1. |
Responses
| Status | When |
|---|---|
202 | Stored. Body: {"accepted": <reports stored>}. Reports past retention don't count. |
400 | An unknown field, a missing or invalid value, or more than 20 reports. Nothing from the batch is stored. |
401 / 403 | Missing or invalid api-key. |
429 | A rate limit was hit. Keep the batch queued and retry after Retry-After. |