This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathtransaction.sh
49 lines (39 loc) · 3.3 KB
/
transaction.sh
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
41
42
43
44
45
46
47
48
49
#!/bin/bash
# given tx hash, fetch tx details
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?hash=0x8a8f39c598c0ce929c8743fb883428eb1bf6f1afd9b189d958ca2cf5639d4e77
# for a specific account, given nonce, returns tx, in which nonce was set to
# this value for account given
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?nonce=1&fromAccount=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# can find out what contracts got deployed by specific account, when block number range is specified
#
# only 100 blocks you can ask it to query at max, at a given time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromBlock=1&toBlock=100&deployer=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# can find out what contracts got deployed by specific account, when block number range is specified
#
# it can take 600 seconds of timespan at max, at a given time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromTime=1604975929&toTime=1604975988&deployer=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# find out all tx in block number range, where `from` & `to` fields of tx
# are fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromBlock=1&toBlock=100&fromAccount=0x0214c5C41F5249166AAb9a12213Ac0E2119D2cc8&toAccount=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# find out all tx in block number range, where `from` field of tx is fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromBlock=1&toBlock=100&fromAccount=0x0214c5C41F5249166AAb9a12213Ac0E2119D2cc8
# find out all tx in block number range, where to` fields of tx is fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromBlock=1&toBlock=100&toAccount=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# find out all tx in happened time span, where `from` & `to` field of tx are fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromTime=1604975929&toTime=1604975988&fromAccount=0x0214c5C41F5249166AAb9a12213Ac0E2119D2cc8&toAccount=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d
# find out all tx in happened time span, where `from` field of tx is fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromTime=1604975929&toTime=1604975988&fromAccount=0x0214c5C41F5249166AAb9a12213Ac0E2119D2cc8
# find out all tx in happened time span, where to` field of tx is fixed
#
# at max 100 blocks can be queried at a time
curl -H 'APIKey: 0x43ee4523fc8cc569b492fcda6f32e07d90d2afdf7a8a02b5e74c933be1785487' http://localhost:7000/v1/transaction?fromTime=1604975929&toTime=1604975988&toAccount=0x193919f422a262b1edfd8ca2776b8cfb000bdd3d