/v3-node-0/smartaccount/{account}/eventsReturns protocol events filtered by smart account address with pagination
https://api.storm.tgParameters
accountstringrequiredSmart account address
stringorderstringoptionalSort order (ASC or DESC, default: DESC)
stringlimitintegeroptionalMaximum number of events to return (default: 100, max: 1000)
0offsetintegeroptionalNumber of events to skip (default: 0)
0event_typestringoptionalFilter by event type. Supports comma-separated list. Case-insensitive. Examples: DEPOSIT_NOTIFY or deposit_notify,withdraw,excess. Available types: trade_notification_v2, referral_fees, bundle_external_body, notify_update_position, add_gas_units, withdraw, add_public_key, remove_public_key, remove_all_except_current_public_key, deposit_notify, deposit_notify_with_deploy, excess, take_position_v2, failed_bundle_execution, withdraw_request
stringExamples
curl --request GET 'https://api.storm.tg/v3-node-0/smartaccount/{account}/events' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/v3-node-0/smartaccount/{account}/events", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/v3-node-0/smartaccount/{account}/events",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200OKapplication/json
Array of Trading.proto.ProtocolEvents
accountstringoptionalstringeventanyoptionalTypes that are valid to be assigned to Event:
*ProtocolEvents_TradeNotificationV2
*ProtocolEvents_ReferralFees
*ProtocolEvents_BundleExternalBody
*ProtocolEvents_NotifyUpdatePosition
*ProtocolEvents_AddGasUnits
*ProtocolEvents_Withdraw
*ProtocolEvents_AddPublicKey
*ProtocolEvents_RemovePublicKey
*ProtocolEvents_RemoveAllExceptCurrentPublicKey
*ProtocolEvents_DepositNotify
*ProtocolEvents_DepositNotifyWithDeploy
*ProtocolEvents_Excess
*ProtocolEvents_TakePositionV2
*ProtocolEvents_FailedBundleExecution
*ProtocolEvents_WithdrawRequest
*ProtocolEvents_InitSa
hashinteger[]optionalArray items · integer
integer
View example
[
0
]senderobjectoptionalTrading.proto.Address · 1 field
valuestringoptionalstringView example
{
"value": "string"
}sequenceintegeroptional0timestampintegeroptional0tx_statusobjectoptionalTrading.proto.TransactionStatus · 3 fields
action_result_codeintegeroptional0exit_codeintegeroptional0successbooleanoptionaltrueView example
{
"action_result_code": 0,
"exit_code": 0,
"success": true
}[
{
"account": "string",
"hash": [
0
],
"sender": {
"value": "string"
},
"sequence": 0,
"timestamp": 0,
"tx_status": {
"action_result_code": 0,
"exit_code": 0,
"success": true
}
}
]