Skip to content

TON wallets

Telegram wallets and their transfers: GRAM (ex. TON), tokens (jetton), NFTs.

GRAM and TON are the same currency: the Telegram app calls it GRAM. API fields keep the old name: value_ton, value_nano. 1 GRAM = 10⁹ nanotons. Terms — in the glossary.

Endpoint Returns
GET /v1/users/{identifier} The user’s current and past wallets.
GET /v1/ton/wallets/{address} Owner, activation date and totals for an address.
GET /v1/ton/wallets/{address}/transfers, …/jettons, …/nfts GRAM, token and NFT transfers of an address.
GET /v1/ton/wallets/{address}/counterparties Counterparties of an address.
GET /v1/users/{identifier}/ton/transfers, …/jettons, …/nfts Transfers across all of the user’s wallets.
GET /v1/ton/transactions/{hash} A transaction by hash.

The API does not return balances: no GRAM, no token balances, no list of NFTs on an address. See the current balance via explorer_url. Summary totals are sums of loaded transfers, not a balance.

No separate role is needed: Api-Key is enough for TON methods. TON paths (/v1/ton/… and /v1/users/{identifier}/ton/…) work with or without a trailing slash: same response, price and hour. An end-to-end example is in Getting started.

  • Source: the public TON-ETL dataset. Loaded once a day at about 06:10 UTC (09:10 MSK) for the previous UTC day, with a delay of up to 1.5 days. data_until in the summary is the UTC date of the newest loaded transfer in the whole dataset, the same for all addresses.
  • The earliest transfers are from 2026-08-27 15:28 UTC (18:28 MSK). Before October 2026 there are few transfers: Telegram wallets became widespread later. The wallet–user link starts on 2026-11-09 21:00 UTC (2026-11-10 00:00 MSK): a wallet removed from a profile earlier is unknown.
  • Only transfers where at least one side is a Telegram wallet or an address ever seen in a user’s profile are stored. This is not the full history of an address: transfers between two other addresses are not stored. There is no workchain filter. A -1:… address is never a Telegram wallet; its summary and feeds contain transfers with Telegram wallets and profile addresses, as for any other address, and its summary costs 1₽.
  • Loaded transfers are not deleted: if an address is removed from a profile, its history stays.
  • A GRAM transfer is one internal message; there are no external messages (without a sender). There is no filter by opcode or amount: the feed, totals, counterparties and price include service messages — excess gas return (excess), a transfer call to one’s own jetton wallet, a token notification with forward_ton_amount, messages to NFT contracts, DEX calls, records with value_nano: "0". A side of such a record may be a jetton wallet or a contract. A person’s transfer is opcode 0 (comment), null (no body) or 560454219 (encrypted comment), see opcode.
  • Network fees are not in the amounts: value_nano is what the recipient got; the sender was charged more.
  • A DEX swap is several unlinked records in /transfers and /jettons; the router or pool looks like a counterparty without an owner. An NFT sale via a marketplace is a record to the sale contract in /nfts; the price is in separate records in /transfers.
  • History is backfilled. Any past day, including data_until, may get new records later: when a wallet is activated or appears in a profile, the next load adds its earlier transfers, including incoming ones before activation. Until then they are not visible. Transfers from 2026-11-01 are guaranteed to be backfilled; earlier ones are not. The summary and counterparties change after that, and page numbering in feeds shifts. The price of an already opened hour does not change.
  • Tokens are identified only by the contract address (jetton_master): anyone can issue a token with any name. verified: true means the token is on Tonkeeper’s verified list; a token with a well-known name and no verified may be a fake.
  • For calculations, take GRAM amounts from *_nano (string, exact); *_ton is a number for display.
  • owner, is_telegram_wallet, verified and is_telegram_gift are computed on every response and may change in older records too.

owner is the user who shows the address in the profile now. It is not the one who made the transfer: the API does not return the owner at transfer time.

owner: null if, at request time:

  • nobody shows this address in the profile: never set it, removed it, or hid it with Telegram privacy settings;
  • the profile has not been scanned yet since the wallet appeared in it.

If several users show the address, owner is the one with the latest update; the API shows the others neither in owner nor in past_owners.

The owner is visible right after the profile is rescanned. How often a profile is scanned is not guaranteed.

update of an owner or wallet is the date we first saw the wallet in the profile, not the date it was set. For wallets set before 2026-11-10, it is not earlier than 2026-11-09 21:00 UTC (2026-11-10 00:00 MSK).

true — the address has the code of the built-in non-custodial Telegram wallet. The code appears after the first outgoing transaction. false — no code found: another wallet, an exchange, the custodial @wallet, or a Telegram wallet that has not sent anything yet. A non-activated profile wallet is false, but its transfers are in the data. A profile may show any TON address, not only a Telegram wallet.

Checked on every response for each side of each transfer against the list of Telegram wallets as of the last load, not against the blockchain in real time.

An address is accepted in any of these forms:

Form Example
non-bounceable (as in Telegram) UQC5FaVVJP6uOKzxjpv3GDhHgQaz4fwlc-3N8I2jHBCOx16L
bounceable EQC5FaVVJP6uOKzxjpv3GDhHgQaz4fwlc-3N8I2jHBCOxwNO
raw 0:b915a55524feae38acf18e9bf71838478106b3e1fc2573edcdf08da31c108ec7
  • UQ…/EQ… — base64, standard or url-safe. / and + in the path may be left unencoded (%2F, %2B also work). The url-safe form is more reliable.
  • raw — <workchain>:<64 hex>, workchain from −128 to 127, hex in any case. : may be left unencoded.
  • For workchain −1 the forms start with Uf… (non-bounceable) and Ef… (bounceable). Do not check the form by its first characters.
  • A testnet address in user-friendly form (kQ…/0Q…, testnet flag) — 400 testnet_address. The raw form carries no network flag and is accepted as a mainnet address.
  • Spaces around an address or hash are trimmed. ton://… links are not accepted — 400 invalid_address.

All forms are one address. Responses contain address (UQ… form) and address_raw (wc:hex, lowercase hex). Addresses in responses are url-safe base64 (-, _), hashes are standard base64 (+, /, =). Transfer sides and counterparties are always the non-bounceable form (UQ… for workchain 0, Uf… for workchain −1), including exchanges and other contracts. Only contract addresses in the jetton_master, nft, collection fields and the summary’s address_bounceable are in bounceable form (EQ…/Ef…). The UQ… and EQ… strings of one address differ: compare and store by address_raw.

A transaction hash is 64 hex characters (any case) or 43 base64 characters with an optional trailing = (standard or url-safe). Responses contain tx_hash (base64 with =) and tx_hash_hex (lowercase hex). / and + of a hash in the path may be left unencoded, as for an address.

For a GRAM transfer, tx_hash, lt and time are those of the recipient’s transaction, including in out records. So a wallet’s outgoing transaction hash (from tonviewer) does not find its GRAM transfers: search by message_hash or by the recipient’s transaction hash.

Field Meaning
delivered false — the recipient did not accept the transfer; the funds returned to the sender. null — unknown: only in some records loaded before 2026-11-12.
destination_status Recipient state before the transfer: active; uninit or nonexist — the wallet is not activated; frozen — frozen. null — as for delivered.

Whether a transfer is credited depends on the bounce flag (the sender allowed a return):

bounce Recipient delivered
false any true: the funds stay on the address, including a non-activated one
true active, transfer accepted true
true uninit / nonexist / frozen or rejected the transfer false: the funds returned

The refund reaches the sender as a separate incoming record from the would-be recipient: bounced: true, its own message_hash and tx_hash. It is not linked to the original transfer: match by addresses, amount and time. The refund amount is smaller than the original by network fees. The refund is counted in transfer counters but not in amounts. Transfers with delivered: false are also excluded from summary and counterparty totals. Records with delivered: null or bounced: null count in amounts as credited.

Address summary — 1₽; repeat requests within an hour — 0₽. 0₽ and 200 with zero totals if nothing is known about the address: no events, no owner in the response, no past owners and no Telegram code. Such a response does not open the hour. An address with only past owners — 1₽.

Feeds of an address or user and counterparties of an address: the first paid request opens all feeds (/transfers, /jettons, /nfts), all pages and counterparties for an hour. Repeat requests within the hour — 0₽. Only an address has counterparties.

Each address and each user has its own hour, and an address has two: the summary; feeds and counterparties. The hours are independent: the summary does not open feeds, feeds do not open the summary, access to a user does not open their addresses, and vice versa. The rules below apply to all hours:

  • The hour is bound to the API account, not the token: resetting the token does not close it.
  • An address hour is bound to the address itself: UQ…, EQ… and raw share one hour.
  • A user hour is bound to the Telegram ID: a username change does not close it.
  • Request parameters (filters, page, limit) do not affect the hour.
  • The hour counts from the charge (the server charges before sending the response) and is not extended. After it, the first paid request costs the full price again, by the current number of counterparties.
  • Whether the hour is open is checked after the data fetch, not when the request arrives. A request sent in the last seconds of the hour, or a long fetch that ends after it, costs the full price and opens a new hour. If the hour was open at the check, the response costs 0₽.
  • The API does not report when the hour expires. Keep a timer per address (summary and feeds separately) and per user. Count 3600 s from sending the request whose response came with Telesint-Billing-Charged greater than 0, or the request with a billing 503 after which the charge may have gone through.
  • Concurrent first requests to one address or user are charged once: the one whose response is ready first pays, the others wait up to 5 s and go through for 0₽. If its charge failed (insufficient balance, failure), the next one pays. If the first one’s charge did not finish within 5 s, the waiting ones go through for 0₽ and the hour counts as open. Never charged twice within one hour. The wait covers only the moment of the charge, not the query: a long request (large limit, direction=all) does not cause a second charge. The wait is not part of the server timeout (about 10 s).
  • An open hour and free responses work even with a zero balance.

The price of the hour depends on the number of counterparties — distinct addresses in all GRAM, token and NFT transfers in both directions, including returned and failed ones. The address itself (for a user — all their wallets) and an empty side (mint, burn) are not counted. For tokens and NFTs the counterparty is the owner on the other side (the main wallet), not the token contract, jetton wallet or NFT. 0 counterparties falls into the “up to 20” tier:

Counterparties Price
up to 20 1₽
21–100 3₽
101–1,000 10₽
1,001–10,000 30₽
over 10,000 100₽
  • lists_price in the summary — what the first request to the address feeds would cost now. 0 if the feeds would be free: no events and no owner in the response (including an address with only past owners and a Telegram wallet whose transfers are not in the loaded data). Such a wallet with an owner in the response — 1: even an empty feed page costs 1₽.
  • lists_price does not account for an already opened hour: with an open hour the request costs 0₽ while the field is above 0. The price is recalculated at the first paid request; after a load it may grow.
  • lists_price is the price of one hour, not a budget for an export: if a walk does not fit in the hour, the next hour is paid again.
  • For a user, unique addresses across all their wallets together are counted, excluding those wallets themselves. Example: 2 wallets with 15 counterparties each, 5 shared — 25 counterparties, 3₽. The user price cannot be known in advance, and the sum of their addresses’ lists_price does not give it. It may even be lower than the lists_price of a single address: transfers between the user’s wallets do not count toward their price. The exact amount is in Telesint-Billing-Charged of the first paid response.
  • An address nothing is known about — 0₽: the summary has zero totals, feeds and counterparties return data.wallet and items: [].
  • A user without wallets — 0₽, empty wallets and items.
  • An empty address feed or counterparties page — 0₽ and does not open the hour, for any reason: end of the list, from/to, direction, include_aborted, has_owner. Except for an address with an owner in the response (owner is not null): even an empty page costs the full hour price and opens it, because it shows the owner in data.wallet.owner.
  • An empty user feed page — 0₽ and does not open the hour.
  • Transaction by hash — 1₽ per request, including a repeat of the same hash. 404 is not charged.
  • Free responses also contain Telesint-Billing-Charged: 0 and Telesint-Billing-Balance. The headers do not distinguish “hour open” from “free”.

See Pricing.

Pages are page/limit (offset); there is no cursor. Records are sorted descending by time, lt, then the record key — descending, as strings (hashes in base64, addresses in raw); an empty side goes last. The order is stable. The record key is in the common fields.

A load only adds records, and always in the past: new days and backfilled history. Records added below the current page shift the feed down: the walk sees some records again (duplicates) but does not lose them. Records added to the already walked part of the feed are not seen by the walk. A fixed to does not protect against this: added records are always earlier than “now”. to is only for a repeatable walk.

A full walk:

  1. Fix to at the start of the walk.
  2. Go through pages until has_next_page is false. Remove duplicates by the record key.
  3. If the walk ran during a load — around 06:10–06:30 UTC (09:10–09:30 MSK) — repeat it in full after the load: backfilled records may be of any age. Instead of a repeat, you can check the counters against the summary.

There is no load marker in the response, and the summary’s data_until is updated no later than 10 minutes after the load ends. Continuing with page=1 and to = time of the last record + 1 s avoids rereading but does not give completeness. The offset is (page − 1) · limit. When changing limit, restart from page=1 the same way, or continue from the same offset if it is a multiple of the new limit: page = offset / limit + 1.

The first 32 bits of a GRAM message body, a signed 32-bit number: codes from 0x80000000 come as negative. Compare with the decimal value from the table, not directly with the hex from the TEP.

Code hex Message
0 0x00000000 Text comment (may be empty). A person’s transfer.
null — No body. A person’s transfer.
560454219 0x2167da4b Encrypted comment, comment: null. A person’s transfer.
260734629 0x0f8a7ea5 Jetton transfer — a call to one’s own jetton wallet.
395134233 0x178d4519 Jetton internal_transfer — between jetton wallets.
1935855772 0x7362d09c Jetton transfer_notification — notification to the token recipient.
-718113061 0xd53276db Excess — excess gas return.
1607220500 0x5fcc3d14 NFT transfer — a call to the NFT.
85167505 0x05138d91 NFT ownership_assigned — notification to the new owner.
-1 0xffffffff Refund (bounced: true).

Other codes are contract calls (DEX etc.).

Term Meaning
GRAM, nanoton GRAM is the former TON. A nanoton is the minimal unit, 1 GRAM = 10⁹ nanotons. Exact amounts are the *_nano strings.
jetton A TEP-74 token.
jetton_master The token contract. A token is identified only by its address.
jetton wallet A service contract for an “owner + token” pair that holds the balance. In /jettons the sides are owner addresses, not jetton wallets. In /transfers a jetton wallet may be a side of service messages (token transfer, excess) and shows up as a counterparty.
Telegram wallet An address with the code of the built-in Telegram wallet, see is_telegram_wallet.
profile wallet An address a user shows or showed in the Telegram profile. May be any TON address. Independent of is_telegram_wallet.
counterparty Another address in transfers. Three counts: the summary’s stats.ton.counterparties — GRAM, may include the address itself; /counterparties — GRAM, without the address; the hour price — GRAM, tokens and NFTs, without the address.
lt Logical time: a growing transaction counter, not a time. Orders records within one second. Not a cursor.
UQ…, EQ…, raw Three forms of one address (for workchain −1 — Uf…, Ef…, raw). Non-bounceable and bounceable differ by the bounce flag and therefore by the checksum — the last characters. Store address_raw as the key.
opcode The first 32 bits of the message body, a signed number. 0 — text comment, null — no body, 560454219 — encrypted comment; other — a contract call: token transfer, excess gas return (excess), DEX. Common codes — above.
forward payload Data a token transfer forwards to the recipient. The token comment is taken from it.
frozen The account is frozen for unpaid storage fees.
bounce Sender’s flag: return the funds if the recipient does not accept them.
bounced A refund message. Reaches the sender as a separate incoming record. The original transfer is then delivered: false.