curl --request GET \
--url https://tonapi.io/v2/events/{event_id}{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"timestamp": 1234567890,
"actions": [
{
"type": "TonTransfer",
"status": "ok",
"simple_preview": {
"name": "Ton Transfer",
"description": "Transferring 5 Ton",
"accounts": [
{
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
}
],
"action_image": "<string>",
"value": "5 Ton",
"value_image": "<string>"
},
"base_transactions": [
"e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e"
]
}
],
"value_flow": [
{
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"ton": 80,
"fees": 10,
"jettons": [
{
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"jetton": {
"address": "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0",
"name": "Wrapped TON",
"symbol": "WTON",
"decimals": 9,
"image": "https://cache.tonapi.io/images/jetton.jpg",
"verification": "whitelist",
"score": 123,
"custom_payload_api_uri": "<string>",
"description": "<string>"
},
"qty": "200",
"quantity": 10
}
]
}
],
"is_scam": false,
"lt": 25713146000001,
"in_progress": false,
"progress": 0.5,
"last_slice_id": 12345678,
"ext_msg_hash": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}Get an event either by event ID or a hash of any transaction in a trace. An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time.
curl --request GET \
--url https://tonapi.io/v2/events/{event_id}{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"timestamp": 1234567890,
"actions": [
{
"type": "TonTransfer",
"status": "ok",
"simple_preview": {
"name": "Ton Transfer",
"description": "Transferring 5 Ton",
"accounts": [
{
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
}
],
"action_image": "<string>",
"value": "5 Ton",
"value_image": "<string>"
},
"base_transactions": [
"e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e"
]
}
],
"value_flow": [
{
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"ton": 80,
"fees": 10,
"jettons": [
{
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"jetton": {
"address": "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0",
"name": "Wrapped TON",
"symbol": "WTON",
"decimals": 9,
"image": "https://cache.tonapi.io/images/jetton.jpg",
"verification": "whitelist",
"score": 123,
"custom_payload_api_uri": "<string>",
"description": "<string>"
},
"qty": "200",
"quantity": 10
}
]
}
],
"is_scam": false,
"lt": 25713146000001,
"in_progress": false,
"progress": 0.5,
"last_slice_id": 12345678,
"ext_msg_hash": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}"ru-RU,ru;q=0.5"
event ID or transaction hash in hex (without 0x) or base64url format
"97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
event
"e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e"
1234567890
Show child attributes
Show child attributes
scam
false
25713146000001
Event trace is not finished yet. Transactions still happening.
false
0 <= x <= 10.5
ID of the slice where this event was finalized. Null if not yet finalized.
12345678
Normalized hash of the root external inbound message (hex).
"a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
Was this page helpful?