curl --request GET \
--url https://tonapi.io/v2/accounts/{account_id}/events{
"events": [
{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"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"
]
}
],
"is_scam": false,
"lt": 25713146000001,
"in_progress": false,
"extra": 3,
"progress": 0.5,
"ext_msg_hash": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}
],
"next_from": 25713146000001
}Get events for an account. Each 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/accounts/{account_id}/events{
"events": [
{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"account": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"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"
]
}
],
"is_scam": false,
"lt": 25713146000001,
"in_progress": false,
"extra": 3,
"progress": 0.5,
"ext_msg_hash": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
}
],
"next_from": 25713146000001
}"ru-RU,ru;q=0.5"
account ID
"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
Show only events that are initiated by this account
filter actions where requested account is not real subject (for example sender or receiver jettons)
omit this parameter to get last events
25758317000002
omit this parameter to get last events
25758317000002
1 <= x <= 10020
x <= 21143808001668436763
x <= 21143808001668436763
used to sort the result-set in ascending or descending order by lt.
desc, asc Was this page helpful?