-
Notifications
You must be signed in to change notification settings - Fork 6
/
reth_db_py.pyi
107 lines (86 loc) · 3.04 KB
/
reth_db_py.pyi
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
from enum import Enum
from typing import List, Tuple
class PyDatabaseHandler:
def __init__(self, db_path: str):
"""
Construct a new `PyDatabaseHandler` object.
:param str db_path: The path to the database.
:return: A new `PyDatabaseHandler` object.
:rtype: PyDatabaseHandler
"""
...
def get_header_by_block_number(self, number: int) -> str:
"""
Get header by block number.
:param int number: The block number.
:return: A JSON string representing the header of the block.
:rtype: str
"""
...
def get_headers_by_block_number_range(self, start: int, end: int) -> str:
"""
Get headers by block number range.
:param int start: The start block number of the range.
:param int end: The end block number of the range.
:return: A JSON string representing headers of blocks within the range.
:rtype: str
"""
...
def get_transaction_by_id(self, id: int) -> str:
"""
Get transaction by ID.
:param int id: The transaction ID.
:return: A JSON string representing the transaction.
:rtype: str
"""
...
def get_transactions_by_id_range(self, start: int, end: int) -> str:
"""
Get transactions by ID range.
:param int start: The start transaction ID of the range.
:param int end: The end transaction ID of the range.
:return: A JSON string representing transactions within the ID range.
:rtype: str
"""
...
def get_transactions_by_block_number_range(self, start: int, end: int) -> str:
"""
Get transactions by block number range.
:param int start: The start block number of the range.
:param int end: The end block number of the range.
:return: A JSON string representing transactions within the block number range.
:rtype: str
"""
...
def get_block_by_number(self, number: int) -> str:
"""
Get block by number.
:param int number: The block number.
:return: A JSON string representing the block.
:rtype: str
"""
...
def get_uncles_by_block_number(self, number: int) -> str:
"""
Get uncles of a block by block number.
:param int number: The block number.
:return: A JSON string representing the uncles of the block.
:rtype: str
"""
...
def get_receipts_by_transaction_id(self, id: int) -> str:
"""
Get receipts by transaction ID.
:param int id: The transaction ID.
:return: A JSON string representing the receipts of the transaction.
:rtype: str
"""
...
def get_receipts_by_block_number(self, number: int) -> str:
"""
Get receipts by block number.
:param int number: The block number.
:return: A JSON string representing the receipts of transactions within the block.
:rtype: str
"""
...