-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.py
More file actions
35 lines (32 loc) · 749 Bytes
/
example.py
File metadata and controls
35 lines (32 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from ws import DfuseWs
d = DfuseWs()
payload = {
"type": "get_action_traces",
"listen": True,
"req_id": "your-request-id",
"irreversible_only": True,
"data": {
"accounts": "eosio.token",
"action_name": "transfer",
"with_inline_traces": True,
"with_dtrxops": True,
"with_ramops": True,
},
}
data = {
"accounts": "eosio.token",
"action_name": "transfer",
"with_inline_traces": True,
"with_dtrxops": True,
"with_ramops": True,
}
if __name__ == "__main__":
d.run(
data=data,
request_id="REQID_DFP",
request_type="get_action_traces",
listen=True,
irreversible_only=False,
fetch=True,
with_progress=0,
)