-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnnn.py
43 lines (35 loc) · 953 Bytes
/
nnn.py
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
36
37
38
39
40
import json
import requests
res = requests.post('https://soroban-testnet.stellar.org', json={
"jsonrpc": "2.0",
"id": 8675309,
"method": "getTransaction",
"params": {
"hash": "fa83440afa28eb3c02e70da0a6befb38008ec2e0a7956ce74e74340d0a9eab4f"
}
})
print(json.dumps(res.json(), indent=4))
# startLedger = 487649
# ====================
# res = requests.post('https://soroban-testnet.stellar.org', json={
# "jsonrpc": "2.0",
# "id": 8675309,
# "method": "getEvents",
# "params": {
# "startLedger": startLedger,
# "pagination": {
# "limit": 10000
# }
# }
# })
# print(json.dumps(res.json(), indent=4))
# ===============
# import json, requests
# res = requests.post('https://soroban-testnet.stellar.org', json={
# "jsonrpc": "2.0",
# "id": 8675309,
# "method": "getLedgerEntries",
# "params": {
# }
# })
# print(json.dumps(res.json(), indent=4))