@ecency/hive-tx 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +206 -0
  3. package/dist/browser/hive-tx.min.js +3 -0
  4. package/dist/browser/hive-tx.min.js.LICENSE.txt +5 -0
  5. package/dist/browser/hive-tx.min.js.map +1 -0
  6. package/dist/cjs/Transaction.d.ts +71 -0
  7. package/dist/cjs/Transaction.d.ts.map +1 -0
  8. package/dist/cjs/Transaction.js +199 -0
  9. package/dist/cjs/Transaction.js.map +1 -0
  10. package/dist/cjs/config.d.ts +37 -0
  11. package/dist/cjs/config.d.ts.map +1 -0
  12. package/dist/cjs/config.js +54 -0
  13. package/dist/cjs/config.js.map +1 -0
  14. package/dist/cjs/helpers/Asset.d.ts +21 -0
  15. package/dist/cjs/helpers/Asset.d.ts.map +1 -0
  16. package/dist/cjs/helpers/Asset.js +74 -0
  17. package/dist/cjs/helpers/Asset.js.map +1 -0
  18. package/dist/cjs/helpers/ByteBuffer.d.ts +75 -0
  19. package/dist/cjs/helpers/ByteBuffer.d.ts.map +1 -0
  20. package/dist/cjs/helpers/ByteBuffer.js +555 -0
  21. package/dist/cjs/helpers/ByteBuffer.js.map +1 -0
  22. package/dist/cjs/helpers/HexBuffer.d.ts +10 -0
  23. package/dist/cjs/helpers/HexBuffer.d.ts.map +1 -0
  24. package/dist/cjs/helpers/HexBuffer.js +33 -0
  25. package/dist/cjs/helpers/HexBuffer.js.map +1 -0
  26. package/dist/cjs/helpers/PrivateKey.d.ts +114 -0
  27. package/dist/cjs/helpers/PrivateKey.d.ts.map +1 -0
  28. package/dist/cjs/helpers/PrivateKey.js +212 -0
  29. package/dist/cjs/helpers/PrivateKey.js.map +1 -0
  30. package/dist/cjs/helpers/PublicKey.d.ts +47 -0
  31. package/dist/cjs/helpers/PublicKey.d.ts.map +1 -0
  32. package/dist/cjs/helpers/PublicKey.js +97 -0
  33. package/dist/cjs/helpers/PublicKey.js.map +1 -0
  34. package/dist/cjs/helpers/Signature.d.ts +38 -0
  35. package/dist/cjs/helpers/Signature.d.ts.map +1 -0
  36. package/dist/cjs/helpers/Signature.js +85 -0
  37. package/dist/cjs/helpers/Signature.js.map +1 -0
  38. package/dist/cjs/helpers/aes.d.ts +15 -0
  39. package/dist/cjs/helpers/aes.d.ts.map +1 -0
  40. package/dist/cjs/helpers/aes.js +87 -0
  41. package/dist/cjs/helpers/aes.js.map +1 -0
  42. package/dist/cjs/helpers/call.d.ts +119 -0
  43. package/dist/cjs/helpers/call.d.ts.map +1 -0
  44. package/dist/cjs/helpers/call.js +498 -0
  45. package/dist/cjs/helpers/call.js.map +1 -0
  46. package/dist/cjs/helpers/deserializer.d.ts +4 -0
  47. package/dist/cjs/helpers/deserializer.d.ts.map +1 -0
  48. package/dist/cjs/helpers/deserializer.js +58 -0
  49. package/dist/cjs/helpers/deserializer.js.map +1 -0
  50. package/dist/cjs/helpers/memo.d.ts +36 -0
  51. package/dist/cjs/helpers/memo.d.ts.map +1 -0
  52. package/dist/cjs/helpers/memo.js +167 -0
  53. package/dist/cjs/helpers/memo.js.map +1 -0
  54. package/dist/cjs/helpers/serializer.d.ts +14 -0
  55. package/dist/cjs/helpers/serializer.d.ts.map +1 -0
  56. package/dist/cjs/helpers/serializer.js +639 -0
  57. package/dist/cjs/helpers/serializer.js.map +1 -0
  58. package/dist/cjs/helpers/sleep.d.ts +2 -0
  59. package/dist/cjs/helpers/sleep.d.ts.map +1 -0
  60. package/dist/cjs/helpers/sleep.js +8 -0
  61. package/dist/cjs/helpers/sleep.js.map +1 -0
  62. package/dist/cjs/helpers/utils.d.ts +122 -0
  63. package/dist/cjs/helpers/utils.d.ts.map +1 -0
  64. package/dist/cjs/helpers/utils.js +202 -0
  65. package/dist/cjs/helpers/utils.js.map +1 -0
  66. package/dist/cjs/index.d.ts +10 -0
  67. package/dist/cjs/index.d.ts.map +1 -0
  68. package/dist/cjs/index.js +60 -0
  69. package/dist/cjs/index.js.map +1 -0
  70. package/dist/cjs/type_generators/types/balance.d.ts +1096 -0
  71. package/dist/cjs/type_generators/types/balance.d.ts.map +1 -0
  72. package/dist/cjs/type_generators/types/balance.js +3 -0
  73. package/dist/cjs/type_generators/types/balance.js.map +1 -0
  74. package/dist/cjs/type_generators/types/hafah.d.ts +2154 -0
  75. package/dist/cjs/type_generators/types/hafah.d.ts.map +1 -0
  76. package/dist/cjs/type_generators/types/hafah.js +3 -0
  77. package/dist/cjs/type_generators/types/hafah.js.map +1 -0
  78. package/dist/cjs/type_generators/types/hafbe.d.ts +2121 -0
  79. package/dist/cjs/type_generators/types/hafbe.d.ts.map +1 -0
  80. package/dist/cjs/type_generators/types/hafbe.js +3 -0
  81. package/dist/cjs/type_generators/types/hafbe.js.map +1 -0
  82. package/dist/cjs/type_generators/types/hafsql.d.ts +2439 -0
  83. package/dist/cjs/type_generators/types/hafsql.d.ts.map +1 -0
  84. package/dist/cjs/type_generators/types/hafsql.js +3 -0
  85. package/dist/cjs/type_generators/types/hafsql.js.map +1 -0
  86. package/dist/cjs/type_generators/types/hivemind.d.ts +202 -0
  87. package/dist/cjs/type_generators/types/hivemind.d.ts.map +1 -0
  88. package/dist/cjs/type_generators/types/hivemind.js +3 -0
  89. package/dist/cjs/type_generators/types/hivemind.js.map +1 -0
  90. package/dist/cjs/type_generators/types/hivesense.d.ts +448 -0
  91. package/dist/cjs/type_generators/types/hivesense.d.ts.map +1 -0
  92. package/dist/cjs/type_generators/types/hivesense.js +3 -0
  93. package/dist/cjs/type_generators/types/hivesense.js.map +1 -0
  94. package/dist/cjs/type_generators/types/nft-tracker.d.ts +348 -0
  95. package/dist/cjs/type_generators/types/nft-tracker.d.ts.map +1 -0
  96. package/dist/cjs/type_generators/types/nft-tracker.js +3 -0
  97. package/dist/cjs/type_generators/types/nft-tracker.js.map +1 -0
  98. package/dist/cjs/type_generators/types/reputation.d.ts +182 -0
  99. package/dist/cjs/type_generators/types/reputation.d.ts.map +1 -0
  100. package/dist/cjs/type_generators/types/reputation.js +3 -0
  101. package/dist/cjs/type_generators/types/reputation.js.map +1 -0
  102. package/dist/cjs/type_generators/types/status.d.ts +139 -0
  103. package/dist/cjs/type_generators/types/status.d.ts.map +1 -0
  104. package/dist/cjs/type_generators/types/status.js +3 -0
  105. package/dist/cjs/type_generators/types/status.js.map +1 -0
  106. package/dist/cjs/types.d.ts +415 -0
  107. package/dist/cjs/types.d.ts.map +1 -0
  108. package/dist/cjs/types.js +3 -0
  109. package/dist/cjs/types.js.map +1 -0
  110. package/dist/esm/Transaction.d.ts +71 -0
  111. package/dist/esm/Transaction.d.ts.map +1 -0
  112. package/dist/esm/Transaction.js +195 -0
  113. package/dist/esm/Transaction.js.map +1 -0
  114. package/dist/esm/config.d.ts +37 -0
  115. package/dist/esm/config.d.ts.map +1 -0
  116. package/dist/esm/config.js +51 -0
  117. package/dist/esm/config.js.map +1 -0
  118. package/dist/esm/helpers/Asset.d.ts +21 -0
  119. package/dist/esm/helpers/Asset.d.ts.map +1 -0
  120. package/dist/esm/helpers/Asset.js +70 -0
  121. package/dist/esm/helpers/Asset.js.map +1 -0
  122. package/dist/esm/helpers/ByteBuffer.d.ts +75 -0
  123. package/dist/esm/helpers/ByteBuffer.d.ts.map +1 -0
  124. package/dist/esm/helpers/ByteBuffer.js +551 -0
  125. package/dist/esm/helpers/ByteBuffer.js.map +1 -0
  126. package/dist/esm/helpers/HexBuffer.d.ts +10 -0
  127. package/dist/esm/helpers/HexBuffer.d.ts.map +1 -0
  128. package/dist/esm/helpers/HexBuffer.js +29 -0
  129. package/dist/esm/helpers/HexBuffer.js.map +1 -0
  130. package/dist/esm/helpers/PrivateKey.d.ts +114 -0
  131. package/dist/esm/helpers/PrivateKey.d.ts.map +1 -0
  132. package/dist/esm/helpers/PrivateKey.js +205 -0
  133. package/dist/esm/helpers/PrivateKey.js.map +1 -0
  134. package/dist/esm/helpers/PublicKey.d.ts +47 -0
  135. package/dist/esm/helpers/PublicKey.d.ts.map +1 -0
  136. package/dist/esm/helpers/PublicKey.js +90 -0
  137. package/dist/esm/helpers/PublicKey.js.map +1 -0
  138. package/dist/esm/helpers/Signature.d.ts +38 -0
  139. package/dist/esm/helpers/Signature.d.ts.map +1 -0
  140. package/dist/esm/helpers/Signature.js +81 -0
  141. package/dist/esm/helpers/Signature.js.map +1 -0
  142. package/dist/esm/helpers/aes.d.ts +15 -0
  143. package/dist/esm/helpers/aes.d.ts.map +1 -0
  144. package/dist/esm/helpers/aes.js +81 -0
  145. package/dist/esm/helpers/aes.js.map +1 -0
  146. package/dist/esm/helpers/call.d.ts +119 -0
  147. package/dist/esm/helpers/call.d.ts.map +1 -0
  148. package/dist/esm/helpers/call.js +490 -0
  149. package/dist/esm/helpers/call.js.map +1 -0
  150. package/dist/esm/helpers/deserializer.d.ts +4 -0
  151. package/dist/esm/helpers/deserializer.d.ts.map +1 -0
  152. package/dist/esm/helpers/deserializer.js +55 -0
  153. package/dist/esm/helpers/deserializer.js.map +1 -0
  154. package/dist/esm/helpers/memo.d.ts +36 -0
  155. package/dist/esm/helpers/memo.d.ts.map +1 -0
  156. package/dist/esm/helpers/memo.js +128 -0
  157. package/dist/esm/helpers/memo.js.map +1 -0
  158. package/dist/esm/helpers/serializer.d.ts +14 -0
  159. package/dist/esm/helpers/serializer.d.ts.map +1 -0
  160. package/dist/esm/helpers/serializer.js +636 -0
  161. package/dist/esm/helpers/serializer.js.map +1 -0
  162. package/dist/esm/helpers/sleep.d.ts +2 -0
  163. package/dist/esm/helpers/sleep.d.ts.map +1 -0
  164. package/dist/esm/helpers/sleep.js +4 -0
  165. package/dist/esm/helpers/sleep.js.map +1 -0
  166. package/dist/esm/helpers/utils.d.ts +122 -0
  167. package/dist/esm/helpers/utils.d.ts.map +1 -0
  168. package/dist/esm/helpers/utils.js +196 -0
  169. package/dist/esm/helpers/utils.js.map +1 -0
  170. package/dist/esm/index.d.ts +10 -0
  171. package/dist/esm/index.d.ts.map +1 -0
  172. package/dist/esm/index.js +11 -0
  173. package/dist/esm/index.js.map +1 -0
  174. package/dist/esm/type_generators/types/balance.d.ts +1096 -0
  175. package/dist/esm/type_generators/types/balance.d.ts.map +1 -0
  176. package/dist/esm/type_generators/types/balance.js +2 -0
  177. package/dist/esm/type_generators/types/balance.js.map +1 -0
  178. package/dist/esm/type_generators/types/hafah.d.ts +2154 -0
  179. package/dist/esm/type_generators/types/hafah.d.ts.map +1 -0
  180. package/dist/esm/type_generators/types/hafah.js +2 -0
  181. package/dist/esm/type_generators/types/hafah.js.map +1 -0
  182. package/dist/esm/type_generators/types/hafbe.d.ts +2121 -0
  183. package/dist/esm/type_generators/types/hafbe.d.ts.map +1 -0
  184. package/dist/esm/type_generators/types/hafbe.js +2 -0
  185. package/dist/esm/type_generators/types/hafbe.js.map +1 -0
  186. package/dist/esm/type_generators/types/hafsql.d.ts +2439 -0
  187. package/dist/esm/type_generators/types/hafsql.d.ts.map +1 -0
  188. package/dist/esm/type_generators/types/hafsql.js +2 -0
  189. package/dist/esm/type_generators/types/hafsql.js.map +1 -0
  190. package/dist/esm/type_generators/types/hivemind.d.ts +202 -0
  191. package/dist/esm/type_generators/types/hivemind.d.ts.map +1 -0
  192. package/dist/esm/type_generators/types/hivemind.js +2 -0
  193. package/dist/esm/type_generators/types/hivemind.js.map +1 -0
  194. package/dist/esm/type_generators/types/hivesense.d.ts +448 -0
  195. package/dist/esm/type_generators/types/hivesense.d.ts.map +1 -0
  196. package/dist/esm/type_generators/types/hivesense.js +2 -0
  197. package/dist/esm/type_generators/types/hivesense.js.map +1 -0
  198. package/dist/esm/type_generators/types/nft-tracker.d.ts +348 -0
  199. package/dist/esm/type_generators/types/nft-tracker.d.ts.map +1 -0
  200. package/dist/esm/type_generators/types/nft-tracker.js +2 -0
  201. package/dist/esm/type_generators/types/nft-tracker.js.map +1 -0
  202. package/dist/esm/type_generators/types/reputation.d.ts +182 -0
  203. package/dist/esm/type_generators/types/reputation.d.ts.map +1 -0
  204. package/dist/esm/type_generators/types/reputation.js +2 -0
  205. package/dist/esm/type_generators/types/reputation.js.map +1 -0
  206. package/dist/esm/type_generators/types/status.d.ts +139 -0
  207. package/dist/esm/type_generators/types/status.d.ts.map +1 -0
  208. package/dist/esm/type_generators/types/status.js +2 -0
  209. package/dist/esm/type_generators/types/status.js.map +1 -0
  210. package/dist/esm/types.d.ts +415 -0
  211. package/dist/esm/types.d.ts.map +1 -0
  212. package/dist/esm/types.js +2 -0
  213. package/dist/esm/types.js.map +1 -0
  214. package/package.json +83 -0
@@ -0,0 +1,2121 @@
1
+ export interface paths {
2
+ '/witnesses': {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /**
10
+ * List witnesses
11
+ * @description List all witnesses (both active and standby)
12
+ *
13
+ * SQL example
14
+ * * `SELECT * FROM hafbe_endpoints.get_witnesses(1,2);`
15
+ *
16
+ * REST call example
17
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/witnesses?page-size=2'`
18
+ */
19
+ get: operations['hafbe_endpoints.get_witnesses'];
20
+ put?: never;
21
+ post?: never;
22
+ delete?: never;
23
+ options?: never;
24
+ head?: never;
25
+ patch?: never;
26
+ trace?: never;
27
+ };
28
+ '/witnesses/{account-name}': {
29
+ parameters: {
30
+ query?: never;
31
+ header?: never;
32
+ path?: never;
33
+ cookie?: never;
34
+ };
35
+ /**
36
+ * Returns information about a witness.
37
+ * @description Returns information about a witness given their account name.
38
+ *
39
+ * SQL example
40
+ * * `SELECT * FROM hafbe_endpoints.get_witness('blocktrades');`
41
+ *
42
+ * REST call example
43
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/witnesses/blocktrades'`
44
+ */
45
+ get: operations['hafbe_endpoints.get_witness'];
46
+ put?: never;
47
+ post?: never;
48
+ delete?: never;
49
+ options?: never;
50
+ head?: never;
51
+ patch?: never;
52
+ trace?: never;
53
+ };
54
+ '/witnesses/{account-name}/voters': {
55
+ parameters: {
56
+ query?: never;
57
+ header?: never;
58
+ path?: never;
59
+ cookie?: never;
60
+ };
61
+ /**
62
+ * Get information about the voters for a witness
63
+ * @description Get information about the voters voting for a given witness
64
+ *
65
+ * SQL example
66
+ * * `SELECT * FROM hafbe_endpoints.get_witness_voters('blocktrades',1,2);`
67
+ *
68
+ * REST call example
69
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/witnesses/blocktrades/voters?page-size=2'`
70
+ */
71
+ get: operations['hafbe_endpoints.get_witness_voters'];
72
+ put?: never;
73
+ post?: never;
74
+ delete?: never;
75
+ options?: never;
76
+ head?: never;
77
+ patch?: never;
78
+ trace?: never;
79
+ };
80
+ '/witnesses/{account-name}/voters/count': {
81
+ parameters: {
82
+ query?: never;
83
+ header?: never;
84
+ path?: never;
85
+ cookie?: never;
86
+ };
87
+ /**
88
+ * Get the number of voters for a witness
89
+ * @description Get the number of voters for a witness
90
+ *
91
+ * SQL example
92
+ * * `SELECT * FROM hafbe_endpoints.get_witness_voters_num('blocktrades');`
93
+ *
94
+ * REST call example
95
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/witnesses/blocktrades/voters/count'`
96
+ */
97
+ get: operations['hafbe_endpoints.get_witness_voters_num'];
98
+ put?: never;
99
+ post?: never;
100
+ delete?: never;
101
+ options?: never;
102
+ head?: never;
103
+ patch?: never;
104
+ trace?: never;
105
+ };
106
+ '/witnesses/{account-name}/votes/history': {
107
+ parameters: {
108
+ query?: never;
109
+ header?: never;
110
+ path?: never;
111
+ cookie?: never;
112
+ };
113
+ /**
114
+ * Get the history of votes for this witness.
115
+ * @description Get information about each vote cast for this witness
116
+ *
117
+ * SQL example
118
+ * * `SELECT * FROM hafbe_endpoints.get_witness_votes_history('blocktrades');`
119
+ *
120
+ * REST call example
121
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/witnesses/blocktrades/votes/history?page-size=2'`
122
+ */
123
+ get: operations['hafbe_endpoints.get_witness_votes_history'];
124
+ put?: never;
125
+ post?: never;
126
+ delete?: never;
127
+ options?: never;
128
+ head?: never;
129
+ patch?: never;
130
+ trace?: never;
131
+ };
132
+ '/accounts/{account-name}': {
133
+ parameters: {
134
+ query?: never;
135
+ header?: never;
136
+ path?: never;
137
+ cookie?: never;
138
+ };
139
+ /**
140
+ * Get information about an account including Hive token balances.
141
+ * @description Get account's balances and parameters
142
+ *
143
+ * SQL example
144
+ * * `SELECT * FROM hafbe_endpoints.get_account('blocktrades');`
145
+ *
146
+ * REST call example
147
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/accounts/blocktrades'`
148
+ */
149
+ get: operations['hafbe_endpoints.get_account'];
150
+ put?: never;
151
+ post?: never;
152
+ delete?: never;
153
+ options?: never;
154
+ head?: never;
155
+ patch?: never;
156
+ trace?: never;
157
+ };
158
+ '/accounts/{account-name}/authority': {
159
+ parameters: {
160
+ query?: never;
161
+ header?: never;
162
+ path?: never;
163
+ cookie?: never;
164
+ };
165
+ /**
166
+ * Get account's owner, active, posting, memo and witness signing authorities
167
+ * @description Get information about account's owner, active, posting, memo and witness signing authorities.
168
+ *
169
+ * SQL example
170
+ * * `SELECT * FROM hafbe_endpoints.get_account_authority('blocktrades');`
171
+ *
172
+ * REST call example
173
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/accounts/blocktrades/authority'`
174
+ */
175
+ get: operations['hafbe_endpoints.get_account_authority'];
176
+ put?: never;
177
+ post?: never;
178
+ delete?: never;
179
+ options?: never;
180
+ head?: never;
181
+ patch?: never;
182
+ trace?: never;
183
+ };
184
+ '/accounts/{account-name}/proxy-power': {
185
+ parameters: {
186
+ query?: never;
187
+ header?: never;
188
+ path?: never;
189
+ cookie?: never;
190
+ };
191
+ /**
192
+ * Get delegators and total vested power they contribute via witness-proxy
193
+ * @description Lists every account that has set **{account-name}** as its witness proxy,
194
+ * the date the proxy was set, and the total vested power contributed
195
+ * (own vesting_shares plus sum of proxied vesting shares levels 1–4 and decreased by delayed vests).
196
+ *
197
+ * SQL example:
198
+ * * `SELECT * FROM hafbe_endpoints.get_account_proxies_power('gtg', 1);`
199
+ *
200
+ * REST call example:
201
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/accounts/gtg/proxy-power?page=1'`
202
+ */
203
+ get: operations['hafbe_endpoints.get_account_proxies_power'];
204
+ put?: never;
205
+ post?: never;
206
+ delete?: never;
207
+ options?: never;
208
+ head?: never;
209
+ patch?: never;
210
+ trace?: never;
211
+ };
212
+ '/accounts/{account-name}/comment-permlinks': {
213
+ parameters: {
214
+ query?: never;
215
+ header?: never;
216
+ path?: never;
217
+ cookie?: never;
218
+ };
219
+ /**
220
+ * Get comment permlinks for an account.
221
+ * @description List comment permlinks of root posts or comments for an account.
222
+ *
223
+ * SQL example
224
+ * * `SELECT * FROM hafbe_endpoints.get_comment_permlinks('blocktrades','post',1,2,'4000000','4800000');`
225
+ *
226
+ * REST call example
227
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/accounts/blocktrades/comment-permlinks?comment-type=post&page-size=2&from-block=4000000&to-block=4800000'`
228
+ */
229
+ get: operations['hafbe_endpoints.get_comment_permlinks'];
230
+ put?: never;
231
+ post?: never;
232
+ delete?: never;
233
+ options?: never;
234
+ head?: never;
235
+ patch?: never;
236
+ trace?: never;
237
+ };
238
+ '/accounts/{account-name}/operations/comments/{permlink}': {
239
+ parameters: {
240
+ query?: never;
241
+ header?: never;
242
+ path?: never;
243
+ cookie?: never;
244
+ };
245
+ /**
246
+ * Get comment-related operations for an author-permlink.
247
+ * @description List operations related to account. Optionally filtered by permlink,
248
+ * time/blockrange, and specific comment-related operations.
249
+ *
250
+ * SQL example
251
+ * * `SELECT * FROM hafbe_endpoints.get_comment_operations('blocktrades','blocktrades-witness-report-for-3rd-week-of-august','0',1,3);`
252
+ *
253
+ * REST call example
254
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/accounts/blocktrades/operations/comments/blocktrades-witness-report-for-3rd-week-of-august?page-size=3&operation-types=0'`
255
+ */
256
+ get: operations['hafbe_endpoints.get_comment_operations'];
257
+ put?: never;
258
+ post?: never;
259
+ delete?: never;
260
+ options?: never;
261
+ head?: never;
262
+ patch?: never;
263
+ trace?: never;
264
+ };
265
+ '/block-search': {
266
+ parameters: {
267
+ query?: never;
268
+ header?: never;
269
+ path?: never;
270
+ cookie?: never;
271
+ };
272
+ /**
273
+ * List block stats that match operation type filter, account name, and time/block range.
274
+ * @description List the block stats that match given operation type filter,
275
+ * account name and time/block range in specified order
276
+ *
277
+ * SQL example
278
+ * * `SELECT * FROM hafbe_endpoints.get_block_by_op(NULL,NULL,NULL,5);`
279
+ *
280
+ * REST call example
281
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/block-search?page-size=5'`
282
+ */
283
+ get: operations['hafbe_endpoints.get_block_by_op'];
284
+ put?: never;
285
+ post?: never;
286
+ delete?: never;
287
+ options?: never;
288
+ head?: never;
289
+ patch?: never;
290
+ trace?: never;
291
+ };
292
+ '/transaction-statistics': {
293
+ parameters: {
294
+ query?: never;
295
+ header?: never;
296
+ path?: never;
297
+ cookie?: never;
298
+ };
299
+ /**
300
+ * Aggregated transaction statistics
301
+ * @description History of amount of transactions per day, month or year.
302
+ *
303
+ * SQL example
304
+ * * `SELECT * FROM hafbe_endpoints.get_transaction_statistics();`
305
+ *
306
+ * REST call example
307
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/transaction-statistics'`
308
+ */
309
+ get: operations['hafbe_endpoints.get_transaction_statistics'];
310
+ put?: never;
311
+ post?: never;
312
+ delete?: never;
313
+ options?: never;
314
+ head?: never;
315
+ patch?: never;
316
+ trace?: never;
317
+ };
318
+ '/version': {
319
+ parameters: {
320
+ query?: never;
321
+ header?: never;
322
+ path?: never;
323
+ cookie?: never;
324
+ };
325
+ /**
326
+ * Get Haf_block_explorer's version
327
+ * @description Get haf_block_explorer's last commit hash (versions set by by hash value).
328
+ *
329
+ * SQL example
330
+ * * `SELECT * FROM hafbe_endpoints.get_hafbe_version();`
331
+ *
332
+ * REST call example
333
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/version'`
334
+ */
335
+ get: operations['hafbe_endpoints.get_hafbe_version'];
336
+ put?: never;
337
+ post?: never;
338
+ delete?: never;
339
+ options?: never;
340
+ head?: never;
341
+ patch?: never;
342
+ trace?: never;
343
+ };
344
+ '/last-synced-block': {
345
+ parameters: {
346
+ query?: never;
347
+ header?: never;
348
+ path?: never;
349
+ cookie?: never;
350
+ };
351
+ /**
352
+ * Get last block number synced by haf_block_explorer
353
+ * @description Get the block number of the last block synced by haf_block_explorer.
354
+ *
355
+ * SQL example
356
+ * * `SELECT * FROM hafbe_endpoints.get_hafbe_last_synced_block();`
357
+ *
358
+ * REST call example
359
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/last-synced-block'`
360
+ */
361
+ get: operations['hafbe_endpoints.get_hafbe_last_synced_block'];
362
+ put?: never;
363
+ post?: never;
364
+ delete?: never;
365
+ options?: never;
366
+ head?: never;
367
+ patch?: never;
368
+ trace?: never;
369
+ };
370
+ '/input-type/{input-value}': {
371
+ parameters: {
372
+ query?: never;
373
+ header?: never;
374
+ path?: never;
375
+ cookie?: never;
376
+ };
377
+ /**
378
+ * Determines object type of input-value.
379
+ * @description Determines whether the entered value is a block,
380
+ * block hash, transaction hash, or account name.
381
+ * This method is very specific to block explorer UIs.
382
+ *
383
+ * SQL example
384
+ * * `SELECT * FROM hafbe_endpoints.get_input_type('blocktrades');`
385
+ *
386
+ * REST call example
387
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/input-type/blocktrades'`
388
+ */
389
+ get: operations['hafbe_endpoints.get_input_type'];
390
+ put?: never;
391
+ post?: never;
392
+ delete?: never;
393
+ options?: never;
394
+ head?: never;
395
+ patch?: never;
396
+ trace?: never;
397
+ };
398
+ '/operation-type-counts': {
399
+ parameters: {
400
+ query?: never;
401
+ header?: never;
402
+ path?: never;
403
+ cookie?: never;
404
+ };
405
+ /**
406
+ * Returns histogram of operation types in blocks.
407
+ * @description Lists the counts of operations in result-limit blocks along with their creators.
408
+ * If block-num is not specified, the result includes the counts of operations in the most recent blocks.
409
+ *
410
+ *
411
+ * SQL example
412
+ * * `SELECT * FROM hafbe_endpoints.get_latest_blocks(1);`
413
+ *
414
+ * REST call example
415
+ * * `GET 'https://rpc.mahdiyari.info/hafbe-api/operation-type-counts?result-limit=1'`
416
+ */
417
+ get: operations['hafbe_endpoints.get_latest_blocks'];
418
+ put?: never;
419
+ post?: never;
420
+ delete?: never;
421
+ options?: never;
422
+ head?: never;
423
+ patch?: never;
424
+ trace?: never;
425
+ };
426
+ }
427
+ export type webhooks = Record<string, never>;
428
+ export interface components {
429
+ schemas: {
430
+ /** @enum {string} */
431
+ 'hafbe_types.comment_type': 'post' | 'comment' | 'all';
432
+ /** @enum {string} */
433
+ 'hafbe_types.sort_direction': 'asc' | 'desc';
434
+ /** @enum {string} */
435
+ 'hafbe_types.order_by_votes': 'voter' | 'vests' | 'account_vests' | 'proxied_vests' | 'timestamp';
436
+ /** @enum {string} */
437
+ 'hafbe_types.order_by_witness': 'witness' | 'rank' | 'url' | 'votes' | 'votes_daily_change' | 'voters_num' | 'voters_num_daily_change' | 'price_feed' | 'bias' | 'block_size' | 'signing_key' | 'version' | 'feed_updated_at';
438
+ 'hafbe_types.witness': {
439
+ /** @description witness's account name */
440
+ witness_name?: string;
441
+ /** @description the current rank of the witness according to the votes cast on the blockchain. The top 20 witnesses (ranks 1 - 20) will produce blocks each round. */
442
+ rank?: number;
443
+ /** @description the witness's home page */
444
+ url?: string;
445
+ /** @description the total weight of votes cast in favor of this witness, expressed in VESTS */
446
+ vests?: string;
447
+ /** @description the increase or decrease in votes for this witness over the last 24 hours, expressed in vests */
448
+ votes_daily_change?: string;
449
+ /** @description the number of voters for this witness */
450
+ voters_num?: number;
451
+ /** @description the increase or decrease in the number of voters voting for this witness over the last 24 hours */
452
+ voters_num_daily_change?: number;
453
+ /** @description the current price feed provided by the witness in HIVE/HBD */
454
+ price_feed?: number;
455
+ /**
456
+ * @description When setting the price feed, you specify the base and quote. Typically, if market conditions are stable and, for example, HBD is trading at 0.25 USD on exchanges, a witness would set:
457
+ * base: 0.250 HBD
458
+ * quote: 1.000 HIVE
459
+ * (This indicates that one HIVE costs 0.25 HBD.) However, if the peg is not maintained and HBD does not equal 1 USD (either higher or lower), the witness can adjust the feed accordingly. For instance, if HBD is trading at only 0.90 USD on exchanges, the witness might set:
460
+ * base: 0.250 HBD
461
+ * quote: 1.100 HIVE
462
+ * In this case, the bias is 10%
463
+ */
464
+ bias?: number;
465
+ /**
466
+ * Format: date-time
467
+ * @description timestamp when feed was updated
468
+ */
469
+ feed_updated_at?: string;
470
+ /** @description the maximum block size the witness is currently voting for, in bytes */
471
+ block_size?: number;
472
+ /** @description the key used to verify blocks signed by this witness */
473
+ signing_key?: string;
474
+ /** @description the version of hived the witness is running */
475
+ version?: string;
476
+ /** @description the number of blocks the witness should have generated but didn't (over the entire lifetime of the blockchain) */
477
+ missed_blocks?: number;
478
+ /** @description the interest rate the witness is voting for */
479
+ hbd_interest_rate?: number;
480
+ /** @description the last block number created by the witness */
481
+ last_confirmed_block_num?: number;
482
+ /** @description the cost of creating an account. */
483
+ account_creation_fee?: number;
484
+ };
485
+ 'hafbe_types.witnesses_return': {
486
+ /** @description Total number of witnesses */
487
+ total_witnesses?: number;
488
+ /** @description Total number of pages */
489
+ total_pages?: number;
490
+ /** @description List of witness parameters */
491
+ witnesses?: components['schemas']['hafbe_types.witness'][];
492
+ };
493
+ 'hafbe_types.witness_voter': {
494
+ /** @description account name of the voter */
495
+ voter_name?: string;
496
+ /** @description number of vests this voter is directly voting with */
497
+ vests?: string;
498
+ /** @description number of vests in the voter's account. if some vests are delegated, they will not be counted in voting */
499
+ account_vests?: string;
500
+ /** @description the number of vests proxied to this account */
501
+ proxied_vests?: string;
502
+ /**
503
+ * Format: date-time
504
+ * @description the time this account last changed its voting power
505
+ */
506
+ timestamp?: string;
507
+ };
508
+ 'hafbe_types.witness_voter_history': {
509
+ /** @description Total number of votes */
510
+ total_votes?: number;
511
+ /** @description Total number of pages */
512
+ total_pages?: number;
513
+ /** @description List of votes results */
514
+ voters?: components['schemas']['hafbe_types.witness_voter'][];
515
+ };
516
+ 'hafbe_types.witness_votes_history_record': {
517
+ /** @description account name of the voter */
518
+ voter_name?: string;
519
+ /** @description whether the voter approved or rejected the witness */
520
+ approve?: boolean;
521
+ /** @description number of vests this voter is directly voting with */
522
+ vests?: string;
523
+ /** @description number of vests in the voter's account. if some vests are delegated, they will not be counted in voting */
524
+ account_vests?: string;
525
+ /** @description the number of vests proxied to this account */
526
+ proxied_vests?: string;
527
+ /**
528
+ * Format: date-time
529
+ * @description the time of the vote change
530
+ */
531
+ timestamp?: string;
532
+ };
533
+ 'hafbe_types.witness_votes_history': {
534
+ /** @description Total number of votes */
535
+ total_votes?: number;
536
+ /** @description Total number of pages */
537
+ total_pages?: number;
538
+ /** @description List of witness votes */
539
+ votes_history?: components['schemas']['hafbe_types.witness_votes_history_record'][];
540
+ };
541
+ 'hafbe_types.account': {
542
+ /** @description account's identification number */
543
+ id?: number;
544
+ /** @description account's name */
545
+ name?: string;
546
+ /** @description information whether the account can vote or not */
547
+ can_vote?: boolean;
548
+ /** @description information whether made a prove of work */
549
+ mined?: boolean;
550
+ /** @description an account to which the account has designated as its proxy */
551
+ proxy?: string;
552
+ /** @description an account to which the account has designated as its recovery account */
553
+ recovery_account?: string;
554
+ /**
555
+ * Format: date-time
556
+ * @description time when the last account recovery was performed
557
+ */
558
+ last_account_recovery?: string;
559
+ /**
560
+ * Format: date-time
561
+ * @description date of account creation
562
+ */
563
+ created?: string;
564
+ /** @description numerical rating of the user based on upvotes and downvotes on user's posts */
565
+ reputation?: number;
566
+ /** @description pool of prepaid accounts available for user allocation. These accounts are pre-registered and can be claimed by users as needed */
567
+ pending_claimed_accounts?: number;
568
+ /** @description parameter encompasses personalized profile information */
569
+ json_metadata?: string;
570
+ /** @description parameter encompasses personalized profile information */
571
+ posting_json_metadata?: string;
572
+ /** @description url to profile image */
573
+ profile_image?: string;
574
+ /** @description number of HIVE backed dollars the account has */
575
+ hbd_balance?: number;
576
+ /** @description account's HIVE balance */
577
+ balance?: number;
578
+ /** @description account's VEST balance */
579
+ vesting_shares?: string;
580
+ /** @description the VEST balance, presented in HIVE, is calculated based on the current HIVE price */
581
+ vesting_balance?: number;
582
+ /** @description saving balance of HIVE backed dollars */
583
+ hbd_saving_balance?: number;
584
+ /** @description HIVE saving balance */
585
+ savings_balance?: number;
586
+ /** @description number representing how many payouts are pending from user's saving balance */
587
+ savings_withdraw_requests?: number;
588
+ /** @description not yet claimed HIVE backed dollars stored in hbd reward balance */
589
+ reward_hbd_balance?: number;
590
+ /** @description not yet claimed HIVE stored in hive reward balance */
591
+ reward_hive_balance?: number;
592
+ /** @description not yet claimed VESTS stored in vest reward balance */
593
+ reward_vesting_balance?: string;
594
+ /** @description the reward vesting balance, denominated in HIVE, is determined by the prevailing HIVE price at the time of reward reception */
595
+ reward_vesting_hive?: number;
596
+ /** @description rewards obtained by posting and commenting expressed in VEST */
597
+ posting_rewards?: string;
598
+ /** @description curator's reward expressed in VEST */
599
+ curation_rewards?: string;
600
+ /** @description VESTS delegated to another user, account's power is lowered by delegated VESTS */
601
+ delegated_vesting_shares?: string;
602
+ /** @description VESTS received from another user, account's power is increased by received VESTS */
603
+ received_vesting_shares?: string;
604
+ /** @description recursive proxy of VESTS */
605
+ proxied_vsf_votes?: string[];
606
+ /** @description the total VESTS already withdrawn from active withdrawals */
607
+ withdrawn?: string;
608
+ /** @description received until the withdrawal is complete, with each installment amounting to 1/13 of the withdrawn total */
609
+ vesting_withdraw_rate?: string;
610
+ /** @description the remaining total VESTS needed to complete withdrawals */
611
+ to_withdraw?: string;
612
+ /** @description list of account receiving the part of a withdrawal */
613
+ withdraw_routes?: number;
614
+ /** @description blocked VESTS by a withdrawal */
615
+ delayed_vests?: string;
616
+ /** @description the roster of witnesses voted by the account */
617
+ witness_votes?: string[];
618
+ /** @description count of witness_votes */
619
+ witnesses_voted_for?: number;
620
+ /** @description the number of operations performed by the account */
621
+ ops_count?: number;
622
+ /** @description whether account is a witness */
623
+ is_witness?: boolean;
624
+ };
625
+ 'hafbe_types.auth_with_weight': (string | number)[];
626
+ 'hafbe_types.authority_type': {
627
+ key_auths?: components['schemas']['hafbe_types.auth_with_weight'][];
628
+ account_auths?: components['schemas']['hafbe_types.auth_with_weight'][];
629
+ weight_threshold?: number;
630
+ };
631
+ 'hafbe_types.account_authority': {
632
+ /** @description the most powerful key because it can change any key of an account, including the owner key. Ideally it is meant to be stored offline, and only used to recover a compromised account */
633
+ owner?: components['schemas']['hafbe_types.authority_type'];
634
+ /** @description key meant for more sensitive tasks such as transferring funds, power up/down transactions, converting Hive Dollars, voting for witnesses, updating profile details and avatar, and placing a market order */
635
+ active?: components['schemas']['hafbe_types.authority_type'];
636
+ /** @description key allows accounts to post, comment, edit, vote, reblog and follow or mute other accounts */
637
+ posting?: components['schemas']['hafbe_types.authority_type'];
638
+ /** @description default key to be used for memo encryption */
639
+ memo?: string;
640
+ /** @description key used by a witness to sign blocks */
641
+ witness_signing?: string;
642
+ };
643
+ 'hafbe_types.proxy_power': {
644
+ account?: string;
645
+ /** Format: date-time */
646
+ proxy_date?: string;
647
+ /** @description Own vesting shares plus sum of proxied vesting shares (levels 1–4) decreased by delayed vests */
648
+ proxied_vests?: string;
649
+ };
650
+ 'hafbe_types.block_range': {
651
+ from?: number;
652
+ to?: number;
653
+ };
654
+ 'hafbe_types.block_operations': {
655
+ /** @description operation type identifier */
656
+ op_type_id?: number;
657
+ /** @description amount of operations in block */
658
+ op_count?: number;
659
+ };
660
+ 'hafbe_types.blocksearch': {
661
+ /** @description block number */
662
+ block_num?: number;
663
+ /**
664
+ * Format: date-time
665
+ * @description creation date
666
+ */
667
+ created_at?: string;
668
+ /** @description account name of block's producer */
669
+ producer_account?: string;
670
+ /** @description operation type identifier */
671
+ producer_reward?: string;
672
+ /** @description count of transactions in block */
673
+ trx_count?: number;
674
+ /** @description block hash in a blockchain is a unique, fixed-length string generated by applying a cryptographic hash function to a block's contents */
675
+ hash?: string;
676
+ /** @description hash of a previous block */
677
+ prev?: string;
678
+ /** @description List of block_operation */
679
+ operations?: components['schemas']['hafbe_types.block_operations'][];
680
+ };
681
+ 'hafbe_types.block_history': {
682
+ /** @description Total number of blocks */
683
+ total_blocks?: number;
684
+ /** @description Total number of pages */
685
+ total_pages?: number;
686
+ /** @description Range of blocks that contains the returned pages */
687
+ block_range?: components['schemas']['hafbe_types.block_range'];
688
+ /** @description List of block results */
689
+ blocks_result?: components['schemas']['hafbe_types.blocksearch'][];
690
+ };
691
+ 'hafbe_types.permlink': {
692
+ /** @description unique post identifier containing post's title and generated number */
693
+ permlink?: string;
694
+ /** @description operation block number */
695
+ block?: number;
696
+ /** @description hash of the transaction */
697
+ trx_id?: string;
698
+ /**
699
+ * Format: date-time
700
+ * @description creation date
701
+ */
702
+ timestamp?: string;
703
+ /** @description unique operation identifier with an encoded block number and operation type id */
704
+ operation_id?: string;
705
+ };
706
+ 'hafbe_types.permlink_history': {
707
+ /** @description Total number of permlinks */
708
+ total_permlinks?: number;
709
+ /** @description Total number of pages */
710
+ total_pages?: number;
711
+ /** @description Range of blocks that contains the returned pages */
712
+ block_range?: components['schemas']['hafbe_types.block_range'];
713
+ /** @description List of permlinks */
714
+ permlinks_result?: components['schemas']['hafbe_types.permlink'][];
715
+ };
716
+ 'hafbe_types.latest_blocks': {
717
+ /** @description block number */
718
+ block_num?: number;
719
+ /** @description witness that created the block */
720
+ witness?: string;
721
+ /** @description List of block_operation */
722
+ operations?: components['schemas']['hafbe_types.block_operations'][];
723
+ };
724
+ 'hafbe_types.array_of_latest_blocks': components['schemas']['hafbe_types.latest_blocks'][];
725
+ 'hafbe_types.input_type_return': {
726
+ /** @description operation type id */
727
+ input_type?: string;
728
+ /** @description number of operations in the block */
729
+ input_value?: string[];
730
+ };
731
+ 'hafbe_types.operation_body': {
732
+ type?: string;
733
+ value?: Record<string, never>;
734
+ };
735
+ 'hafbe_types.operation': {
736
+ /** @description operation body */
737
+ op?: components['schemas']['unknown_operation'];
738
+ /** @description operation block number */
739
+ block?: number;
740
+ /** @description hash of the transaction */
741
+ trx_id?: string;
742
+ /** @description operation identifier that indicates its sequence number in transaction */
743
+ op_pos?: number;
744
+ /** @description operation type identifier */
745
+ op_type_id?: number;
746
+ /**
747
+ * Format: date-time
748
+ * @description the time operation was included in the blockchain
749
+ */
750
+ timestamp?: string;
751
+ /** @description true if is a virtual operation */
752
+ virtual_op?: boolean;
753
+ /** @description unique operation identifier with an encoded block number and operation type id */
754
+ operation_id?: string;
755
+ /** @description transaction identifier that indicates its sequence number in block */
756
+ trx_in_block?: number;
757
+ };
758
+ 'hafbe_types.operation_history': {
759
+ /** @description Total number of operations */
760
+ total_operations?: number;
761
+ /** @description Total number of pages */
762
+ total_pages?: number;
763
+ /** @description List of operation results */
764
+ operations_result?: components['schemas']['hafbe_types.operation'][];
765
+ };
766
+ /** @enum {string} */
767
+ 'hafbe_types.granularity': 'daily' | 'monthly' | 'yearly';
768
+ 'hafbe_types.transaction_stats': {
769
+ /**
770
+ * Format: date-time
771
+ * @description the time transaction was included in the blockchain
772
+ */
773
+ date?: string;
774
+ /** @description amount of transactions */
775
+ trx_count?: number;
776
+ /** @description avarage amount of transactions in block */
777
+ avg_trx?: number;
778
+ /** @description minimal amount of transactions in block */
779
+ min_trx?: number;
780
+ /** @description maximum amount of transactions in block */
781
+ max_trx?: number;
782
+ /** @description last block number in time range */
783
+ last_block_num?: number;
784
+ };
785
+ 'hafbe_types.array_of_transaction_stats': components['schemas']['hafbe_types.transaction_stats'][];
786
+ 'hafbe_types.array_of_proxy_power': components['schemas']['hafbe_types.proxy_power'][];
787
+ unknown_operation: Record<string, never>;
788
+ };
789
+ responses: never;
790
+ parameters: never;
791
+ requestBodies: never;
792
+ headers: never;
793
+ pathItems: never;
794
+ }
795
+ export type $defs = Record<string, never>;
796
+ export interface operations {
797
+ 'hafbe_endpoints.get_witnesses': {
798
+ parameters: {
799
+ query?: {
800
+ /** @description Return page on `page` number, defaults to `1` */
801
+ page?: number;
802
+ /** @description Return max `page-size` operations per page, defaults to `100` */
803
+ 'page-size'?: number;
804
+ /**
805
+ * @description Sort key:
806
+ *
807
+ * * `witness` - the witness name
808
+ *
809
+ * * `rank` - their current rank (highest weight of votes => lowest rank)
810
+ *
811
+ * * `url` - the witness url
812
+ *
813
+ * * `votes` - total number of votes
814
+ *
815
+ * * `votes_daily_change` - change in `votes` in the last 24 hours
816
+ *
817
+ * * `voters_num` - total number of voters approving the witness
818
+ *
819
+ * * `voters_num_daily_change` - change in `voters_num` in the last 24 hours
820
+ *
821
+ * * `price_feed` - their current published value for the HIVE/HBD price feed
822
+ *
823
+ * * `feed_updated_at` - feed update timestamp
824
+ *
825
+ * * `bias` - if HBD is trading at only 0.90 USD on exchanges, the witness might set:
826
+ * base: 0.250 HBD
827
+ * quote: 1.100 HIVE
828
+ * In this case, the bias is 10%
829
+ *
830
+ * * `block_size` - the block size they are voting for
831
+ *
832
+ * * `signing_key` - the witness' block-signing public key
833
+ *
834
+ * * `version` - the version of hived the witness is running
835
+ */
836
+ sort?: components['schemas']['hafbe_types.order_by_witness'];
837
+ /**
838
+ * @description Sort order:
839
+ *
840
+ * * `asc` - Ascending, from A to Z or smallest to largest
841
+ *
842
+ * * `desc` - Descending, from Z to A or largest to smallest
843
+ */
844
+ direction?: components['schemas']['hafbe_types.sort_direction'];
845
+ };
846
+ header?: never;
847
+ path?: never;
848
+ cookie?: never;
849
+ };
850
+ requestBody?: never;
851
+ responses: {
852
+ /**
853
+ * @description The list of witnesses
854
+ *
855
+ * * Returns `hafbe_types.witnesses_return`
856
+ */
857
+ 200: {
858
+ headers: {
859
+ [name: string]: unknown;
860
+ };
861
+ content: {
862
+ /**
863
+ * @example {
864
+ * "total_witnesses": 731,
865
+ * "total_pages": 366,
866
+ * "witnesses": [
867
+ * {
868
+ * "witness_name": "roadscape",
869
+ * "rank": 1,
870
+ * "url": "https://steemit.com/witness-category/@roadscape/witness-roadscape",
871
+ * "vests": "94172201023355097",
872
+ * "votes_daily_change": "0",
873
+ * "voters_num": 306,
874
+ * "voters_num_daily_change": 0,
875
+ * "price_feed": 0.539,
876
+ * "bias": 0,
877
+ * "feed_updated_at": "2016-09-15T16:07:42",
878
+ * "block_size": 65536,
879
+ * "signing_key": "STM5AS7ZS33pzTf1xbTi8ZUaUeVAZBsD7QXGrA51HvKmvUDwVbFP9",
880
+ * "version": "0.13.0",
881
+ * "missed_blocks": 129,
882
+ * "hbd_interest_rate": 1000,
883
+ * "last_confirmed_block_num": 4999986,
884
+ * "account_creation_fee": 2000
885
+ * },
886
+ * {
887
+ * "witness_name": "arhag",
888
+ * "rank": 2,
889
+ * "url": "https://steemit.com/witness-category/@arhag/witness-arhag",
890
+ * "vests": "91835048921097725",
891
+ * "votes_daily_change": "0",
892
+ * "voters_num": 348,
893
+ * "voters_num_daily_change": 0,
894
+ * "price_feed": 0.536,
895
+ * "bias": 0,
896
+ * "feed_updated_at": "2016-09-15T19:31:18",
897
+ * "block_size": 65536,
898
+ * "signing_key": "STM8kvk4JH2m6ZyHBGNor4qk2Zwdi2MJAjMYUpfqiicCKu7HqAeZh",
899
+ * "version": "0.13.0",
900
+ * "missed_blocks": 61,
901
+ * "hbd_interest_rate": 1000,
902
+ * "last_confirmed_block_num": 4999993,
903
+ * "account_creation_fee": 7000
904
+ * }
905
+ * ]
906
+ * }
907
+ */
908
+ 'application/json': components['schemas']['hafbe_types.witnesses_return'];
909
+ };
910
+ };
911
+ };
912
+ };
913
+ 'hafbe_endpoints.get_witness': {
914
+ parameters: {
915
+ query?: never;
916
+ header?: never;
917
+ path: {
918
+ /** @description witness account name */
919
+ 'account-name': string;
920
+ };
921
+ cookie?: never;
922
+ };
923
+ requestBody?: never;
924
+ responses: {
925
+ /**
926
+ * @description Various witness statistics
927
+ *
928
+ * * Returns `hafbe_types.witness_return`
929
+ */
930
+ 200: {
931
+ headers: {
932
+ [name: string]: unknown;
933
+ };
934
+ content: {
935
+ /**
936
+ * @example {
937
+ * "witness_name": "blocktrades",
938
+ * "rank": 8,
939
+ * "url": "https://blocktrades.us",
940
+ * "vests": "82373419958692803",
941
+ * "votes_daily_change": "0",
942
+ * "voters_num": 263,
943
+ * "voters_num_daily_change": 0,
944
+ * "price_feed": 0.545,
945
+ * "bias": 0,
946
+ * "feed_updated_at": "2016-09-15T16:02:21",
947
+ * "block_size": 65536,
948
+ * "signing_key": "STM4vmVc3rErkueyWNddyGfmjmLs3Rr4i7YJi8Z7gFeWhakXM4nEz",
949
+ * "version": "0.13.0",
950
+ * "missed_blocks": 935,
951
+ * "hbd_interest_rate": 1000,
952
+ * "last_confirmed_block_num": 4999992,
953
+ * "account_creation_fee": 9000
954
+ * }
955
+ */
956
+ 'application/json': components['schemas']['hafbe_types.witness'];
957
+ };
958
+ };
959
+ /** @description No such witness */
960
+ 404: {
961
+ headers: {
962
+ [name: string]: unknown;
963
+ };
964
+ content?: never;
965
+ };
966
+ };
967
+ };
968
+ 'hafbe_endpoints.get_witness_voters': {
969
+ parameters: {
970
+ query?: {
971
+ /**
972
+ * @description When provided, only votes associated with this account will be included in the results,
973
+ * allowing for targeted analysis of an individual account's voting activity.
974
+ */
975
+ 'voter-name'?: string;
976
+ /** @description Return page on `page` number, defaults to `1` */
977
+ page?: number;
978
+ /** @description Return max `page-size` operations per page, defaults to `100` */
979
+ 'page-size'?: number;
980
+ /**
981
+ * @description Sort order:
982
+ *
983
+ * * `voter` - account name of voter
984
+ *
985
+ * * `vests` - total voting power = account_vests + proxied_vests of voter
986
+ *
987
+ * * `account_vests` - direct vests of voter
988
+ *
989
+ * * `proxied_vests` - proxied vests of voter
990
+ *
991
+ * * `timestamp` - last time voter voted for the witness
992
+ */
993
+ sort?: components['schemas']['hafbe_types.order_by_votes'];
994
+ /**
995
+ * @description Sort order:
996
+ *
997
+ * * `asc` - Ascending, from A to Z or smallest to largest
998
+ *
999
+ * * `desc` - Descending, from Z to A or largest to smallest
1000
+ */
1001
+ direction?: components['schemas']['hafbe_types.sort_direction'];
1002
+ };
1003
+ header?: never;
1004
+ path: {
1005
+ /** @description witness account name */
1006
+ 'account-name': string;
1007
+ };
1008
+ cookie?: never;
1009
+ };
1010
+ requestBody?: never;
1011
+ responses: {
1012
+ /**
1013
+ * @description The number of voters currently voting for this witness
1014
+ *
1015
+ * * Returns `hafbe_types.witness_voter_history`
1016
+ */
1017
+ 200: {
1018
+ headers: {
1019
+ [name: string]: unknown;
1020
+ };
1021
+ content: {
1022
+ /**
1023
+ * @example {
1024
+ * "total_votes": 263,
1025
+ * "total_pages": 132,
1026
+ * "voters": [
1027
+ * {
1028
+ * "voter_name": "blocktrades",
1029
+ * "vests": "13155953611548185",
1030
+ * "account_vests": "8172549681941451",
1031
+ * "proxied_vests": "4983403929606734",
1032
+ * "timestamp": "2016-04-15T02:19:57"
1033
+ * },
1034
+ * {
1035
+ * "voter_name": "dan",
1036
+ * "vests": "9928811304950768",
1037
+ * "account_vests": "9928811304950768",
1038
+ * "proxied_vests": "0",
1039
+ * "timestamp": "2016-06-27T12:41:42"
1040
+ * }
1041
+ * ]
1042
+ * }
1043
+ */
1044
+ 'application/json': components['schemas']['hafbe_types.witness_voter_history'];
1045
+ };
1046
+ };
1047
+ /** @description No such witness */
1048
+ 404: {
1049
+ headers: {
1050
+ [name: string]: unknown;
1051
+ };
1052
+ content?: never;
1053
+ };
1054
+ };
1055
+ };
1056
+ 'hafbe_endpoints.get_witness_voters_num': {
1057
+ parameters: {
1058
+ query?: never;
1059
+ header?: never;
1060
+ path: {
1061
+ /** @description The witness account name */
1062
+ 'account-name': string;
1063
+ };
1064
+ cookie?: never;
1065
+ };
1066
+ requestBody?: never;
1067
+ responses: {
1068
+ /**
1069
+ * @description The number of voters currently voting for this witness
1070
+ *
1071
+ * * Returns `INT`
1072
+ */
1073
+ 200: {
1074
+ headers: {
1075
+ [name: string]: unknown;
1076
+ };
1077
+ content: {
1078
+ /** @example 263 */
1079
+ 'application/json': number;
1080
+ };
1081
+ };
1082
+ /** @description No such witness */
1083
+ 404: {
1084
+ headers: {
1085
+ [name: string]: unknown;
1086
+ };
1087
+ content?: never;
1088
+ };
1089
+ };
1090
+ };
1091
+ 'hafbe_endpoints.get_witness_votes_history': {
1092
+ parameters: {
1093
+ query?: {
1094
+ /**
1095
+ * @description When provided, only votes associated with this account will be included in the results,
1096
+ * allowing for targeted analysis of an individual account's voting activity.
1097
+ */
1098
+ 'voter-name'?: string;
1099
+ /** @description Return page on `page` number, defaults to `1` */
1100
+ page?: number;
1101
+ /** @description Return max `page-size` operations per page, defaults to `100` */
1102
+ 'page-size'?: number;
1103
+ direction?: components['schemas']['hafbe_types.sort_direction'];
1104
+ /**
1105
+ * @description Lower limit of the block range, can be represented either by a block-number (integer) or a timestamp (in the format YYYY-MM-DD HH:MI:SS).
1106
+ *
1107
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1108
+ * where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
1109
+ *
1110
+ * The function will interpret and convert the input based on its format, example input:
1111
+ *
1112
+ * * `2016-09-15 19:47:21`
1113
+ *
1114
+ * * `5000000`
1115
+ */
1116
+ 'from-block'?: string;
1117
+ /**
1118
+ * @description Similar to the from-block parameter, can either be a block-number (integer) or a timestamp (formatted as YYYY-MM-DD HH:MI:SS).
1119
+ *
1120
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1121
+ * where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
1122
+ *
1123
+ * The function will convert the value depending on its format, example input:
1124
+ *
1125
+ * * `2016-09-15 19:47:21`
1126
+ *
1127
+ * * `5000000`
1128
+ */
1129
+ 'to-block'?: string;
1130
+ };
1131
+ header?: never;
1132
+ path: {
1133
+ /** @description witness account name */
1134
+ 'account-name': string;
1135
+ };
1136
+ cookie?: never;
1137
+ };
1138
+ requestBody?: never;
1139
+ responses: {
1140
+ /**
1141
+ * @description The number of voters currently voting for this witness
1142
+ *
1143
+ * * Returns `hafbe_types.witness_votes_history`
1144
+ */
1145
+ 200: {
1146
+ headers: {
1147
+ [name: string]: unknown;
1148
+ };
1149
+ content: {
1150
+ /**
1151
+ * @example {
1152
+ * "total_votes": 263,
1153
+ * "total_pages": 132,
1154
+ * "votes_history": [
1155
+ * {
1156
+ * "voter_name": "jeremyfromwi",
1157
+ * "approve": true,
1158
+ * "vests": "441156952466",
1159
+ * "account_vests": "441156952466",
1160
+ * "proxied_vests": "0",
1161
+ * "timestamp": "2016-09-15T07:07:15"
1162
+ * },
1163
+ * {
1164
+ * "voter_name": "cryptomental",
1165
+ * "approve": true,
1166
+ * "vests": "686005633844",
1167
+ * "account_vests": "686005633844",
1168
+ * "proxied_vests": "0",
1169
+ * "timestamp": "2016-09-15T07:00:51"
1170
+ * }
1171
+ * ]
1172
+ * }
1173
+ */
1174
+ 'application/json': components['schemas']['hafbe_types.witness_votes_history'];
1175
+ };
1176
+ };
1177
+ /** @description No such witness */
1178
+ 404: {
1179
+ headers: {
1180
+ [name: string]: unknown;
1181
+ };
1182
+ content?: never;
1183
+ };
1184
+ };
1185
+ };
1186
+ 'hafbe_endpoints.get_account': {
1187
+ parameters: {
1188
+ query?: never;
1189
+ header?: never;
1190
+ path: {
1191
+ /** @description Name of the account */
1192
+ 'account-name': string;
1193
+ };
1194
+ cookie?: never;
1195
+ };
1196
+ requestBody?: never;
1197
+ responses: {
1198
+ /**
1199
+ * @description The account's parameters
1200
+ *
1201
+ * * Returns `hafbe_types.account`
1202
+ */
1203
+ 200: {
1204
+ headers: {
1205
+ [name: string]: unknown;
1206
+ };
1207
+ content: {
1208
+ /**
1209
+ * @example {
1210
+ * "id": 440,
1211
+ * "name": "blocktrades",
1212
+ * "can_vote": true,
1213
+ * "mined": true,
1214
+ * "proxy": "",
1215
+ * "recovery_account": "steem",
1216
+ * "last_account_recovery": "1970-01-01T00:00:00",
1217
+ * "created": "2016-03-30T00:04:36",
1218
+ * "reputation": 69,
1219
+ * "pending_claimed_accounts": 0,
1220
+ * "json_metadata": "",
1221
+ * "posting_json_metadata": "",
1222
+ * "profile_image": "",
1223
+ * "hbd_balance": 77246982,
1224
+ * "balance": 29594875,
1225
+ * "vesting_shares": "8172549681941451",
1226
+ * "vesting_balance": 2720696229,
1227
+ * "hbd_saving_balance": 0,
1228
+ * "savings_balance": 0,
1229
+ * "savings_withdraw_requests": 0,
1230
+ * "reward_hbd_balance": 0,
1231
+ * "reward_hive_balance": 0,
1232
+ * "reward_vesting_balance": "0",
1233
+ * "reward_vesting_hive": 0,
1234
+ * "posting_rewards": "65916519",
1235
+ * "curation_rewards": "196115157",
1236
+ * "delegated_vesting_shares": "0",
1237
+ * "received_vesting_shares": "0",
1238
+ * "proxied_vsf_votes": [
1239
+ * "4983403929606734",
1240
+ * "0",
1241
+ * "0",
1242
+ * "0"
1243
+ * ],
1244
+ * "withdrawn": "804048182205290",
1245
+ * "vesting_withdraw_rate": "80404818220529",
1246
+ * "to_withdraw": "8362101094935031",
1247
+ * "withdraw_routes": 4,
1248
+ * "delayed_vests": "0",
1249
+ * "witness_votes": [
1250
+ * "steempty",
1251
+ * "blocktrades",
1252
+ * "datasecuritynode",
1253
+ * "steemed",
1254
+ * "silversteem",
1255
+ * "witness.svk",
1256
+ * "joseph",
1257
+ * "smooth.witness",
1258
+ * "gtg"
1259
+ * ],
1260
+ * "witnesses_voted_for": 9,
1261
+ * "ops_count": 219867,
1262
+ * "is_witness": true
1263
+ * }
1264
+ */
1265
+ 'application/json': components['schemas']['hafbe_types.account'];
1266
+ };
1267
+ };
1268
+ /** @description No such account in the database */
1269
+ 404: {
1270
+ headers: {
1271
+ [name: string]: unknown;
1272
+ };
1273
+ content?: never;
1274
+ };
1275
+ };
1276
+ };
1277
+ 'hafbe_endpoints.get_account_authority': {
1278
+ parameters: {
1279
+ query?: never;
1280
+ header?: never;
1281
+ path: {
1282
+ /** @description Name of the account */
1283
+ 'account-name': string;
1284
+ };
1285
+ cookie?: never;
1286
+ };
1287
+ requestBody?: never;
1288
+ responses: {
1289
+ /**
1290
+ * @description List of account's authorities
1291
+ *
1292
+ * * Returns `hafbe_types.account_authority`
1293
+ */
1294
+ 200: {
1295
+ headers: {
1296
+ [name: string]: unknown;
1297
+ };
1298
+ content: {
1299
+ /**
1300
+ * @example {
1301
+ * "owner": {
1302
+ * "key_auths": [
1303
+ * [
1304
+ * "STM7WdrxF6iuSiHUB4maoLGXXBKXbqAJ9AZbzACX1MPK2AkuCh23S",
1305
+ * 1
1306
+ * ]
1307
+ * ],
1308
+ * "account_auths": [],
1309
+ * "weight_threshold": 1
1310
+ * },
1311
+ * "active": {
1312
+ * "key_auths": [
1313
+ * [
1314
+ * "STM5vgGoHBrUuDCspAPYi3dLwSyistyrz61NWkZNUAXAifZJaDLPF",
1315
+ * 1
1316
+ * ]
1317
+ * ],
1318
+ * "account_auths": [],
1319
+ * "weight_threshold": 1
1320
+ * },
1321
+ * "posting": {
1322
+ * "key_auths": [
1323
+ * [
1324
+ * "STM5SaNVKJgy6ghnkNoMAprTxSDG55zps21Bo8qe1rnHmwAR4LzzC",
1325
+ * 1
1326
+ * ]
1327
+ * ],
1328
+ * "account_auths": [],
1329
+ * "weight_threshold": 1
1330
+ * },
1331
+ * "memo": "STM7EAUbNf1CdTrMbydPoBTRMG4afXCoAErBJYevhgne6zEP6rVBT",
1332
+ * "witness_signing": "STM4vmVc3rErkueyWNddyGfmjmLs3Rr4i7YJi8Z7gFeWhakXM4nEz"
1333
+ * }
1334
+ */
1335
+ 'application/json': components['schemas']['hafbe_types.account_authority'];
1336
+ };
1337
+ };
1338
+ /** @description No such account in the database */
1339
+ 404: {
1340
+ headers: {
1341
+ [name: string]: unknown;
1342
+ };
1343
+ content?: never;
1344
+ };
1345
+ };
1346
+ };
1347
+ 'hafbe_endpoints.get_account_proxies_power': {
1348
+ parameters: {
1349
+ query?: {
1350
+ /** @description 1-based page number (100 rows per page) */
1351
+ page?: number;
1352
+ };
1353
+ header?: never;
1354
+ path: {
1355
+ /** @description Name of the proxy account */
1356
+ 'account-name': string;
1357
+ };
1358
+ cookie?: never;
1359
+ };
1360
+ requestBody?: never;
1361
+ responses: {
1362
+ /** @description Array of delegators and their total vested power */
1363
+ 200: {
1364
+ headers: {
1365
+ [name: string]: unknown;
1366
+ };
1367
+ content: {
1368
+ 'application/json': components['schemas']['hafbe_types.array_of_proxy_power'];
1369
+ };
1370
+ };
1371
+ /** @description No such account in the database */
1372
+ 404: {
1373
+ headers: {
1374
+ [name: string]: unknown;
1375
+ };
1376
+ content?: never;
1377
+ };
1378
+ };
1379
+ };
1380
+ 'hafbe_endpoints.get_comment_permlinks': {
1381
+ parameters: {
1382
+ query?: {
1383
+ /**
1384
+ * @description Sort order:
1385
+ *
1386
+ * * `post` - permlinks related to root posts
1387
+ *
1388
+ * * `comment` - permlinks related to comments
1389
+ *
1390
+ * * `all` - both, posts and comments
1391
+ */
1392
+ 'comment-type'?: components['schemas']['hafbe_types.comment_type'];
1393
+ /** @description Return page on `page` number, defaults to `1` */
1394
+ page?: number;
1395
+ /** @description Return max `page-size` operations per page, defaults to `100` */
1396
+ 'page-size'?: number;
1397
+ /**
1398
+ * @description Lower limit of the block range, can be represented either by a block-number (integer) or a timestamp (in the format YYYY-MM-DD HH:MI:SS).
1399
+ *
1400
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1401
+ * where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
1402
+ *
1403
+ * The function will interpret and convert the input based on its format, example input:
1404
+ *
1405
+ * * `2016-09-15 19:47:21`
1406
+ *
1407
+ * * `5000000`
1408
+ */
1409
+ 'from-block'?: string;
1410
+ /**
1411
+ * @description Similar to the from-block parameter, can either be a block-number (integer) or a timestamp (formatted as YYYY-MM-DD HH:MI:SS).
1412
+ *
1413
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1414
+ * where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
1415
+ *
1416
+ * The function will convert the value depending on its format, example input:
1417
+ *
1418
+ * * `2016-09-15 19:47:21`
1419
+ *
1420
+ * * `5000000`
1421
+ */
1422
+ 'to-block'?: string;
1423
+ };
1424
+ header?: never;
1425
+ path: {
1426
+ /** @description Account to get operations for */
1427
+ 'account-name': string;
1428
+ };
1429
+ cookie?: never;
1430
+ };
1431
+ requestBody?: never;
1432
+ responses: {
1433
+ /**
1434
+ * @description Result contains total number of operations,
1435
+ * total pages, and the list of operations.
1436
+ *
1437
+ * * Returns `hafbe_types.permlink_history`
1438
+ */
1439
+ 200: {
1440
+ headers: {
1441
+ [name: string]: unknown;
1442
+ };
1443
+ content: {
1444
+ /**
1445
+ * @example {
1446
+ * "total_permlinks": 3,
1447
+ * "total_pages": 2,
1448
+ * "block_range": {
1449
+ * "from": 4000000,
1450
+ * "to": 4800000
1451
+ * },
1452
+ * "permlinks_result": [
1453
+ * {
1454
+ * "permlink": "witness-report-for-blocktrades-for-last-week-of-august",
1455
+ * "block": 4575065,
1456
+ * "trx_id": "d35590b9690ee8aa4b572901d62bc6263953346a",
1457
+ * "timestamp": "2016-09-01T00:18:51",
1458
+ * "operation_id": "19649754552074241"
1459
+ * },
1460
+ * {
1461
+ * "permlink": "blocktrades-witness-report-for-3rd-week-of-august",
1462
+ * "block": 4228346,
1463
+ * "trx_id": "bdcd754eb66f18eac11322310ae7ece1e951c08c",
1464
+ * "timestamp": "2016-08-19T21:27:00",
1465
+ * "operation_id": "18160607786173953"
1466
+ * }
1467
+ * ]
1468
+ * }
1469
+ */
1470
+ 'application/json': components['schemas']['hafbe_types.permlink_history'];
1471
+ };
1472
+ };
1473
+ /** @description No such account in the database */
1474
+ 404: {
1475
+ headers: {
1476
+ [name: string]: unknown;
1477
+ };
1478
+ content?: never;
1479
+ };
1480
+ };
1481
+ };
1482
+ 'hafbe_endpoints.get_comment_operations': {
1483
+ parameters: {
1484
+ query?: {
1485
+ /**
1486
+ * @description List of operation types to include. If NULL, all comment operation types will be included.
1487
+ * comment-related operation type ids: `0, 1, 17, 19, 51, 52, 53, 61, 63, 72, 73`
1488
+ */
1489
+ 'operation-types'?: string;
1490
+ /** @description Return page on `page` number, defaults to `1` */
1491
+ page?: number;
1492
+ /** @description Return max `page-size` operations per page, defaults to `100` */
1493
+ 'page-size'?: number;
1494
+ /**
1495
+ * @description Sort order:
1496
+ *
1497
+ * * `asc` - Ascending, from A to Z or smallest to largest
1498
+ *
1499
+ * * `desc` - Descending, from Z to A or largest to smallest
1500
+ */
1501
+ direction?: components['schemas']['hafbe_types.sort_direction'];
1502
+ /**
1503
+ * @description If the operation length exceeds the `data-size-limit`,
1504
+ * the operation body is replaced with a placeholder (defaults to `200000`).
1505
+ */
1506
+ 'data-size-limit'?: number;
1507
+ };
1508
+ header?: never;
1509
+ path: {
1510
+ /** @description Account to get operations for */
1511
+ 'account-name': string;
1512
+ /** @description Unique post identifier containing post's title and generated number */
1513
+ permlink: string;
1514
+ };
1515
+ cookie?: never;
1516
+ };
1517
+ requestBody?: never;
1518
+ responses: {
1519
+ /**
1520
+ * @description Result contains total number of operations,
1521
+ * total pages, and the list of operations.
1522
+ *
1523
+ * * Returns `hafbe_types.operation_history `
1524
+ */
1525
+ 200: {
1526
+ headers: {
1527
+ [name: string]: unknown;
1528
+ };
1529
+ content: {
1530
+ /**
1531
+ * @example {
1532
+ * "total_operations": 350,
1533
+ * "total_pages": 117,
1534
+ * "operations_result": [
1535
+ * {
1536
+ * "op": {
1537
+ * "type": "vote_operation",
1538
+ * "value": {
1539
+ * "voter": "blocktrades",
1540
+ * "author": "blocktrades",
1541
+ * "weight": 10000,
1542
+ * "permlink": "blocktrades-witness-report-for-3rd-week-of-august"
1543
+ * }
1544
+ * },
1545
+ * "block": 4228228,
1546
+ * "trx_id": "2bbeb7513e49cb169d4fe446ff980f2102f7210a",
1547
+ * "op_pos": 1,
1548
+ * "op_type_id": 0,
1549
+ * "timestamp": "2016-08-19T21:21:03",
1550
+ * "virtual_op": false,
1551
+ * "operation_id": "18160100980032256",
1552
+ * "trx_in_block": 1
1553
+ * },
1554
+ * {
1555
+ * "op": {
1556
+ * "type": "vote_operation",
1557
+ * "value": {
1558
+ * "voter": "murh",
1559
+ * "author": "blocktrades",
1560
+ * "weight": 3301,
1561
+ * "permlink": "blocktrades-witness-report-for-3rd-week-of-august"
1562
+ * }
1563
+ * },
1564
+ * "block": 4228239,
1565
+ * "trx_id": "e06bc7ad9c51a974ee2bd673e8fa4b4f7018bc18",
1566
+ * "op_pos": 0,
1567
+ * "op_type_id": 0,
1568
+ * "timestamp": "2016-08-19T21:21:36",
1569
+ * "virtual_op": false,
1570
+ * "operation_id": "18160148224672256",
1571
+ * "trx_in_block": 1
1572
+ * },
1573
+ * {
1574
+ * "op": {
1575
+ * "type": "vote_operation",
1576
+ * "value": {
1577
+ * "voter": "weenis",
1578
+ * "author": "blocktrades",
1579
+ * "weight": 10000,
1580
+ * "permlink": "blocktrades-witness-report-for-3rd-week-of-august"
1581
+ * }
1582
+ * },
1583
+ * "block": 4228240,
1584
+ * "trx_id": "c5a07b2a069db3ac9faffe0c5a6c6296ef3e78c5",
1585
+ * "op_pos": 0,
1586
+ * "op_type_id": 0,
1587
+ * "timestamp": "2016-08-19T21:21:39",
1588
+ * "virtual_op": false,
1589
+ * "operation_id": "18160152519641600",
1590
+ * "trx_in_block": 5
1591
+ * }
1592
+ * ]
1593
+ * }
1594
+ */
1595
+ 'application/json': components['schemas']['hafbe_types.operation_history'];
1596
+ };
1597
+ };
1598
+ /** @description No such account in the database */
1599
+ 404: {
1600
+ headers: {
1601
+ [name: string]: unknown;
1602
+ };
1603
+ content?: never;
1604
+ };
1605
+ };
1606
+ };
1607
+ 'hafbe_endpoints.get_block_by_op': {
1608
+ parameters: {
1609
+ query?: {
1610
+ /**
1611
+ * @description List of operations: if the parameter is NULL, all operations will be included.
1612
+ * example: `18,12`
1613
+ */
1614
+ 'operation-types'?: string;
1615
+ /** @description Filter operations by the account that created them. */
1616
+ 'account-name'?: string;
1617
+ /** @description Return page on `page` number, defaults to `NULL` */
1618
+ page?: number;
1619
+ /** @description Return max `page-size` operations per page, defaults to `100` */
1620
+ 'page-size'?: number;
1621
+ /**
1622
+ * @description Sort order:
1623
+ *
1624
+ * * `asc` - Ascending, from A to Z or smallest to largest
1625
+ *
1626
+ * * `desc` - Descending, from Z to A or largest to smallest
1627
+ */
1628
+ direction?: components['schemas']['hafbe_types.sort_direction'];
1629
+ /**
1630
+ * @description Lower limit of the block range, can be represented either by a block-number (integer) or a timestamp (in the format YYYY-MM-DD HH:MI:SS).
1631
+ *
1632
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1633
+ * where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
1634
+ *
1635
+ * The function will interpret and convert the input based on its format, example input:
1636
+ *
1637
+ * * `2016-09-15 19:47:21`
1638
+ *
1639
+ * * `5000000`
1640
+ */
1641
+ 'from-block'?: string;
1642
+ /**
1643
+ * @description Similar to the from-block parameter, can either be a block-number (integer) or a timestamp (formatted as YYYY-MM-DD HH:MI:SS).
1644
+ *
1645
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1646
+ * where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
1647
+ *
1648
+ * The function will convert the value depending on its format, example input:
1649
+ *
1650
+ * * `2016-09-15 19:47:21`
1651
+ *
1652
+ * * `5000000`
1653
+ */
1654
+ 'to-block'?: string;
1655
+ /**
1656
+ * @description A parameter specifying the desired value in operation body,
1657
+ * example: `value.creator=alpha`
1658
+ */
1659
+ 'path-filter'?: string[];
1660
+ };
1661
+ header?: never;
1662
+ path?: never;
1663
+ cookie?: never;
1664
+ };
1665
+ requestBody?: never;
1666
+ responses: {
1667
+ /**
1668
+ * @description Block number with filtered operations
1669
+ *
1670
+ * * Returns `hafbe_types.block_history`
1671
+ */
1672
+ 200: {
1673
+ headers: {
1674
+ [name: string]: unknown;
1675
+ };
1676
+ content: {
1677
+ /**
1678
+ * @example {
1679
+ * "total_blocks": 5000000,
1680
+ * "total_pages": 1000000,
1681
+ * "block_range": {
1682
+ * "from": 1,
1683
+ * "to": 5000000
1684
+ * },
1685
+ * "blocks_result": [
1686
+ * {
1687
+ * "block_num": 5000000,
1688
+ * "created_at": "2016-09-15T19:47:21",
1689
+ * "producer_account": "ihashfury",
1690
+ * "producer_reward": "3003845513",
1691
+ * "trx_count": 2,
1692
+ * "hash": "004c4b40245ffb07380a393fb2b3d841b76cdaec",
1693
+ * "prev": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
1694
+ * "operations": [
1695
+ * {
1696
+ * "op_type_id": 5,
1697
+ * "op_count": 1
1698
+ * },
1699
+ * {
1700
+ * "op_type_id": 9,
1701
+ * "op_count": 1
1702
+ * },
1703
+ * {
1704
+ * "op_type_id": 64,
1705
+ * "op_count": 1
1706
+ * },
1707
+ * {
1708
+ * "op_type_id": 80,
1709
+ * "op_count": 1
1710
+ * }
1711
+ * ]
1712
+ * },
1713
+ * {
1714
+ * "block_num": 4999999,
1715
+ * "created_at": "2016-09-15T19:47:18",
1716
+ * "producer_account": "smooth.witness",
1717
+ * "producer_reward": "3003846056",
1718
+ * "trx_count": 4,
1719
+ * "hash": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
1720
+ * "prev": "004c4b3e03ea2eac2494790786bfb9e41a8669d9",
1721
+ * "operations": [
1722
+ * {
1723
+ * "op_type_id": 0,
1724
+ * "op_count": 1
1725
+ * },
1726
+ * {
1727
+ * "op_type_id": 6,
1728
+ * "op_count": 2
1729
+ * },
1730
+ * {
1731
+ * "op_type_id": 30,
1732
+ * "op_count": 1
1733
+ * },
1734
+ * {
1735
+ * "op_type_id": 64,
1736
+ * "op_count": 1
1737
+ * },
1738
+ * {
1739
+ * "op_type_id": 72,
1740
+ * "op_count": 1
1741
+ * },
1742
+ * {
1743
+ * "op_type_id": 78,
1744
+ * "op_count": 1
1745
+ * },
1746
+ * {
1747
+ * "op_type_id": 85,
1748
+ * "op_count": 2
1749
+ * }
1750
+ * ]
1751
+ * },
1752
+ * {
1753
+ * "block_num": 4999998,
1754
+ * "created_at": "2016-09-15T19:47:15",
1755
+ * "producer_account": "steemed",
1756
+ * "producer_reward": "3003846904",
1757
+ * "trx_count": 2,
1758
+ * "hash": "004c4b3e03ea2eac2494790786bfb9e41a8669d9",
1759
+ * "prev": "004c4b3d6c34ebe3eb75dad04ce0a13b5f8a08cf",
1760
+ * "operations": [
1761
+ * {
1762
+ * "op_type_id": 0,
1763
+ * "op_count": 1
1764
+ * },
1765
+ * {
1766
+ * "op_type_id": 1,
1767
+ * "op_count": 1
1768
+ * },
1769
+ * {
1770
+ * "op_type_id": 64,
1771
+ * "op_count": 1
1772
+ * },
1773
+ * {
1774
+ * "op_type_id": 72,
1775
+ * "op_count": 1
1776
+ * }
1777
+ * ]
1778
+ * },
1779
+ * {
1780
+ * "block_num": 4999997,
1781
+ * "created_at": "2016-09-15T19:47:12",
1782
+ * "producer_account": "clayop",
1783
+ * "producer_reward": "3003847447",
1784
+ * "trx_count": 4,
1785
+ * "hash": "004c4b3d6c34ebe3eb75dad04ce0a13b5f8a08cf",
1786
+ * "prev": "004c4b3c51ee947feceeb1812702816114aea6e4",
1787
+ * "operations": [
1788
+ * {
1789
+ * "op_type_id": 0,
1790
+ * "op_count": 2
1791
+ * },
1792
+ * {
1793
+ * "op_type_id": 2,
1794
+ * "op_count": 1
1795
+ * },
1796
+ * {
1797
+ * "op_type_id": 5,
1798
+ * "op_count": 1
1799
+ * },
1800
+ * {
1801
+ * "op_type_id": 61,
1802
+ * "op_count": 1
1803
+ * },
1804
+ * {
1805
+ * "op_type_id": 64,
1806
+ * "op_count": 1
1807
+ * },
1808
+ * {
1809
+ * "op_type_id": 72,
1810
+ * "op_count": 2
1811
+ * }
1812
+ * ]
1813
+ * },
1814
+ * {
1815
+ * "block_num": 4999996,
1816
+ * "created_at": "2016-09-15T19:47:09",
1817
+ * "producer_account": "riverhead",
1818
+ * "producer_reward": "3003847991",
1819
+ * "trx_count": 2,
1820
+ * "hash": "004c4b3c51ee947feceeb1812702816114aea6e4",
1821
+ * "prev": "004c4b3bd268694ea02f24de50c50c9e7a831e60",
1822
+ * "operations": [
1823
+ * {
1824
+ * "op_type_id": 6,
1825
+ * "op_count": 2
1826
+ * },
1827
+ * {
1828
+ * "op_type_id": 64,
1829
+ * "op_count": 1
1830
+ * },
1831
+ * {
1832
+ * "op_type_id": 85,
1833
+ * "op_count": 2
1834
+ * }
1835
+ * ]
1836
+ * }
1837
+ * ]
1838
+ * }
1839
+ */
1840
+ 'application/json': components['schemas']['hafbe_types.block_history'];
1841
+ };
1842
+ };
1843
+ /** @description No operations in database */
1844
+ 404: {
1845
+ headers: {
1846
+ [name: string]: unknown;
1847
+ };
1848
+ content?: never;
1849
+ };
1850
+ };
1851
+ };
1852
+ 'hafbe_endpoints.get_transaction_statistics': {
1853
+ parameters: {
1854
+ query?: {
1855
+ /**
1856
+ * @description granularity types:
1857
+ *
1858
+ * * daily
1859
+ *
1860
+ * * monthly
1861
+ *
1862
+ * * yearly
1863
+ */
1864
+ granularity?: components['schemas']['hafbe_types.granularity'];
1865
+ /**
1866
+ * @description Sort order:
1867
+ *
1868
+ * * `asc` - Ascending, from oldest to newest
1869
+ *
1870
+ * * `desc` - Descending, from newest to oldest
1871
+ */
1872
+ direction?: components['schemas']['hafbe_types.sort_direction'];
1873
+ /**
1874
+ * @description Lower limit of the block range, can be represented either by a block-number (integer) or a timestamp (in the format YYYY-MM-DD HH:MI:SS).
1875
+ *
1876
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1877
+ * where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
1878
+ *
1879
+ * The function will interpret and convert the input based on its format, example input:
1880
+ *
1881
+ * * `2016-09-15 19:47:21`
1882
+ *
1883
+ * * `5000000`
1884
+ */
1885
+ 'from-block'?: string;
1886
+ /**
1887
+ * @description Similar to the from-block parameter, can either be a block-number (integer) or a timestamp (formatted as YYYY-MM-DD HH:MI:SS).
1888
+ *
1889
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
1890
+ * where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
1891
+ *
1892
+ * The function will convert the value depending on its format, example input:
1893
+ *
1894
+ * * `2016-09-15 19:47:21`
1895
+ *
1896
+ * * `5000000`
1897
+ */
1898
+ 'to-block'?: string;
1899
+ };
1900
+ header?: never;
1901
+ path?: never;
1902
+ cookie?: never;
1903
+ };
1904
+ requestBody?: never;
1905
+ responses: {
1906
+ /**
1907
+ * @description Balance change
1908
+ *
1909
+ * * Returns array of `hafbe_types.transaction_stats`
1910
+ */
1911
+ 200: {
1912
+ headers: {
1913
+ [name: string]: unknown;
1914
+ };
1915
+ content: {
1916
+ /**
1917
+ * @example [
1918
+ * {
1919
+ * "date": "2017-01-01T00:00:00",
1920
+ * "trx_count": 6961192,
1921
+ * "avg_trx": 1,
1922
+ * "min_trx": 0,
1923
+ * "max_trx": 89,
1924
+ * "last_block_num": 5000000
1925
+ * }
1926
+ * ]
1927
+ */
1928
+ 'application/json': components['schemas']['hafbe_types.array_of_transaction_stats'];
1929
+ };
1930
+ };
1931
+ /** @description No such account in the database */
1932
+ 404: {
1933
+ headers: {
1934
+ [name: string]: unknown;
1935
+ };
1936
+ content?: never;
1937
+ };
1938
+ };
1939
+ };
1940
+ 'hafbe_endpoints.get_hafbe_version': {
1941
+ parameters: {
1942
+ query?: never;
1943
+ header?: never;
1944
+ path?: never;
1945
+ cookie?: never;
1946
+ };
1947
+ requestBody?: never;
1948
+ responses: {
1949
+ /**
1950
+ * @description Haf_block_explorer version
1951
+ *
1952
+ * * Returns `TEXT`
1953
+ */
1954
+ 200: {
1955
+ headers: {
1956
+ [name: string]: unknown;
1957
+ };
1958
+ content: {
1959
+ /** @example c2fed8958584511ef1a66dab3dbac8c40f3518f0 */
1960
+ 'application/json': string;
1961
+ };
1962
+ };
1963
+ /** @description App not installed */
1964
+ 404: {
1965
+ headers: {
1966
+ [name: string]: unknown;
1967
+ };
1968
+ content?: never;
1969
+ };
1970
+ };
1971
+ };
1972
+ 'hafbe_endpoints.get_hafbe_last_synced_block': {
1973
+ parameters: {
1974
+ query?: never;
1975
+ header?: never;
1976
+ path?: never;
1977
+ cookie?: never;
1978
+ };
1979
+ requestBody?: never;
1980
+ responses: {
1981
+ /**
1982
+ * @description Last synced block by Haf_block_explorer
1983
+ *
1984
+ * * Returns `INT`
1985
+ */
1986
+ 200: {
1987
+ headers: {
1988
+ [name: string]: unknown;
1989
+ };
1990
+ content: {
1991
+ /** @example 5000000 */
1992
+ 'application/json': number;
1993
+ };
1994
+ };
1995
+ /** @description No blocks synced */
1996
+ 404: {
1997
+ headers: {
1998
+ [name: string]: unknown;
1999
+ };
2000
+ content?: never;
2001
+ };
2002
+ };
2003
+ };
2004
+ 'hafbe_endpoints.get_input_type': {
2005
+ parameters: {
2006
+ query?: never;
2007
+ header?: never;
2008
+ path: {
2009
+ /** @description Object type to be identified. */
2010
+ 'input-value': string;
2011
+ };
2012
+ cookie?: never;
2013
+ };
2014
+ requestBody?: never;
2015
+ responses: {
2016
+ /**
2017
+ * @description Result contains total operations number,
2018
+ * total pages and the list of operations
2019
+ *
2020
+ * * Returns `hafbe_types.input_type_return `
2021
+ */
2022
+ 200: {
2023
+ headers: {
2024
+ [name: string]: unknown;
2025
+ };
2026
+ content: {
2027
+ /**
2028
+ * @example {
2029
+ * "input_type": "account_name",
2030
+ * "input_value": [
2031
+ * "blocktrades"
2032
+ * ]
2033
+ * }
2034
+ */
2035
+ 'application/json': components['schemas']['hafbe_types.input_type_return'];
2036
+ };
2037
+ };
2038
+ /** @description Input is not recognized */
2039
+ 404: {
2040
+ headers: {
2041
+ [name: string]: unknown;
2042
+ };
2043
+ content?: never;
2044
+ };
2045
+ };
2046
+ };
2047
+ 'hafbe_endpoints.get_latest_blocks': {
2048
+ parameters: {
2049
+ query?: {
2050
+ /**
2051
+ * @description Given block, can be represented either by a `block-num` (integer) or a `timestamp` (in the format `YYYY-MM-DD HH:MI:SS`),
2052
+ *
2053
+ * The provided `timestamp` will be converted to a `block-num` by finding the first block
2054
+ * where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
2055
+ *
2056
+ * The function will interpret and convert the input based on its format, example input:
2057
+ *
2058
+ * * `2016-09-15 19:47:21`
2059
+ *
2060
+ * * `5000000`
2061
+ */
2062
+ 'block-num'?: string;
2063
+ /** @description Specifies number of blocks to return starting with head block, defaults to `20` */
2064
+ 'result-limit'?: number;
2065
+ };
2066
+ header?: never;
2067
+ path?: never;
2068
+ cookie?: never;
2069
+ };
2070
+ requestBody?: never;
2071
+ responses: {
2072
+ /**
2073
+ * @description Operation counts for each block
2074
+ *
2075
+ * * Returns array of `hafbe_types.latest_blocks`
2076
+ */
2077
+ 200: {
2078
+ headers: {
2079
+ [name: string]: unknown;
2080
+ };
2081
+ content: {
2082
+ /**
2083
+ * @example [
2084
+ * {
2085
+ * "block_num": 5000000,
2086
+ * "witness": "ihashfury",
2087
+ * "operations": [
2088
+ * {
2089
+ * "op_count": 1,
2090
+ * "op_type_id": 64
2091
+ * },
2092
+ * {
2093
+ * "op_count": 1,
2094
+ * "op_type_id": 9
2095
+ * },
2096
+ * {
2097
+ * "op_count": 1,
2098
+ * "op_type_id": 80
2099
+ * },
2100
+ * {
2101
+ * "op_count": 1,
2102
+ * "op_type_id": 5
2103
+ * }
2104
+ * ]
2105
+ * }
2106
+ * ]
2107
+ */
2108
+ 'application/json': components['schemas']['hafbe_types.array_of_latest_blocks'];
2109
+ };
2110
+ };
2111
+ /** @description No blocks in the database */
2112
+ 404: {
2113
+ headers: {
2114
+ [name: string]: unknown;
2115
+ };
2116
+ content?: never;
2117
+ };
2118
+ };
2119
+ };
2120
+ }
2121
+ //# sourceMappingURL=hafbe.d.ts.map