@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.
- package/LICENSE +21 -0
- package/README.md +206 -0
- package/dist/browser/hive-tx.min.js +3 -0
- package/dist/browser/hive-tx.min.js.LICENSE.txt +5 -0
- package/dist/browser/hive-tx.min.js.map +1 -0
- package/dist/cjs/Transaction.d.ts +71 -0
- package/dist/cjs/Transaction.d.ts.map +1 -0
- package/dist/cjs/Transaction.js +199 -0
- package/dist/cjs/Transaction.js.map +1 -0
- package/dist/cjs/config.d.ts +37 -0
- package/dist/cjs/config.d.ts.map +1 -0
- package/dist/cjs/config.js +54 -0
- package/dist/cjs/config.js.map +1 -0
- package/dist/cjs/helpers/Asset.d.ts +21 -0
- package/dist/cjs/helpers/Asset.d.ts.map +1 -0
- package/dist/cjs/helpers/Asset.js +74 -0
- package/dist/cjs/helpers/Asset.js.map +1 -0
- package/dist/cjs/helpers/ByteBuffer.d.ts +75 -0
- package/dist/cjs/helpers/ByteBuffer.d.ts.map +1 -0
- package/dist/cjs/helpers/ByteBuffer.js +555 -0
- package/dist/cjs/helpers/ByteBuffer.js.map +1 -0
- package/dist/cjs/helpers/HexBuffer.d.ts +10 -0
- package/dist/cjs/helpers/HexBuffer.d.ts.map +1 -0
- package/dist/cjs/helpers/HexBuffer.js +33 -0
- package/dist/cjs/helpers/HexBuffer.js.map +1 -0
- package/dist/cjs/helpers/PrivateKey.d.ts +114 -0
- package/dist/cjs/helpers/PrivateKey.d.ts.map +1 -0
- package/dist/cjs/helpers/PrivateKey.js +212 -0
- package/dist/cjs/helpers/PrivateKey.js.map +1 -0
- package/dist/cjs/helpers/PublicKey.d.ts +47 -0
- package/dist/cjs/helpers/PublicKey.d.ts.map +1 -0
- package/dist/cjs/helpers/PublicKey.js +97 -0
- package/dist/cjs/helpers/PublicKey.js.map +1 -0
- package/dist/cjs/helpers/Signature.d.ts +38 -0
- package/dist/cjs/helpers/Signature.d.ts.map +1 -0
- package/dist/cjs/helpers/Signature.js +85 -0
- package/dist/cjs/helpers/Signature.js.map +1 -0
- package/dist/cjs/helpers/aes.d.ts +15 -0
- package/dist/cjs/helpers/aes.d.ts.map +1 -0
- package/dist/cjs/helpers/aes.js +87 -0
- package/dist/cjs/helpers/aes.js.map +1 -0
- package/dist/cjs/helpers/call.d.ts +119 -0
- package/dist/cjs/helpers/call.d.ts.map +1 -0
- package/dist/cjs/helpers/call.js +498 -0
- package/dist/cjs/helpers/call.js.map +1 -0
- package/dist/cjs/helpers/deserializer.d.ts +4 -0
- package/dist/cjs/helpers/deserializer.d.ts.map +1 -0
- package/dist/cjs/helpers/deserializer.js +58 -0
- package/dist/cjs/helpers/deserializer.js.map +1 -0
- package/dist/cjs/helpers/memo.d.ts +36 -0
- package/dist/cjs/helpers/memo.d.ts.map +1 -0
- package/dist/cjs/helpers/memo.js +167 -0
- package/dist/cjs/helpers/memo.js.map +1 -0
- package/dist/cjs/helpers/serializer.d.ts +14 -0
- package/dist/cjs/helpers/serializer.d.ts.map +1 -0
- package/dist/cjs/helpers/serializer.js +639 -0
- package/dist/cjs/helpers/serializer.js.map +1 -0
- package/dist/cjs/helpers/sleep.d.ts +2 -0
- package/dist/cjs/helpers/sleep.d.ts.map +1 -0
- package/dist/cjs/helpers/sleep.js +8 -0
- package/dist/cjs/helpers/sleep.js.map +1 -0
- package/dist/cjs/helpers/utils.d.ts +122 -0
- package/dist/cjs/helpers/utils.d.ts.map +1 -0
- package/dist/cjs/helpers/utils.js +202 -0
- package/dist/cjs/helpers/utils.js.map +1 -0
- package/dist/cjs/index.d.ts +10 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +60 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/type_generators/types/balance.d.ts +1096 -0
- package/dist/cjs/type_generators/types/balance.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/balance.js +3 -0
- package/dist/cjs/type_generators/types/balance.js.map +1 -0
- package/dist/cjs/type_generators/types/hafah.d.ts +2154 -0
- package/dist/cjs/type_generators/types/hafah.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/hafah.js +3 -0
- package/dist/cjs/type_generators/types/hafah.js.map +1 -0
- package/dist/cjs/type_generators/types/hafbe.d.ts +2121 -0
- package/dist/cjs/type_generators/types/hafbe.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/hafbe.js +3 -0
- package/dist/cjs/type_generators/types/hafbe.js.map +1 -0
- package/dist/cjs/type_generators/types/hafsql.d.ts +2439 -0
- package/dist/cjs/type_generators/types/hafsql.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/hafsql.js +3 -0
- package/dist/cjs/type_generators/types/hafsql.js.map +1 -0
- package/dist/cjs/type_generators/types/hivemind.d.ts +202 -0
- package/dist/cjs/type_generators/types/hivemind.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/hivemind.js +3 -0
- package/dist/cjs/type_generators/types/hivemind.js.map +1 -0
- package/dist/cjs/type_generators/types/hivesense.d.ts +448 -0
- package/dist/cjs/type_generators/types/hivesense.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/hivesense.js +3 -0
- package/dist/cjs/type_generators/types/hivesense.js.map +1 -0
- package/dist/cjs/type_generators/types/nft-tracker.d.ts +348 -0
- package/dist/cjs/type_generators/types/nft-tracker.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/nft-tracker.js +3 -0
- package/dist/cjs/type_generators/types/nft-tracker.js.map +1 -0
- package/dist/cjs/type_generators/types/reputation.d.ts +182 -0
- package/dist/cjs/type_generators/types/reputation.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/reputation.js +3 -0
- package/dist/cjs/type_generators/types/reputation.js.map +1 -0
- package/dist/cjs/type_generators/types/status.d.ts +139 -0
- package/dist/cjs/type_generators/types/status.d.ts.map +1 -0
- package/dist/cjs/type_generators/types/status.js +3 -0
- package/dist/cjs/type_generators/types/status.js.map +1 -0
- package/dist/cjs/types.d.ts +415 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/Transaction.d.ts +71 -0
- package/dist/esm/Transaction.d.ts.map +1 -0
- package/dist/esm/Transaction.js +195 -0
- package/dist/esm/Transaction.js.map +1 -0
- package/dist/esm/config.d.ts +37 -0
- package/dist/esm/config.d.ts.map +1 -0
- package/dist/esm/config.js +51 -0
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/helpers/Asset.d.ts +21 -0
- package/dist/esm/helpers/Asset.d.ts.map +1 -0
- package/dist/esm/helpers/Asset.js +70 -0
- package/dist/esm/helpers/Asset.js.map +1 -0
- package/dist/esm/helpers/ByteBuffer.d.ts +75 -0
- package/dist/esm/helpers/ByteBuffer.d.ts.map +1 -0
- package/dist/esm/helpers/ByteBuffer.js +551 -0
- package/dist/esm/helpers/ByteBuffer.js.map +1 -0
- package/dist/esm/helpers/HexBuffer.d.ts +10 -0
- package/dist/esm/helpers/HexBuffer.d.ts.map +1 -0
- package/dist/esm/helpers/HexBuffer.js +29 -0
- package/dist/esm/helpers/HexBuffer.js.map +1 -0
- package/dist/esm/helpers/PrivateKey.d.ts +114 -0
- package/dist/esm/helpers/PrivateKey.d.ts.map +1 -0
- package/dist/esm/helpers/PrivateKey.js +205 -0
- package/dist/esm/helpers/PrivateKey.js.map +1 -0
- package/dist/esm/helpers/PublicKey.d.ts +47 -0
- package/dist/esm/helpers/PublicKey.d.ts.map +1 -0
- package/dist/esm/helpers/PublicKey.js +90 -0
- package/dist/esm/helpers/PublicKey.js.map +1 -0
- package/dist/esm/helpers/Signature.d.ts +38 -0
- package/dist/esm/helpers/Signature.d.ts.map +1 -0
- package/dist/esm/helpers/Signature.js +81 -0
- package/dist/esm/helpers/Signature.js.map +1 -0
- package/dist/esm/helpers/aes.d.ts +15 -0
- package/dist/esm/helpers/aes.d.ts.map +1 -0
- package/dist/esm/helpers/aes.js +81 -0
- package/dist/esm/helpers/aes.js.map +1 -0
- package/dist/esm/helpers/call.d.ts +119 -0
- package/dist/esm/helpers/call.d.ts.map +1 -0
- package/dist/esm/helpers/call.js +490 -0
- package/dist/esm/helpers/call.js.map +1 -0
- package/dist/esm/helpers/deserializer.d.ts +4 -0
- package/dist/esm/helpers/deserializer.d.ts.map +1 -0
- package/dist/esm/helpers/deserializer.js +55 -0
- package/dist/esm/helpers/deserializer.js.map +1 -0
- package/dist/esm/helpers/memo.d.ts +36 -0
- package/dist/esm/helpers/memo.d.ts.map +1 -0
- package/dist/esm/helpers/memo.js +128 -0
- package/dist/esm/helpers/memo.js.map +1 -0
- package/dist/esm/helpers/serializer.d.ts +14 -0
- package/dist/esm/helpers/serializer.d.ts.map +1 -0
- package/dist/esm/helpers/serializer.js +636 -0
- package/dist/esm/helpers/serializer.js.map +1 -0
- package/dist/esm/helpers/sleep.d.ts +2 -0
- package/dist/esm/helpers/sleep.d.ts.map +1 -0
- package/dist/esm/helpers/sleep.js +4 -0
- package/dist/esm/helpers/sleep.js.map +1 -0
- package/dist/esm/helpers/utils.d.ts +122 -0
- package/dist/esm/helpers/utils.d.ts.map +1 -0
- package/dist/esm/helpers/utils.js +196 -0
- package/dist/esm/helpers/utils.js.map +1 -0
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/type_generators/types/balance.d.ts +1096 -0
- package/dist/esm/type_generators/types/balance.d.ts.map +1 -0
- package/dist/esm/type_generators/types/balance.js +2 -0
- package/dist/esm/type_generators/types/balance.js.map +1 -0
- package/dist/esm/type_generators/types/hafah.d.ts +2154 -0
- package/dist/esm/type_generators/types/hafah.d.ts.map +1 -0
- package/dist/esm/type_generators/types/hafah.js +2 -0
- package/dist/esm/type_generators/types/hafah.js.map +1 -0
- package/dist/esm/type_generators/types/hafbe.d.ts +2121 -0
- package/dist/esm/type_generators/types/hafbe.d.ts.map +1 -0
- package/dist/esm/type_generators/types/hafbe.js +2 -0
- package/dist/esm/type_generators/types/hafbe.js.map +1 -0
- package/dist/esm/type_generators/types/hafsql.d.ts +2439 -0
- package/dist/esm/type_generators/types/hafsql.d.ts.map +1 -0
- package/dist/esm/type_generators/types/hafsql.js +2 -0
- package/dist/esm/type_generators/types/hafsql.js.map +1 -0
- package/dist/esm/type_generators/types/hivemind.d.ts +202 -0
- package/dist/esm/type_generators/types/hivemind.d.ts.map +1 -0
- package/dist/esm/type_generators/types/hivemind.js +2 -0
- package/dist/esm/type_generators/types/hivemind.js.map +1 -0
- package/dist/esm/type_generators/types/hivesense.d.ts +448 -0
- package/dist/esm/type_generators/types/hivesense.d.ts.map +1 -0
- package/dist/esm/type_generators/types/hivesense.js +2 -0
- package/dist/esm/type_generators/types/hivesense.js.map +1 -0
- package/dist/esm/type_generators/types/nft-tracker.d.ts +348 -0
- package/dist/esm/type_generators/types/nft-tracker.d.ts.map +1 -0
- package/dist/esm/type_generators/types/nft-tracker.js +2 -0
- package/dist/esm/type_generators/types/nft-tracker.js.map +1 -0
- package/dist/esm/type_generators/types/reputation.d.ts +182 -0
- package/dist/esm/type_generators/types/reputation.d.ts.map +1 -0
- package/dist/esm/type_generators/types/reputation.js +2 -0
- package/dist/esm/type_generators/types/reputation.js.map +1 -0
- package/dist/esm/type_generators/types/status.d.ts +139 -0
- package/dist/esm/type_generators/types/status.d.ts.map +1 -0
- package/dist/esm/type_generators/types/status.js +2 -0
- package/dist/esm/type_generators/types/status.js.map +1 -0
- package/dist/esm/types.d.ts +415 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,2154 @@
|
|
|
1
|
+
export interface paths {
|
|
2
|
+
'/blocks': {
|
|
3
|
+
parameters: {
|
|
4
|
+
query?: never;
|
|
5
|
+
header?: never;
|
|
6
|
+
path?: never;
|
|
7
|
+
cookie?: never;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Get block details in range
|
|
11
|
+
* @description Retrieve a range of full, signed blocks.
|
|
12
|
+
* The list may be shorter than requested if count blocks would take you past the current head block.
|
|
13
|
+
*
|
|
14
|
+
* SQL example
|
|
15
|
+
* * `SELECT * FROM hafah_endpoints.get_block_range(4999999,5000000);`
|
|
16
|
+
*
|
|
17
|
+
* REST call example
|
|
18
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/blocks?from-block=4999999&to-block=5000000'`
|
|
19
|
+
*/
|
|
20
|
+
get: operations['hafah_endpoints.get_block_range'];
|
|
21
|
+
put?: never;
|
|
22
|
+
post?: never;
|
|
23
|
+
delete?: never;
|
|
24
|
+
options?: never;
|
|
25
|
+
head?: never;
|
|
26
|
+
patch?: never;
|
|
27
|
+
trace?: never;
|
|
28
|
+
};
|
|
29
|
+
'/blocks/{block-num}': {
|
|
30
|
+
parameters: {
|
|
31
|
+
query?: never;
|
|
32
|
+
header?: never;
|
|
33
|
+
path?: never;
|
|
34
|
+
cookie?: never;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Get block details
|
|
38
|
+
* @description Retrieve a full, signed block of the referenced block, or null if no matching block was found.
|
|
39
|
+
*
|
|
40
|
+
* SQL example
|
|
41
|
+
* * `SELECT * FROM hafah_endpoints.get_block(5000000);`
|
|
42
|
+
*
|
|
43
|
+
* REST call example
|
|
44
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/blocks/5000000'`
|
|
45
|
+
*/
|
|
46
|
+
get: operations['hafah_endpoints.get_block'];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
55
|
+
'/blocks/{block-num}/header': {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Get block header of the referenced block
|
|
64
|
+
* @description Retrieve a block header of the referenced block, or null if no matching block was found.
|
|
65
|
+
*
|
|
66
|
+
* SQL example
|
|
67
|
+
* * `SELECT * FROM hafah_endpoints.get_block_header(500000);`
|
|
68
|
+
*
|
|
69
|
+
* REST call example
|
|
70
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/blocks/500000/header'`
|
|
71
|
+
*/
|
|
72
|
+
get: operations['hafah_endpoints.get_block_header'];
|
|
73
|
+
put?: never;
|
|
74
|
+
post?: never;
|
|
75
|
+
delete?: never;
|
|
76
|
+
options?: never;
|
|
77
|
+
head?: never;
|
|
78
|
+
patch?: never;
|
|
79
|
+
trace?: never;
|
|
80
|
+
};
|
|
81
|
+
'/blocks/{block-num}/operations': {
|
|
82
|
+
parameters: {
|
|
83
|
+
query?: never;
|
|
84
|
+
header?: never;
|
|
85
|
+
path?: never;
|
|
86
|
+
cookie?: never;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Get operations in block
|
|
90
|
+
* @description List the operations in the specified order that are within the given block number.
|
|
91
|
+
* The page size determines the number of operations per page
|
|
92
|
+
*
|
|
93
|
+
* SQL example
|
|
94
|
+
* * `SELECT * FROM hafah_endpoints.get_ops_by_block_paging(5000000,'5,64');`
|
|
95
|
+
*
|
|
96
|
+
* REST call example
|
|
97
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/blocks/5000000/operations?operation-types=80&path-filter=value.creator=steem'`
|
|
98
|
+
*/
|
|
99
|
+
get: operations['hafah_endpoints.get_ops_by_block_paging'];
|
|
100
|
+
put?: never;
|
|
101
|
+
post?: never;
|
|
102
|
+
delete?: never;
|
|
103
|
+
options?: never;
|
|
104
|
+
head?: never;
|
|
105
|
+
patch?: never;
|
|
106
|
+
trace?: never;
|
|
107
|
+
};
|
|
108
|
+
'/operations': {
|
|
109
|
+
parameters: {
|
|
110
|
+
query?: never;
|
|
111
|
+
header?: never;
|
|
112
|
+
path?: never;
|
|
113
|
+
cookie?: never;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Get operations in a block range
|
|
117
|
+
* @description Returns all operations contained in specified block range, supports various forms of filtering.
|
|
118
|
+
*
|
|
119
|
+
* SQL example
|
|
120
|
+
* * `SELECT * FROM hafah_endpoints.get_operations(4999999,5000000);`
|
|
121
|
+
*
|
|
122
|
+
* REST call example
|
|
123
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/operations?from-block=4999999&to-block=5000000&operation-group-type=virtual'`
|
|
124
|
+
*/
|
|
125
|
+
get: operations['hafah_endpoints.get_operations'];
|
|
126
|
+
put?: never;
|
|
127
|
+
post?: never;
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
134
|
+
'/operations/{operation-id}': {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path?: never;
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* lookup an operation by its id.
|
|
143
|
+
* @description Get operation's body and its extended parameters
|
|
144
|
+
*
|
|
145
|
+
* SQL example
|
|
146
|
+
* * `SELECT * FROM hafah_endpoints.get_operation(3448858738752);`
|
|
147
|
+
*
|
|
148
|
+
* REST call example
|
|
149
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/operations/3448858738752'`
|
|
150
|
+
*/
|
|
151
|
+
get: operations['hafah_endpoints.get_operation'];
|
|
152
|
+
put?: never;
|
|
153
|
+
post?: never;
|
|
154
|
+
delete?: never;
|
|
155
|
+
options?: never;
|
|
156
|
+
head?: never;
|
|
157
|
+
patch?: never;
|
|
158
|
+
trace?: never;
|
|
159
|
+
};
|
|
160
|
+
'/operation-types': {
|
|
161
|
+
parameters: {
|
|
162
|
+
query?: never;
|
|
163
|
+
header?: never;
|
|
164
|
+
path?: never;
|
|
165
|
+
cookie?: never;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Lookup operation type ids for operations matching a partial operation name.
|
|
169
|
+
* @description Lookup operation type ids for operations matching a partial operation name.
|
|
170
|
+
*
|
|
171
|
+
* SQL example
|
|
172
|
+
* * `SELECT * FROM hafah_endpoints.get_op_types('author');`
|
|
173
|
+
*
|
|
174
|
+
* REST call example
|
|
175
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/operation-types?partial-operation-name=author'`
|
|
176
|
+
*/
|
|
177
|
+
get: operations['hafah_endpoints.get_op_types'];
|
|
178
|
+
put?: never;
|
|
179
|
+
post?: never;
|
|
180
|
+
delete?: never;
|
|
181
|
+
options?: never;
|
|
182
|
+
head?: never;
|
|
183
|
+
patch?: never;
|
|
184
|
+
trace?: never;
|
|
185
|
+
};
|
|
186
|
+
'/operation-types/{type-id}/keys': {
|
|
187
|
+
parameters: {
|
|
188
|
+
query?: never;
|
|
189
|
+
header?: never;
|
|
190
|
+
path?: never;
|
|
191
|
+
cookie?: never;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Returns key names for an operation type.
|
|
195
|
+
* @description Returns json body keys for an operation type
|
|
196
|
+
*
|
|
197
|
+
* SQL example
|
|
198
|
+
* * `SELECT * FROM hafah_endpoints.get_operation_keys(1);`
|
|
199
|
+
*
|
|
200
|
+
* REST call example
|
|
201
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/operation-types/1/keys'`
|
|
202
|
+
*/
|
|
203
|
+
get: operations['hafah_endpoints.get_operation_keys'];
|
|
204
|
+
put?: never;
|
|
205
|
+
post?: never;
|
|
206
|
+
delete?: never;
|
|
207
|
+
options?: never;
|
|
208
|
+
head?: never;
|
|
209
|
+
patch?: never;
|
|
210
|
+
trace?: never;
|
|
211
|
+
};
|
|
212
|
+
'/transactions/{transaction-id}': {
|
|
213
|
+
parameters: {
|
|
214
|
+
query?: never;
|
|
215
|
+
header?: never;
|
|
216
|
+
path?: never;
|
|
217
|
+
cookie?: never;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Lookup a transaction's details from its transaction id.
|
|
221
|
+
* @description Returns the details of a transaction based on a transaction id (including its signatures,
|
|
222
|
+
* operations, and containing block number).
|
|
223
|
+
*
|
|
224
|
+
* SQL example
|
|
225
|
+
* * `SELECT * FROM hafah_endpoints.get_transaction('954f6de36e6715d128fa8eb5a053fc254b05ded0');`
|
|
226
|
+
*
|
|
227
|
+
* REST call example
|
|
228
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/transactions/954f6de36e6715d128fa8eb5a053fc254b05ded0'`
|
|
229
|
+
*/
|
|
230
|
+
get: operations['hafah_endpoints.get_transaction'];
|
|
231
|
+
put?: never;
|
|
232
|
+
post?: never;
|
|
233
|
+
delete?: never;
|
|
234
|
+
options?: never;
|
|
235
|
+
head?: never;
|
|
236
|
+
patch?: never;
|
|
237
|
+
trace?: never;
|
|
238
|
+
};
|
|
239
|
+
'/accounts/{account-name}/operations': {
|
|
240
|
+
parameters: {
|
|
241
|
+
query?: never;
|
|
242
|
+
header?: never;
|
|
243
|
+
path?: never;
|
|
244
|
+
cookie?: never;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Get operations for an account by recency.
|
|
248
|
+
* @description List the operations in reversed order (first page is the oldest) for given account.
|
|
249
|
+
* The page size determines the number of operations per page.
|
|
250
|
+
*
|
|
251
|
+
* SQL example
|
|
252
|
+
* * `SELECT * FROM hafah_endpoints.get_ops_by_account('blocktrades');`
|
|
253
|
+
*
|
|
254
|
+
* REST call example
|
|
255
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/accounts/blocktrades/operations?page-size=3'`
|
|
256
|
+
*/
|
|
257
|
+
get: operations['hafah_endpoints.get_ops_by_account'];
|
|
258
|
+
put?: never;
|
|
259
|
+
post?: never;
|
|
260
|
+
delete?: never;
|
|
261
|
+
options?: never;
|
|
262
|
+
head?: never;
|
|
263
|
+
patch?: never;
|
|
264
|
+
trace?: never;
|
|
265
|
+
};
|
|
266
|
+
'/accounts/{account-name}/operation-types': {
|
|
267
|
+
parameters: {
|
|
268
|
+
query?: never;
|
|
269
|
+
header?: never;
|
|
270
|
+
path?: never;
|
|
271
|
+
cookie?: never;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Lists all types of operations that account has performed
|
|
275
|
+
* @description Lists all types of operations that the account has performed since its creation
|
|
276
|
+
*
|
|
277
|
+
* SQL example
|
|
278
|
+
* * `SELECT * FROM hafah_endpoints.get_acc_op_types('blocktrades');`
|
|
279
|
+
*
|
|
280
|
+
* REST call example
|
|
281
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/accounts/blocktrades/operations/types'`
|
|
282
|
+
*/
|
|
283
|
+
get: operations['hafah_endpoints.get_acc_op_types'];
|
|
284
|
+
put?: never;
|
|
285
|
+
post?: never;
|
|
286
|
+
delete?: never;
|
|
287
|
+
options?: never;
|
|
288
|
+
head?: never;
|
|
289
|
+
patch?: never;
|
|
290
|
+
trace?: never;
|
|
291
|
+
};
|
|
292
|
+
'/market-history/trade-history': {
|
|
293
|
+
parameters: {
|
|
294
|
+
query?: never;
|
|
295
|
+
header?: never;
|
|
296
|
+
path?: never;
|
|
297
|
+
cookie?: never;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Returns the trade history for the internal HBD:HIVE market.
|
|
301
|
+
* @description SQL example
|
|
302
|
+
* * `SELECT * FROM hafah_endpoints.get_trade_history('2016-08-15 19:47:21', '2016-09-15 19:47:21',1000);`
|
|
303
|
+
*
|
|
304
|
+
* REST call example
|
|
305
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/market-history/trade-history?result-limit=100&from-block=2016-08-15 19:47:21&to-block==2016-09-15 19:47:21'`
|
|
306
|
+
*/
|
|
307
|
+
get: operations['hafah_endpoints.get_trade_history'];
|
|
308
|
+
put?: never;
|
|
309
|
+
post?: never;
|
|
310
|
+
delete?: never;
|
|
311
|
+
options?: never;
|
|
312
|
+
head?: never;
|
|
313
|
+
patch?: never;
|
|
314
|
+
trace?: never;
|
|
315
|
+
};
|
|
316
|
+
'/market-history/recent-trades': {
|
|
317
|
+
parameters: {
|
|
318
|
+
query?: never;
|
|
319
|
+
header?: never;
|
|
320
|
+
path?: never;
|
|
321
|
+
cookie?: never;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Returns the most recent trades for the internal HBD:HIVE market.
|
|
325
|
+
* @description SQL example
|
|
326
|
+
* * `SELECT * FROM hafah_endpoints.get_recent_trades(1000);`
|
|
327
|
+
*
|
|
328
|
+
* REST call example
|
|
329
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/market-history/recent-trades?result-limit=1000'`
|
|
330
|
+
*/
|
|
331
|
+
get: operations['hafah_endpoints.get_recent_trades'];
|
|
332
|
+
put?: never;
|
|
333
|
+
post?: never;
|
|
334
|
+
delete?: never;
|
|
335
|
+
options?: never;
|
|
336
|
+
head?: never;
|
|
337
|
+
patch?: never;
|
|
338
|
+
trace?: never;
|
|
339
|
+
};
|
|
340
|
+
'/version': {
|
|
341
|
+
parameters: {
|
|
342
|
+
query?: never;
|
|
343
|
+
header?: never;
|
|
344
|
+
path?: never;
|
|
345
|
+
cookie?: never;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* hafah's version
|
|
349
|
+
* @description Get hafah's last commit hash (hash is used for versioning).
|
|
350
|
+
*
|
|
351
|
+
* SQL example
|
|
352
|
+
* * `SELECT * FROM hafah_endpoints.get_version();`
|
|
353
|
+
*
|
|
354
|
+
* REST call example
|
|
355
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/version'`
|
|
356
|
+
*/
|
|
357
|
+
get: operations['hafah_endpoints.get_version'];
|
|
358
|
+
put?: never;
|
|
359
|
+
post?: never;
|
|
360
|
+
delete?: never;
|
|
361
|
+
options?: never;
|
|
362
|
+
head?: never;
|
|
363
|
+
patch?: never;
|
|
364
|
+
trace?: never;
|
|
365
|
+
};
|
|
366
|
+
'/headblock': {
|
|
367
|
+
parameters: {
|
|
368
|
+
query?: never;
|
|
369
|
+
header?: never;
|
|
370
|
+
path?: never;
|
|
371
|
+
cookie?: never;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Get last synced block in the HAF database.
|
|
375
|
+
* @description Get last synced block in the HAF database
|
|
376
|
+
*
|
|
377
|
+
* SQL example
|
|
378
|
+
* * `SELECT * FROM hafah_endpoints.get_head_block_num();`
|
|
379
|
+
*
|
|
380
|
+
* REST call example
|
|
381
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/headblock'`
|
|
382
|
+
*/
|
|
383
|
+
get: operations['hafah_endpoints.get_head_block_num'];
|
|
384
|
+
put?: never;
|
|
385
|
+
post?: never;
|
|
386
|
+
delete?: never;
|
|
387
|
+
options?: never;
|
|
388
|
+
head?: never;
|
|
389
|
+
patch?: never;
|
|
390
|
+
trace?: never;
|
|
391
|
+
};
|
|
392
|
+
'/global-state': {
|
|
393
|
+
parameters: {
|
|
394
|
+
query?: never;
|
|
395
|
+
header?: never;
|
|
396
|
+
path?: never;
|
|
397
|
+
cookie?: never;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Reports global state information at the given block.
|
|
401
|
+
* @description Reports dgpo-style data for a given block.
|
|
402
|
+
*
|
|
403
|
+
* SQL example
|
|
404
|
+
* * `SELECT * FROM hafah_endpoints.get_global_state(5000000);`
|
|
405
|
+
*
|
|
406
|
+
* REST call example
|
|
407
|
+
* * `GET 'https://rpc.mahdiyari.info/hafah-api/global-state?block-num=5000000'`
|
|
408
|
+
*/
|
|
409
|
+
get: operations['hafah_endpoints.get_global_state'];
|
|
410
|
+
put?: never;
|
|
411
|
+
post?: never;
|
|
412
|
+
delete?: never;
|
|
413
|
+
options?: never;
|
|
414
|
+
head?: never;
|
|
415
|
+
patch?: never;
|
|
416
|
+
trace?: never;
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
export type webhooks = Record<string, never>;
|
|
420
|
+
export interface components {
|
|
421
|
+
schemas: {
|
|
422
|
+
'hafah_backend.op_types': {
|
|
423
|
+
/** @description operation type id */
|
|
424
|
+
op_type_id?: number;
|
|
425
|
+
/** @description operation type name */
|
|
426
|
+
operation_name?: string;
|
|
427
|
+
/** @description true if operation is virtual */
|
|
428
|
+
is_virtual?: boolean;
|
|
429
|
+
};
|
|
430
|
+
/** @enum {string} */
|
|
431
|
+
'hafah_backend.operation_group_types': 'virtual' | 'real' | 'all';
|
|
432
|
+
'hafah_backend.block_range_type': {
|
|
433
|
+
from?: number;
|
|
434
|
+
to?: number;
|
|
435
|
+
};
|
|
436
|
+
'hafah_backend.operation_body': {
|
|
437
|
+
type?: string;
|
|
438
|
+
value?: Record<string, never>;
|
|
439
|
+
};
|
|
440
|
+
'hafah_backend.array_of_operations': components['schemas']['hafah_backend.operation_body'][];
|
|
441
|
+
'hafah_backend.operation': {
|
|
442
|
+
/** @description operation body */
|
|
443
|
+
op?: components['schemas']['hafah_backend.operation_body'];
|
|
444
|
+
/** @description block containing the operation */
|
|
445
|
+
block?: number;
|
|
446
|
+
/** @description hash of the transaction */
|
|
447
|
+
trx_id?: string;
|
|
448
|
+
/** @description operation identifier that indicates its sequence number in transaction */
|
|
449
|
+
op_pos?: number;
|
|
450
|
+
/** @description operation type identifier */
|
|
451
|
+
op_type_id?: number;
|
|
452
|
+
/**
|
|
453
|
+
* Format: date-time
|
|
454
|
+
* @description creation date
|
|
455
|
+
*/
|
|
456
|
+
timestamp?: string;
|
|
457
|
+
/** @description true if is a virtual operation */
|
|
458
|
+
virtual_op?: boolean;
|
|
459
|
+
/** @description unique operation identifier with an encoded block number and operation type id */
|
|
460
|
+
operation_id?: string;
|
|
461
|
+
/** @description transaction identifier that indicates its sequence number in block */
|
|
462
|
+
trx_in_block?: number;
|
|
463
|
+
};
|
|
464
|
+
'hafah_backend.operation_history': {
|
|
465
|
+
/** @description Total number of operations */
|
|
466
|
+
total_operations?: number;
|
|
467
|
+
/** @description Total number of pages */
|
|
468
|
+
total_pages?: number;
|
|
469
|
+
/** @description List of operation results */
|
|
470
|
+
operations_result?: components['schemas']['hafah_backend.operation'][];
|
|
471
|
+
};
|
|
472
|
+
'hafah_backend.account_operation_history': {
|
|
473
|
+
/** @description Total number of operations */
|
|
474
|
+
total_operations?: number;
|
|
475
|
+
/** @description Total number of pages */
|
|
476
|
+
total_pages?: number;
|
|
477
|
+
/** @description Range of blocks that contains the returned pages */
|
|
478
|
+
block_range?: components['schemas']['hafah_backend.block_range_type'];
|
|
479
|
+
/** @description List of operation results */
|
|
480
|
+
operations_result?: components['schemas']['hafah_backend.operation'][];
|
|
481
|
+
};
|
|
482
|
+
'hafah_backend.operations_in_block_range': {
|
|
483
|
+
/** @description Lower bound for the next block number */
|
|
484
|
+
next_block_range_begin?: number;
|
|
485
|
+
/** @description Lower bound for the next operation id */
|
|
486
|
+
next_operation_begin?: string;
|
|
487
|
+
/** @description List of operation results */
|
|
488
|
+
ops?: components['schemas']['hafah_backend.operation'][];
|
|
489
|
+
};
|
|
490
|
+
/** @enum {string} */
|
|
491
|
+
'hafah_backend.sort_direction': 'asc' | 'desc';
|
|
492
|
+
'hafah_backend.extensions': {
|
|
493
|
+
type?: string;
|
|
494
|
+
value?: string;
|
|
495
|
+
}[];
|
|
496
|
+
'hafah_backend.block': {
|
|
497
|
+
/** @description block number */
|
|
498
|
+
block_num?: number;
|
|
499
|
+
/** @description block hash in a blockchain is a unique, fixed-length string generated by applying a cryptographic hash function to a block's contents */
|
|
500
|
+
hash?: string;
|
|
501
|
+
/** @description hash of a previous block */
|
|
502
|
+
prev?: string;
|
|
503
|
+
/** @description account name of block's producer */
|
|
504
|
+
producer_account?: string;
|
|
505
|
+
/** @description single hash representing the combined hashes of all transactions in a block */
|
|
506
|
+
transaction_merkle_root?: string;
|
|
507
|
+
/** @description various additional data/parameters related to the subject at hand. Most often, there's nothing specific, but it's a mechanism for extending various functionalities where something might appear in the future. */
|
|
508
|
+
extensions?: components['schemas']['hafah_backend.extensions'];
|
|
509
|
+
/** @description witness signature */
|
|
510
|
+
witness_signature?: string;
|
|
511
|
+
/** @description it refers to the public key of the witness used for signing blocks and other witness operations */
|
|
512
|
+
signing_key?: string;
|
|
513
|
+
/** @description the interest rate on HBD in savings, expressed in basis points (previously for each HBD), is one of the values determined by the witnesses */
|
|
514
|
+
hbd_interest_rate?: number;
|
|
515
|
+
/** @description the balance of the "counterweight" for these VESTS (total_vesting_shares) in the form of HIVE (the price of VESTS is derived from these two values). A portion of the inflation is added to the balance, ensuring that each block corresponds to more HIVE for the VESTS */
|
|
516
|
+
total_vesting_fund_hive?: string;
|
|
517
|
+
/** @description the total amount of VEST present in the system */
|
|
518
|
+
total_vesting_shares?: string;
|
|
519
|
+
/** @description deprecated after HF17 */
|
|
520
|
+
total_reward_fund_hive?: string;
|
|
521
|
+
/** @description the total amount of HIVE, including the HIVE that would be generated from converting HBD to HIVE at the current price */
|
|
522
|
+
virtual_supply?: string;
|
|
523
|
+
/** @description the total amount of HIVE present in the system */
|
|
524
|
+
current_supply?: string;
|
|
525
|
+
/** @description the total amount of HBD present in the system, including what is in the treasury */
|
|
526
|
+
current_hbd_supply?: string;
|
|
527
|
+
/** @description the dhf_interval_ledger is a temporary HBD balance. Each block allocates a portion of inflation for proposal payouts, but these payouts occur every hour. To avoid cluttering the history with small amounts each block, the new funds are first accumulated in the dhf_interval_ledger. Then, every HIVE_PROPOSAL_MAINTENANCE_PERIOD, the accumulated funds are transferred to the treasury account (this operation generates the virtual operation dhf_funding_operation), from where they are subsequently paid out to the approved proposals */
|
|
528
|
+
dhf_interval_ledger?: number;
|
|
529
|
+
/**
|
|
530
|
+
* Format: date-time
|
|
531
|
+
* @description the timestamp when the block was created
|
|
532
|
+
*/
|
|
533
|
+
created_at?: string;
|
|
534
|
+
};
|
|
535
|
+
'hafah_backend.block_header': {
|
|
536
|
+
/** @description hash of a previous block */
|
|
537
|
+
previous?: string;
|
|
538
|
+
/**
|
|
539
|
+
* Format: date-time
|
|
540
|
+
* @description the timestamp when the block was created
|
|
541
|
+
*/
|
|
542
|
+
timestamp?: string;
|
|
543
|
+
/** @description account name of block's producer */
|
|
544
|
+
witness?: string;
|
|
545
|
+
/** @description single hash representing the combined hashes of all transactions in a block */
|
|
546
|
+
transaction_merkle_root?: string;
|
|
547
|
+
/** @description various additional data/parameters related to the subject at hand. Most often, there's nothing specific, but it's a mechanism for extending various functionalities where something might appear in the future. */
|
|
548
|
+
extensions?: components['schemas']['hafah_backend.extensions'];
|
|
549
|
+
};
|
|
550
|
+
'hafah_backend.transactions': {
|
|
551
|
+
ref_block_num?: number;
|
|
552
|
+
ref_block_prefix?: number;
|
|
553
|
+
expiration?: string;
|
|
554
|
+
operations?: components['schemas']['hafah_backend.array_of_operations'];
|
|
555
|
+
extensions?: components['schemas']['hafah_backend.extensions'];
|
|
556
|
+
signatures?: string[];
|
|
557
|
+
};
|
|
558
|
+
'hafah_backend.block_range': {
|
|
559
|
+
/** @description hash of a previous block */
|
|
560
|
+
previous?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Format: date-time
|
|
563
|
+
* @description the timestamp when the block was created
|
|
564
|
+
*/
|
|
565
|
+
timestamp?: string;
|
|
566
|
+
/** @description account name of block's producer */
|
|
567
|
+
witness?: string;
|
|
568
|
+
/** @description single hash representing the combined hashes of all transactions in a block */
|
|
569
|
+
transaction_merkle_root?: string;
|
|
570
|
+
/** @description various additional data/parameters related to the subject at hand. Most often, there's nothing specific, but it's a mechanism for extending various functionalities where something might appear in the future. */
|
|
571
|
+
extensions?: components['schemas']['hafah_backend.extensions'];
|
|
572
|
+
/** @description witness signature */
|
|
573
|
+
witness_signature?: string;
|
|
574
|
+
/** @description transactions in the block */
|
|
575
|
+
transactions?: components['schemas']['hafah_backend.transactions'];
|
|
576
|
+
/** @description block hash in a blockchain is a unique, fixed-length string generated by applying a cryptographic hash function to a block's contents */
|
|
577
|
+
block_id?: string;
|
|
578
|
+
/** @description it refers to the public key of the witness used for signing blocks and other witness operations */
|
|
579
|
+
signing_key?: string;
|
|
580
|
+
transaction_ids?: string[];
|
|
581
|
+
};
|
|
582
|
+
'hafah_backend.transaction': {
|
|
583
|
+
/** @description transactions in the block */
|
|
584
|
+
transaction_json?: components['schemas']['hafah_backend.transactions'];
|
|
585
|
+
/** @description hash of the transaction */
|
|
586
|
+
transaction_id?: string;
|
|
587
|
+
/** @description block number */
|
|
588
|
+
block_num?: number;
|
|
589
|
+
/** @description transaction identifier that indicates its sequence number in block */
|
|
590
|
+
transaction_num?: number;
|
|
591
|
+
/**
|
|
592
|
+
* Format: date-time
|
|
593
|
+
* @description the timestamp when the block was created
|
|
594
|
+
*/
|
|
595
|
+
timestamp?: string;
|
|
596
|
+
};
|
|
597
|
+
'hafah_backend.nai_object': {
|
|
598
|
+
/** @description String representation of a NAI (Network Asset Identifier) */
|
|
599
|
+
nai?: string;
|
|
600
|
+
/** @description Amount of the asset */
|
|
601
|
+
amount?: string;
|
|
602
|
+
/** @description Precision of the asset */
|
|
603
|
+
precision?: number;
|
|
604
|
+
};
|
|
605
|
+
'hafah_backend.fill_order': {
|
|
606
|
+
current_pays?: components['schemas']['hafah_backend.nai_object'];
|
|
607
|
+
/** Format: date-time */
|
|
608
|
+
date?: string;
|
|
609
|
+
maker?: string;
|
|
610
|
+
open_pays?: components['schemas']['hafah_backend.nai_object'];
|
|
611
|
+
taker?: string;
|
|
612
|
+
};
|
|
613
|
+
'hafah_backend.array_of_fill_order': components['schemas']['hafah_backend.fill_order'][];
|
|
614
|
+
/** @enum {string} */
|
|
615
|
+
'hafah_backend.participation_mode': 'include' | 'exclude' | 'all';
|
|
616
|
+
'hafah_backend.array_of_block_range': components['schemas']['hafah_backend.block_range'][];
|
|
617
|
+
'hafah_backend.array_of_op_types': components['schemas']['hafah_backend.op_types'][];
|
|
618
|
+
'hafah_backend.version_type': {
|
|
619
|
+
/** @description Application name */
|
|
620
|
+
app_name?: string;
|
|
621
|
+
/** @description Last commit hash */
|
|
622
|
+
commit?: string;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
responses: never;
|
|
626
|
+
parameters: never;
|
|
627
|
+
requestBodies: never;
|
|
628
|
+
headers: never;
|
|
629
|
+
pathItems: never;
|
|
630
|
+
}
|
|
631
|
+
export type $defs = Record<string, never>;
|
|
632
|
+
export interface operations {
|
|
633
|
+
'hafah_endpoints.get_block_range': {
|
|
634
|
+
parameters: {
|
|
635
|
+
query: {
|
|
636
|
+
/**
|
|
637
|
+
* @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).
|
|
638
|
+
*
|
|
639
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
640
|
+
* where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
|
|
641
|
+
*
|
|
642
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
643
|
+
*
|
|
644
|
+
* * `2016-09-15 19:47:21`
|
|
645
|
+
*
|
|
646
|
+
* * `5000000`
|
|
647
|
+
*/
|
|
648
|
+
'from-block': string;
|
|
649
|
+
/**
|
|
650
|
+
* @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).
|
|
651
|
+
*
|
|
652
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
653
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
654
|
+
*
|
|
655
|
+
* The function will convert the value depending on its format, example input:
|
|
656
|
+
*
|
|
657
|
+
* * `2016-09-15 19:47:21`
|
|
658
|
+
*
|
|
659
|
+
* * `5000000`
|
|
660
|
+
*/
|
|
661
|
+
'to-block': string;
|
|
662
|
+
};
|
|
663
|
+
header?: never;
|
|
664
|
+
path?: never;
|
|
665
|
+
cookie?: never;
|
|
666
|
+
};
|
|
667
|
+
requestBody?: never;
|
|
668
|
+
responses: {
|
|
669
|
+
/** @description * Returns array of `hafah_backend.block_range` */
|
|
670
|
+
200: {
|
|
671
|
+
headers: {
|
|
672
|
+
[name: string]: unknown;
|
|
673
|
+
};
|
|
674
|
+
content: {
|
|
675
|
+
/**
|
|
676
|
+
* @example [
|
|
677
|
+
* {
|
|
678
|
+
* "witness": "smooth.witness",
|
|
679
|
+
* "block_id": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
|
|
680
|
+
* "previous": "004c4b3e03ea2eac2494790786bfb9e41a8669d9",
|
|
681
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
682
|
+
* "extensions": [],
|
|
683
|
+
* "signing_key": "STM5jtPaM5G2jemsqTY8xYgy3CVUgzygKn7vUVpFozr6nWcCJ8mDW",
|
|
684
|
+
* "transactions": [
|
|
685
|
+
* {
|
|
686
|
+
* "expiration": "2016-09-15T19:47:27",
|
|
687
|
+
* "extensions": [],
|
|
688
|
+
* "operations": [
|
|
689
|
+
* {
|
|
690
|
+
* "type": "vote_operation",
|
|
691
|
+
* "value": {
|
|
692
|
+
* "voter": "rkpl",
|
|
693
|
+
* "author": "thedevil",
|
|
694
|
+
* "weight": -10000,
|
|
695
|
+
* "permlink": "re-rkpl-how-to-make-a-good-picture-of-the-moon-my-guide-and-photos-20160915t193128824z"
|
|
696
|
+
* }
|
|
697
|
+
* }
|
|
698
|
+
* ],
|
|
699
|
+
* "signatures": [
|
|
700
|
+
* "2046cca841a2c84caf416ccec47f4d894732236505c21964ca092a4bf83b755979402486e49f4f6c116fc7e8d8525df14592d2993365b54ac26cb4bc52d3611e50"
|
|
701
|
+
* ],
|
|
702
|
+
* "ref_block_num": 19245,
|
|
703
|
+
* "ref_block_prefix": 325640405
|
|
704
|
+
* },
|
|
705
|
+
* {
|
|
706
|
+
* "expiration": "2016-09-15T19:47:45",
|
|
707
|
+
* "extensions": [],
|
|
708
|
+
* "operations": [
|
|
709
|
+
* {
|
|
710
|
+
* "type": "limit_order_cancel_operation",
|
|
711
|
+
* "value": {
|
|
712
|
+
* "owner": "cvk",
|
|
713
|
+
* "orderid": 1473968539
|
|
714
|
+
* }
|
|
715
|
+
* }
|
|
716
|
+
* ],
|
|
717
|
+
* "signatures": [
|
|
718
|
+
* "20388171dcf8401b9ca74a79991fa2aaeff26729a28c3acb5510663a930e51f15e180e712e0e7fd3a65b2082ea89583b5155239259fc37c9a0c2b0ec4aacfb6963"
|
|
719
|
+
* ],
|
|
720
|
+
* "ref_block_num": 19262,
|
|
721
|
+
* "ref_block_prefix": 2888755715
|
|
722
|
+
* },
|
|
723
|
+
* {
|
|
724
|
+
* "expiration": "2016-09-15T20:47:15",
|
|
725
|
+
* "extensions": [],
|
|
726
|
+
* "operations": [
|
|
727
|
+
* {
|
|
728
|
+
* "type": "pow2_operation",
|
|
729
|
+
* "value": {
|
|
730
|
+
* "work": {
|
|
731
|
+
* "type": "pow2",
|
|
732
|
+
* "value": {
|
|
733
|
+
* "input": {
|
|
734
|
+
* "nonce": "12906882138532220661",
|
|
735
|
+
* "prev_block": "004c4b3e03ea2eac2494790786bfb9e41a8669d9",
|
|
736
|
+
* "worker_account": "rabbit-25"
|
|
737
|
+
* },
|
|
738
|
+
* "pow_summary": 3818441282
|
|
739
|
+
* }
|
|
740
|
+
* },
|
|
741
|
+
* "props": {
|
|
742
|
+
* "hbd_interest_rate": 1000,
|
|
743
|
+
* "maximum_block_size": 131072,
|
|
744
|
+
* "account_creation_fee": {
|
|
745
|
+
* "nai": "@@000000021",
|
|
746
|
+
* "amount": "10000",
|
|
747
|
+
* "precision": 3
|
|
748
|
+
* }
|
|
749
|
+
* }
|
|
750
|
+
* }
|
|
751
|
+
* }
|
|
752
|
+
* ],
|
|
753
|
+
* "signatures": [
|
|
754
|
+
* "200cecb32d535041c061ea00ec8092c4ab12bf1453035c52987beffb53099f4d5045b29946037b15f9cdde3cbbe0f6e72b8f2f42027cafbeeee54cb8e780f8b07f"
|
|
755
|
+
* ],
|
|
756
|
+
* "ref_block_num": 19262,
|
|
757
|
+
* "ref_block_prefix": 2888755715
|
|
758
|
+
* },
|
|
759
|
+
* {
|
|
760
|
+
* "expiration": "2016-09-15T19:47:45",
|
|
761
|
+
* "extensions": [],
|
|
762
|
+
* "operations": [
|
|
763
|
+
* {
|
|
764
|
+
* "type": "limit_order_cancel_operation",
|
|
765
|
+
* "value": {
|
|
766
|
+
* "owner": "paco-steem",
|
|
767
|
+
* "orderid": 1243424767
|
|
768
|
+
* }
|
|
769
|
+
* }
|
|
770
|
+
* ],
|
|
771
|
+
* "signatures": [
|
|
772
|
+
* "1f7de4d1ea38b5ddb2de499242aacc92d3fff529a74264c568114a48bf4182e4e775bd757cd718cb31b92017279bc781d7282be48abf615aa856bf6828a53b7fe1"
|
|
773
|
+
* ],
|
|
774
|
+
* "ref_block_num": 19262,
|
|
775
|
+
* "ref_block_prefix": 2888755715
|
|
776
|
+
* }
|
|
777
|
+
* ],
|
|
778
|
+
* "transaction_ids": [
|
|
779
|
+
* "9f4639be729f8ca436ac5bd01b5684cbc126d44d",
|
|
780
|
+
* "8f2a70dbe09902473eac39ffbd8ff626cb49bb51",
|
|
781
|
+
* "a9596ee741bd4b4b7d3d8cadd15416bfe854209e",
|
|
782
|
+
* "b664e368d117e0b0d4b1b32325a18044f47b5ca5"
|
|
783
|
+
* ],
|
|
784
|
+
* "witness_signature": "1f4a3e6e868c4b729790e64b0656cf12996f35010dd07b535a502b019080c849c75f370642b00e302d003def5e6b2280246b08ee8ab37824af4664ab740a79b940",
|
|
785
|
+
* "transaction_merkle_root": "708e4d6a2a722ef7fecc58d1f177a2826e54edd3"
|
|
786
|
+
* },
|
|
787
|
+
* {
|
|
788
|
+
* "witness": "ihashfury",
|
|
789
|
+
* "block_id": "004c4b40245ffb07380a393fb2b3d841b76cdaec",
|
|
790
|
+
* "previous": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
|
|
791
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
792
|
+
* "extensions": [],
|
|
793
|
+
* "signing_key": "STM8aUs6SGoEmNYMd3bYjE1UBr6NQPxGWmTqTdBaxJYSx244edSB2",
|
|
794
|
+
* "transactions": [
|
|
795
|
+
* {
|
|
796
|
+
* "expiration": "2016-09-15T19:47:33",
|
|
797
|
+
* "extensions": [],
|
|
798
|
+
* "operations": [
|
|
799
|
+
* {
|
|
800
|
+
* "type": "account_create_operation",
|
|
801
|
+
* "value": {
|
|
802
|
+
* "fee": {
|
|
803
|
+
* "nai": "@@000000021",
|
|
804
|
+
* "amount": "10000",
|
|
805
|
+
* "precision": 3
|
|
806
|
+
* },
|
|
807
|
+
* "owner": {
|
|
808
|
+
* "key_auths": [
|
|
809
|
+
* [
|
|
810
|
+
* "STM871wj5KKnbwwiRv3scVcxQ26ynPnE1uaZr6dPpqVu9F4zJZgjZ",
|
|
811
|
+
* 1
|
|
812
|
+
* ]
|
|
813
|
+
* ],
|
|
814
|
+
* "account_auths": [],
|
|
815
|
+
* "weight_threshold": 1
|
|
816
|
+
* },
|
|
817
|
+
* "active": {
|
|
818
|
+
* "key_auths": [
|
|
819
|
+
* [
|
|
820
|
+
* "STM73bAnWEwkdUa7Lp4ovNzyu4soHUCaCNSz79YHQsDqscNdSe1E8",
|
|
821
|
+
* 1
|
|
822
|
+
* ]
|
|
823
|
+
* ],
|
|
824
|
+
* "account_auths": [],
|
|
825
|
+
* "weight_threshold": 1
|
|
826
|
+
* },
|
|
827
|
+
* "creator": "steem",
|
|
828
|
+
* "posting": {
|
|
829
|
+
* "key_auths": [
|
|
830
|
+
* [
|
|
831
|
+
* "STM7fXKrnQN3xhgFTQBFMgR9TU8CxfgAJrLvSDjGuM2bFkiuKfwZg",
|
|
832
|
+
* 1
|
|
833
|
+
* ]
|
|
834
|
+
* ],
|
|
835
|
+
* "account_auths": [],
|
|
836
|
+
* "weight_threshold": 1
|
|
837
|
+
* },
|
|
838
|
+
* "memo_key": "STM8i93Zznxu2QRNLCHBDXt5yyiMW1c3GEyVKV9XAs8H5wEWwdJaM",
|
|
839
|
+
* "json_metadata": "",
|
|
840
|
+
* "new_account_name": "kefadex"
|
|
841
|
+
* }
|
|
842
|
+
* }
|
|
843
|
+
* ],
|
|
844
|
+
* "signatures": [
|
|
845
|
+
* "1f63c75cc966916ea705a6fdef0821a810bdabb07118a3721f4cd52c972b9e4522534248c45ac908c1498752165a1d937eaf55ab6c028d7ee0ad893d3d4330d066"
|
|
846
|
+
* ],
|
|
847
|
+
* "ref_block_num": 19263,
|
|
848
|
+
* "ref_block_prefix": 1534306502
|
|
849
|
+
* },
|
|
850
|
+
* {
|
|
851
|
+
* "expiration": "2016-09-15T19:47:48",
|
|
852
|
+
* "extensions": [],
|
|
853
|
+
* "operations": [
|
|
854
|
+
* {
|
|
855
|
+
* "type": "limit_order_create_operation",
|
|
856
|
+
* "value": {
|
|
857
|
+
* "owner": "cvk",
|
|
858
|
+
* "orderid": 1473968838,
|
|
859
|
+
* "expiration": "2035-10-29T06:32:22",
|
|
860
|
+
* "fill_or_kill": false,
|
|
861
|
+
* "amount_to_sell": {
|
|
862
|
+
* "nai": "@@000000021",
|
|
863
|
+
* "amount": "10324",
|
|
864
|
+
* "precision": 3
|
|
865
|
+
* },
|
|
866
|
+
* "min_to_receive": {
|
|
867
|
+
* "nai": "@@000000013",
|
|
868
|
+
* "amount": "6819",
|
|
869
|
+
* "precision": 3
|
|
870
|
+
* }
|
|
871
|
+
* }
|
|
872
|
+
* }
|
|
873
|
+
* ],
|
|
874
|
+
* "signatures": [
|
|
875
|
+
* "203e8ef6d16005180dc06756462bd867513a929bc4fa7c45f24ca2b0763cafdb06678812d777216f46d205e68a740dd19e32a1aa1a1df022500c0f1ef97800d0e0"
|
|
876
|
+
* ],
|
|
877
|
+
* "ref_block_num": 19263,
|
|
878
|
+
* "ref_block_prefix": 1534306502
|
|
879
|
+
* }
|
|
880
|
+
* ],
|
|
881
|
+
* "transaction_ids": [
|
|
882
|
+
* "6707feb450da66dc223ab5cb3e259937b2fef6bf",
|
|
883
|
+
* "973290d26bac31335c000c7a3d3fe058ce3dbb9f"
|
|
884
|
+
* ],
|
|
885
|
+
* "witness_signature": "1f6aa1c6311c768b5225b115eaf5798e5f1d8338af3970d90899cd5ccbe38f6d1f7676c5649bcca18150cbf8f07c0cc7ec3ae40d5936cfc6d5a650e582ba0f8002",
|
|
886
|
+
* "transaction_merkle_root": "97a8f2b04848b860f1792dc07bf58efcb15aeb8c"
|
|
887
|
+
* }
|
|
888
|
+
* ]
|
|
889
|
+
*/
|
|
890
|
+
'application/json': components['schemas']['hafah_backend.array_of_block_range'];
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
'hafah_endpoints.get_block': {
|
|
896
|
+
parameters: {
|
|
897
|
+
query?: {
|
|
898
|
+
/** @description If true, virtual operations will be included. */
|
|
899
|
+
'include-virtual'?: boolean;
|
|
900
|
+
};
|
|
901
|
+
header?: never;
|
|
902
|
+
path: {
|
|
903
|
+
/**
|
|
904
|
+
* @description Given block, can be represented either by a `block-num` (integer) or a `timestamp` (in the format `YYYY-MM-DD HH:MI:SS`),
|
|
905
|
+
*
|
|
906
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
907
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
908
|
+
*
|
|
909
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
910
|
+
*
|
|
911
|
+
* * `2016-09-15 19:47:21`
|
|
912
|
+
*
|
|
913
|
+
* * `5000000`
|
|
914
|
+
*/
|
|
915
|
+
'block-num': string;
|
|
916
|
+
};
|
|
917
|
+
cookie?: never;
|
|
918
|
+
};
|
|
919
|
+
requestBody?: never;
|
|
920
|
+
responses: {
|
|
921
|
+
/** @description * Returns `hafah_backend.block_range` */
|
|
922
|
+
200: {
|
|
923
|
+
headers: {
|
|
924
|
+
[name: string]: unknown;
|
|
925
|
+
};
|
|
926
|
+
content: {
|
|
927
|
+
/**
|
|
928
|
+
* @example {
|
|
929
|
+
* "witness": "ihashfury",
|
|
930
|
+
* "block_id": "004c4b40245ffb07380a393fb2b3d841b76cdaec",
|
|
931
|
+
* "previous": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
|
|
932
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
933
|
+
* "extensions": [],
|
|
934
|
+
* "signing_key": "STM8aUs6SGoEmNYMd3bYjE1UBr6NQPxGWmTqTdBaxJYSx244edSB2",
|
|
935
|
+
* "transactions": [
|
|
936
|
+
* {
|
|
937
|
+
* "expiration": "2016-09-15T19:47:33",
|
|
938
|
+
* "extensions": [],
|
|
939
|
+
* "operations": [
|
|
940
|
+
* {
|
|
941
|
+
* "type": "account_create_operation",
|
|
942
|
+
* "value": {
|
|
943
|
+
* "fee": {
|
|
944
|
+
* "nai": "@@000000021",
|
|
945
|
+
* "amount": "10000",
|
|
946
|
+
* "precision": 3
|
|
947
|
+
* },
|
|
948
|
+
* "owner": {
|
|
949
|
+
* "key_auths": [
|
|
950
|
+
* [
|
|
951
|
+
* "STM871wj5KKnbwwiRv3scVcxQ26ynPnE1uaZr6dPpqVu9F4zJZgjZ",
|
|
952
|
+
* 1
|
|
953
|
+
* ]
|
|
954
|
+
* ],
|
|
955
|
+
* "account_auths": [],
|
|
956
|
+
* "weight_threshold": 1
|
|
957
|
+
* },
|
|
958
|
+
* "active": {
|
|
959
|
+
* "key_auths": [
|
|
960
|
+
* [
|
|
961
|
+
* "STM73bAnWEwkdUa7Lp4ovNzyu4soHUCaCNSz79YHQsDqscNdSe1E8",
|
|
962
|
+
* 1
|
|
963
|
+
* ]
|
|
964
|
+
* ],
|
|
965
|
+
* "account_auths": [],
|
|
966
|
+
* "weight_threshold": 1
|
|
967
|
+
* },
|
|
968
|
+
* "creator": "steem",
|
|
969
|
+
* "posting": {
|
|
970
|
+
* "key_auths": [
|
|
971
|
+
* [
|
|
972
|
+
* "STM7fXKrnQN3xhgFTQBFMgR9TU8CxfgAJrLvSDjGuM2bFkiuKfwZg",
|
|
973
|
+
* 1
|
|
974
|
+
* ]
|
|
975
|
+
* ],
|
|
976
|
+
* "account_auths": [],
|
|
977
|
+
* "weight_threshold": 1
|
|
978
|
+
* },
|
|
979
|
+
* "memo_key": "STM8i93Zznxu2QRNLCHBDXt5yyiMW1c3GEyVKV9XAs8H5wEWwdJaM",
|
|
980
|
+
* "json_metadata": "",
|
|
981
|
+
* "new_account_name": "kefadex"
|
|
982
|
+
* }
|
|
983
|
+
* }
|
|
984
|
+
* ],
|
|
985
|
+
* "signatures": [
|
|
986
|
+
* "1f63c75cc966916ea705a6fdef0821a810bdabb07118a3721f4cd52c972b9e4522534248c45ac908c1498752165a1d937eaf55ab6c028d7ee0ad893d3d4330d066"
|
|
987
|
+
* ],
|
|
988
|
+
* "ref_block_num": 19263,
|
|
989
|
+
* "ref_block_prefix": 1534306502
|
|
990
|
+
* },
|
|
991
|
+
* {
|
|
992
|
+
* "expiration": "2016-09-15T19:47:48",
|
|
993
|
+
* "extensions": [],
|
|
994
|
+
* "operations": [
|
|
995
|
+
* {
|
|
996
|
+
* "type": "limit_order_create_operation",
|
|
997
|
+
* "value": {
|
|
998
|
+
* "owner": "cvk",
|
|
999
|
+
* "orderid": 1473968838,
|
|
1000
|
+
* "expiration": "2035-10-29T06:32:22",
|
|
1001
|
+
* "fill_or_kill": false,
|
|
1002
|
+
* "amount_to_sell": {
|
|
1003
|
+
* "nai": "@@000000021",
|
|
1004
|
+
* "amount": "10324",
|
|
1005
|
+
* "precision": 3
|
|
1006
|
+
* },
|
|
1007
|
+
* "min_to_receive": {
|
|
1008
|
+
* "nai": "@@000000013",
|
|
1009
|
+
* "amount": "6819",
|
|
1010
|
+
* "precision": 3
|
|
1011
|
+
* }
|
|
1012
|
+
* }
|
|
1013
|
+
* }
|
|
1014
|
+
* ],
|
|
1015
|
+
* "signatures": [
|
|
1016
|
+
* "203e8ef6d16005180dc06756462bd867513a929bc4fa7c45f24ca2b0763cafdb06678812d777216f46d205e68a740dd19e32a1aa1a1df022500c0f1ef97800d0e0"
|
|
1017
|
+
* ],
|
|
1018
|
+
* "ref_block_num": 19263,
|
|
1019
|
+
* "ref_block_prefix": 1534306502
|
|
1020
|
+
* }
|
|
1021
|
+
* ],
|
|
1022
|
+
* "transaction_ids": [
|
|
1023
|
+
* "6707feb450da66dc223ab5cb3e259937b2fef6bf",
|
|
1024
|
+
* "973290d26bac31335c000c7a3d3fe058ce3dbb9f"
|
|
1025
|
+
* ],
|
|
1026
|
+
* "witness_signature": "1f6aa1c6311c768b5225b115eaf5798e5f1d8338af3970d90899cd5ccbe38f6d1f7676c5649bcca18150cbf8f07c0cc7ec3ae40d5936cfc6d5a650e582ba0f8002",
|
|
1027
|
+
* "transaction_merkle_root": "97a8f2b04848b860f1792dc07bf58efcb15aeb8c"
|
|
1028
|
+
* }
|
|
1029
|
+
*/
|
|
1030
|
+
'application/json': components['schemas']['hafah_backend.block_range'];
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
'hafah_endpoints.get_block_header': {
|
|
1036
|
+
parameters: {
|
|
1037
|
+
query?: never;
|
|
1038
|
+
header?: never;
|
|
1039
|
+
path: {
|
|
1040
|
+
/**
|
|
1041
|
+
* @description Given block, can be represented either by a `block-num` (integer) or a `timestamp` (in the format `YYYY-MM-DD HH:MI:SS`),
|
|
1042
|
+
*
|
|
1043
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1044
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
1045
|
+
*
|
|
1046
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
1047
|
+
*
|
|
1048
|
+
* * `2016-09-15 19:47:21`
|
|
1049
|
+
*
|
|
1050
|
+
* * `5000000`
|
|
1051
|
+
*/
|
|
1052
|
+
'block-num': string;
|
|
1053
|
+
};
|
|
1054
|
+
cookie?: never;
|
|
1055
|
+
};
|
|
1056
|
+
requestBody?: never;
|
|
1057
|
+
responses: {
|
|
1058
|
+
/** @description * Returns `hafah_backend.block_header` */
|
|
1059
|
+
200: {
|
|
1060
|
+
headers: {
|
|
1061
|
+
[name: string]: unknown;
|
|
1062
|
+
};
|
|
1063
|
+
content: {
|
|
1064
|
+
/**
|
|
1065
|
+
* @example {
|
|
1066
|
+
* "witness": "ihashfury",
|
|
1067
|
+
* "previous": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
|
|
1068
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
1069
|
+
* "extensions": [],
|
|
1070
|
+
* "transaction_merkle_root": "97a8f2b04848b860f1792dc07bf58efcb15aeb8c"
|
|
1071
|
+
* }
|
|
1072
|
+
*/
|
|
1073
|
+
'application/json': components['schemas']['hafah_backend.block_header'];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
'hafah_endpoints.get_ops_by_block_paging': {
|
|
1079
|
+
parameters: {
|
|
1080
|
+
query?: {
|
|
1081
|
+
/**
|
|
1082
|
+
* @description List of operations: if the parameter is empty, all operations will be included,
|
|
1083
|
+
* example: `18,12`
|
|
1084
|
+
*/
|
|
1085
|
+
'operation-types'?: string;
|
|
1086
|
+
/** @description Filter operations by the account that created them */
|
|
1087
|
+
'account-name'?: string;
|
|
1088
|
+
/** @description Return page on `page` number, defaults to `1` */
|
|
1089
|
+
page?: number;
|
|
1090
|
+
/** @description Return max `page-size` operations per page, defaults to `100` */
|
|
1091
|
+
'page-size'?: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* @description page order:
|
|
1094
|
+
*
|
|
1095
|
+
* * `asc` - Ascending, from oldest to newest page
|
|
1096
|
+
*
|
|
1097
|
+
* * `desc` - Descending, from newest to oldest page
|
|
1098
|
+
*/
|
|
1099
|
+
'page-order'?: components['schemas']['hafah_backend.sort_direction'];
|
|
1100
|
+
/**
|
|
1101
|
+
* @description If the operation length exceeds the data size limit,
|
|
1102
|
+
* the operation body is replaced with a placeholder, defaults to `200000`
|
|
1103
|
+
*/
|
|
1104
|
+
'data-size-limit'?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* @description A parameter specifying the expected value in operation body,
|
|
1107
|
+
* example: `value.creator=steem`
|
|
1108
|
+
*/
|
|
1109
|
+
'path-filter'?: string[];
|
|
1110
|
+
};
|
|
1111
|
+
header?: never;
|
|
1112
|
+
path: {
|
|
1113
|
+
/**
|
|
1114
|
+
* @description Given block, can be represented either by a `block-num` (integer) or a `timestamp` (in the format `YYYY-MM-DD HH:MI:SS`),
|
|
1115
|
+
*
|
|
1116
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1117
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
1118
|
+
*
|
|
1119
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
1120
|
+
*
|
|
1121
|
+
* * `2016-09-15 19:47:21`
|
|
1122
|
+
*
|
|
1123
|
+
* * `5000000`
|
|
1124
|
+
*/
|
|
1125
|
+
'block-num': string;
|
|
1126
|
+
};
|
|
1127
|
+
cookie?: never;
|
|
1128
|
+
};
|
|
1129
|
+
requestBody?: never;
|
|
1130
|
+
responses: {
|
|
1131
|
+
/**
|
|
1132
|
+
* @description Result contains total operations number,
|
|
1133
|
+
* total pages and the list of operations
|
|
1134
|
+
*
|
|
1135
|
+
* * Returns `hafah_backend.operation_history`
|
|
1136
|
+
*/
|
|
1137
|
+
200: {
|
|
1138
|
+
headers: {
|
|
1139
|
+
[name: string]: unknown;
|
|
1140
|
+
};
|
|
1141
|
+
content: {
|
|
1142
|
+
/**
|
|
1143
|
+
* @example {
|
|
1144
|
+
* "total_operations": 1,
|
|
1145
|
+
* "total_pages": 1,
|
|
1146
|
+
* "operations_result": [
|
|
1147
|
+
* {
|
|
1148
|
+
* "op": {
|
|
1149
|
+
* "type": "account_created_operation",
|
|
1150
|
+
* "value": {
|
|
1151
|
+
* "creator": "steem",
|
|
1152
|
+
* "new_account_name": "kefadex",
|
|
1153
|
+
* "initial_delegation": {
|
|
1154
|
+
* "nai": "@@000000037",
|
|
1155
|
+
* "amount": "0",
|
|
1156
|
+
* "precision": 6
|
|
1157
|
+
* },
|
|
1158
|
+
* "initial_vesting_shares": {
|
|
1159
|
+
* "nai": "@@000000037",
|
|
1160
|
+
* "amount": "30038455132",
|
|
1161
|
+
* "precision": 6
|
|
1162
|
+
* }
|
|
1163
|
+
* }
|
|
1164
|
+
* },
|
|
1165
|
+
* "block": 5000000,
|
|
1166
|
+
* "trx_id": "6707feb450da66dc223ab5cb3e259937b2fef6bf",
|
|
1167
|
+
* "op_pos": 1,
|
|
1168
|
+
* "op_type_id": 80,
|
|
1169
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
1170
|
+
* "virtual_op": true,
|
|
1171
|
+
* "operation_id": "21474836480000336",
|
|
1172
|
+
* "trx_in_block": 0
|
|
1173
|
+
* }
|
|
1174
|
+
* ]
|
|
1175
|
+
* }
|
|
1176
|
+
*/
|
|
1177
|
+
'application/json': components['schemas']['hafah_backend.operation_history'];
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
/** @description The result is empty */
|
|
1181
|
+
404: {
|
|
1182
|
+
headers: {
|
|
1183
|
+
[name: string]: unknown;
|
|
1184
|
+
};
|
|
1185
|
+
content?: never;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
'hafah_endpoints.get_operations': {
|
|
1190
|
+
parameters: {
|
|
1191
|
+
query: {
|
|
1192
|
+
/**
|
|
1193
|
+
* @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).
|
|
1194
|
+
*
|
|
1195
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1196
|
+
* where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
|
|
1197
|
+
*
|
|
1198
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
1199
|
+
*
|
|
1200
|
+
* * `2016-09-15 19:47:21`
|
|
1201
|
+
*
|
|
1202
|
+
* * `5000000`
|
|
1203
|
+
*/
|
|
1204
|
+
'from-block': string;
|
|
1205
|
+
/**
|
|
1206
|
+
* @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).
|
|
1207
|
+
*
|
|
1208
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1209
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
1210
|
+
*
|
|
1211
|
+
* The function will convert the value depending on its format, example input:
|
|
1212
|
+
*
|
|
1213
|
+
* * `2016-09-15 19:47:21`
|
|
1214
|
+
*
|
|
1215
|
+
* * `5000000`
|
|
1216
|
+
*/
|
|
1217
|
+
'to-block': string;
|
|
1218
|
+
/**
|
|
1219
|
+
* @description List of operations: if the parameter is empty, all operations will be included.
|
|
1220
|
+
* example: `18,12`
|
|
1221
|
+
*/
|
|
1222
|
+
'operation-types'?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* @description filter operations by:
|
|
1225
|
+
*
|
|
1226
|
+
* * `virtual` - only virtual operations
|
|
1227
|
+
*
|
|
1228
|
+
* * `real` - only real operations
|
|
1229
|
+
*
|
|
1230
|
+
* * `all` - all operations
|
|
1231
|
+
*/
|
|
1232
|
+
'operation-group-type'?: components['schemas']['hafah_backend.operation_group_types'];
|
|
1233
|
+
/** @description Starting operation id */
|
|
1234
|
+
'operation-begin'?: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* @description A limit of retrieved operations per page,
|
|
1237
|
+
* up to 150000
|
|
1238
|
+
*/
|
|
1239
|
+
'page-size'?: number;
|
|
1240
|
+
/** @description If true, operations from reversible blocks will be included. */
|
|
1241
|
+
'include-reversible'?: boolean;
|
|
1242
|
+
};
|
|
1243
|
+
header?: never;
|
|
1244
|
+
path?: never;
|
|
1245
|
+
cookie?: never;
|
|
1246
|
+
};
|
|
1247
|
+
requestBody?: never;
|
|
1248
|
+
responses: {
|
|
1249
|
+
/** @description * Returns `hafah_backend.operations_in_block_range` */
|
|
1250
|
+
200: {
|
|
1251
|
+
headers: {
|
|
1252
|
+
[name: string]: unknown;
|
|
1253
|
+
};
|
|
1254
|
+
content: {
|
|
1255
|
+
/**
|
|
1256
|
+
* @example {
|
|
1257
|
+
* "ops": [
|
|
1258
|
+
* {
|
|
1259
|
+
* "op": {
|
|
1260
|
+
* "type": "effective_comment_vote_operation",
|
|
1261
|
+
* "value": {
|
|
1262
|
+
* "voter": "rkpl",
|
|
1263
|
+
* "author": "thedevil",
|
|
1264
|
+
* "weight": 0,
|
|
1265
|
+
* "rshares": -1383373254,
|
|
1266
|
+
* "permlink": "re-rkpl-how-to-make-a-good-picture-of-the-moon-my-guide-and-photos-20160915t193128824z",
|
|
1267
|
+
* "pending_payout": {
|
|
1268
|
+
* "nai": "@@000000013",
|
|
1269
|
+
* "amount": "0",
|
|
1270
|
+
* "precision": 3
|
|
1271
|
+
* },
|
|
1272
|
+
* "total_vote_weight": 590910411298246
|
|
1273
|
+
* }
|
|
1274
|
+
* },
|
|
1275
|
+
* "block": 4999999,
|
|
1276
|
+
* "trx_id": "9f4639be729f8ca436ac5bd01b5684cbc126d44d",
|
|
1277
|
+
* "op_in_trx": 1,
|
|
1278
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
1279
|
+
* "virtual_op": true,
|
|
1280
|
+
* "operation_id": "21474832185033032",
|
|
1281
|
+
* "trx_in_block": 0
|
|
1282
|
+
* },
|
|
1283
|
+
* {
|
|
1284
|
+
* "op": {
|
|
1285
|
+
* "type": "limit_order_cancelled_operation",
|
|
1286
|
+
* "value": {
|
|
1287
|
+
* "seller": "cvk",
|
|
1288
|
+
* "orderid": 1473968539,
|
|
1289
|
+
* "amount_back": {
|
|
1290
|
+
* "nai": "@@000000021",
|
|
1291
|
+
* "amount": "9941",
|
|
1292
|
+
* "precision": 3
|
|
1293
|
+
* }
|
|
1294
|
+
* }
|
|
1295
|
+
* },
|
|
1296
|
+
* "block": 4999999,
|
|
1297
|
+
* "trx_id": "8f2a70dbe09902473eac39ffbd8ff626cb49bb51",
|
|
1298
|
+
* "op_in_trx": 1,
|
|
1299
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
1300
|
+
* "virtual_op": true,
|
|
1301
|
+
* "operation_id": "21474832185033557",
|
|
1302
|
+
* "trx_in_block": 1
|
|
1303
|
+
* },
|
|
1304
|
+
* {
|
|
1305
|
+
* "op": {
|
|
1306
|
+
* "type": "pow_reward_operation",
|
|
1307
|
+
* "value": {
|
|
1308
|
+
* "reward": {
|
|
1309
|
+
* "nai": "@@000000037",
|
|
1310
|
+
* "amount": "5031442145",
|
|
1311
|
+
* "precision": 6
|
|
1312
|
+
* },
|
|
1313
|
+
* "worker": "smooth.witness"
|
|
1314
|
+
* }
|
|
1315
|
+
* },
|
|
1316
|
+
* "block": 4999999,
|
|
1317
|
+
* "trx_id": "a9596ee741bd4b4b7d3d8cadd15416bfe854209e",
|
|
1318
|
+
* "op_in_trx": 1,
|
|
1319
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
1320
|
+
* "virtual_op": true,
|
|
1321
|
+
* "operation_id": "21474832185034062",
|
|
1322
|
+
* "trx_in_block": 2
|
|
1323
|
+
* },
|
|
1324
|
+
* {
|
|
1325
|
+
* "op": {
|
|
1326
|
+
* "type": "limit_order_cancelled_operation",
|
|
1327
|
+
* "value": {
|
|
1328
|
+
* "seller": "paco-steem",
|
|
1329
|
+
* "orderid": 1243424767,
|
|
1330
|
+
* "amount_back": {
|
|
1331
|
+
* "nai": "@@000000013",
|
|
1332
|
+
* "amount": "19276",
|
|
1333
|
+
* "precision": 3
|
|
1334
|
+
* }
|
|
1335
|
+
* }
|
|
1336
|
+
* },
|
|
1337
|
+
* "block": 4999999,
|
|
1338
|
+
* "trx_id": "b664e368d117e0b0d4b1b32325a18044f47b5ca5",
|
|
1339
|
+
* "op_in_trx": 1,
|
|
1340
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
1341
|
+
* "virtual_op": true,
|
|
1342
|
+
* "operation_id": "21474832185034581",
|
|
1343
|
+
* "trx_in_block": 3
|
|
1344
|
+
* },
|
|
1345
|
+
* {
|
|
1346
|
+
* "op": {
|
|
1347
|
+
* "type": "producer_reward_operation",
|
|
1348
|
+
* "value": {
|
|
1349
|
+
* "producer": "smooth.witness",
|
|
1350
|
+
* "vesting_shares": {
|
|
1351
|
+
* "nai": "@@000000037",
|
|
1352
|
+
* "amount": "3003846056",
|
|
1353
|
+
* "precision": 6
|
|
1354
|
+
* }
|
|
1355
|
+
* }
|
|
1356
|
+
* },
|
|
1357
|
+
* "block": 4999999,
|
|
1358
|
+
* "trx_id": "0000000000000000000000000000000000000000",
|
|
1359
|
+
* "op_in_trx": 1,
|
|
1360
|
+
* "timestamp": "2016-09-15T19:47:18",
|
|
1361
|
+
* "virtual_op": true,
|
|
1362
|
+
* "operation_id": "21474832185034816",
|
|
1363
|
+
* "trx_in_block": 4294967295
|
|
1364
|
+
* },
|
|
1365
|
+
* {
|
|
1366
|
+
* "op": {
|
|
1367
|
+
* "type": "account_created_operation",
|
|
1368
|
+
* "value": {
|
|
1369
|
+
* "creator": "steem",
|
|
1370
|
+
* "new_account_name": "kefadex",
|
|
1371
|
+
* "initial_delegation": {
|
|
1372
|
+
* "nai": "@@000000037",
|
|
1373
|
+
* "amount": "0",
|
|
1374
|
+
* "precision": 6
|
|
1375
|
+
* },
|
|
1376
|
+
* "initial_vesting_shares": {
|
|
1377
|
+
* "nai": "@@000000037",
|
|
1378
|
+
* "amount": "30038455132",
|
|
1379
|
+
* "precision": 6
|
|
1380
|
+
* }
|
|
1381
|
+
* }
|
|
1382
|
+
* },
|
|
1383
|
+
* "block": 5000000,
|
|
1384
|
+
* "trx_id": "6707feb450da66dc223ab5cb3e259937b2fef6bf",
|
|
1385
|
+
* "op_in_trx": 1,
|
|
1386
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
1387
|
+
* "virtual_op": true,
|
|
1388
|
+
* "operation_id": "21474836480000336",
|
|
1389
|
+
* "trx_in_block": 0
|
|
1390
|
+
* },
|
|
1391
|
+
* {
|
|
1392
|
+
* "op": {
|
|
1393
|
+
* "type": "producer_reward_operation",
|
|
1394
|
+
* "value": {
|
|
1395
|
+
* "producer": "ihashfury",
|
|
1396
|
+
* "vesting_shares": {
|
|
1397
|
+
* "nai": "@@000000037",
|
|
1398
|
+
* "amount": "3003845513",
|
|
1399
|
+
* "precision": 6
|
|
1400
|
+
* }
|
|
1401
|
+
* }
|
|
1402
|
+
* },
|
|
1403
|
+
* "block": 5000000,
|
|
1404
|
+
* "trx_id": "0000000000000000000000000000000000000000",
|
|
1405
|
+
* "op_in_trx": 1,
|
|
1406
|
+
* "timestamp": "2016-09-15T19:47:21",
|
|
1407
|
+
* "virtual_op": true,
|
|
1408
|
+
* "operation_id": "21474836480000832",
|
|
1409
|
+
* "trx_in_block": 4294967295
|
|
1410
|
+
* }
|
|
1411
|
+
* ],
|
|
1412
|
+
* "next_operation_begin": 0,
|
|
1413
|
+
* "next_block_range_begin": 5000000
|
|
1414
|
+
* }
|
|
1415
|
+
*/
|
|
1416
|
+
'application/json': components['schemas']['hafah_backend.operations_in_block_range'];
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
'hafah_endpoints.get_operation': {
|
|
1422
|
+
parameters: {
|
|
1423
|
+
query?: never;
|
|
1424
|
+
header?: never;
|
|
1425
|
+
path: {
|
|
1426
|
+
/**
|
|
1427
|
+
* @description An operation-id is a unique operation identifier,
|
|
1428
|
+
* encodes three key pieces of information into a single number,
|
|
1429
|
+
* with each piece occupying a specific number of bits:
|
|
1430
|
+
*
|
|
1431
|
+
* ```
|
|
1432
|
+
* msb.....................lsb
|
|
1433
|
+
* || block | op_pos | type ||
|
|
1434
|
+
* || 32b | 24b | 8b ||
|
|
1435
|
+
* ```
|
|
1436
|
+
*
|
|
1437
|
+
* * block (block number) - occupies 32 bits.
|
|
1438
|
+
*
|
|
1439
|
+
* * op_pos (position of an operation in block) - occupies 24 bits.
|
|
1440
|
+
*
|
|
1441
|
+
* * type (operation type) - occupies 8 bits.
|
|
1442
|
+
*/
|
|
1443
|
+
'operation-id': number;
|
|
1444
|
+
};
|
|
1445
|
+
cookie?: never;
|
|
1446
|
+
};
|
|
1447
|
+
requestBody?: never;
|
|
1448
|
+
responses: {
|
|
1449
|
+
/**
|
|
1450
|
+
* @description Operation parameters
|
|
1451
|
+
*
|
|
1452
|
+
* * Returns `hafah_backend.operation`
|
|
1453
|
+
*/
|
|
1454
|
+
200: {
|
|
1455
|
+
headers: {
|
|
1456
|
+
[name: string]: unknown;
|
|
1457
|
+
};
|
|
1458
|
+
content: {
|
|
1459
|
+
/**
|
|
1460
|
+
* @example {
|
|
1461
|
+
* "op": {
|
|
1462
|
+
* "type": "producer_reward_operation",
|
|
1463
|
+
* "value": {
|
|
1464
|
+
* "producer": "initminer",
|
|
1465
|
+
* "vesting_shares": {
|
|
1466
|
+
* "nai": "@@000000021",
|
|
1467
|
+
* "amount": "1000",
|
|
1468
|
+
* "precision": 3
|
|
1469
|
+
* }
|
|
1470
|
+
* }
|
|
1471
|
+
* },
|
|
1472
|
+
* "block": 803,
|
|
1473
|
+
* "trx_id": null,
|
|
1474
|
+
* "op_pos": 1,
|
|
1475
|
+
* "op_type_id": 64,
|
|
1476
|
+
* "timestamp": "2016-03-24T16:45:39",
|
|
1477
|
+
* "virtual_op": true,
|
|
1478
|
+
* "operation_id": "3448858738752",
|
|
1479
|
+
* "trx_in_block": -1
|
|
1480
|
+
* }
|
|
1481
|
+
*/
|
|
1482
|
+
'application/json': components['schemas']['hafah_backend.operation'];
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
'hafah_endpoints.get_op_types': {
|
|
1488
|
+
parameters: {
|
|
1489
|
+
query?: {
|
|
1490
|
+
/** @description parial name of operation */
|
|
1491
|
+
'partial-operation-name'?: string;
|
|
1492
|
+
};
|
|
1493
|
+
header?: never;
|
|
1494
|
+
path?: never;
|
|
1495
|
+
cookie?: never;
|
|
1496
|
+
};
|
|
1497
|
+
requestBody?: never;
|
|
1498
|
+
responses: {
|
|
1499
|
+
/**
|
|
1500
|
+
* @description Operation type list,
|
|
1501
|
+
* if `partial-operation-name` is provided then the list
|
|
1502
|
+
* is limited to operations that partially match the `partial-operation-name`
|
|
1503
|
+
*
|
|
1504
|
+
* * Returns array of `hafah_backend.op_types`
|
|
1505
|
+
*/
|
|
1506
|
+
200: {
|
|
1507
|
+
headers: {
|
|
1508
|
+
[name: string]: unknown;
|
|
1509
|
+
};
|
|
1510
|
+
content: {
|
|
1511
|
+
/**
|
|
1512
|
+
* @example [
|
|
1513
|
+
* {
|
|
1514
|
+
* "op_type_id": 51,
|
|
1515
|
+
* "operation_name": "author_reward_operation",
|
|
1516
|
+
* "is_virtual": true
|
|
1517
|
+
* }
|
|
1518
|
+
* ]
|
|
1519
|
+
*/
|
|
1520
|
+
'application/json': components['schemas']['hafah_backend.array_of_op_types'];
|
|
1521
|
+
};
|
|
1522
|
+
};
|
|
1523
|
+
/** @description No operations in the database */
|
|
1524
|
+
404: {
|
|
1525
|
+
headers: {
|
|
1526
|
+
[name: string]: unknown;
|
|
1527
|
+
};
|
|
1528
|
+
content?: never;
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
'hafah_endpoints.get_operation_keys': {
|
|
1533
|
+
parameters: {
|
|
1534
|
+
query?: never;
|
|
1535
|
+
header?: never;
|
|
1536
|
+
path: {
|
|
1537
|
+
/** @description Unique operation type identifier */
|
|
1538
|
+
'type-id': number;
|
|
1539
|
+
};
|
|
1540
|
+
cookie?: never;
|
|
1541
|
+
};
|
|
1542
|
+
requestBody?: never;
|
|
1543
|
+
responses: {
|
|
1544
|
+
/**
|
|
1545
|
+
* @description Operation json key paths
|
|
1546
|
+
*
|
|
1547
|
+
* * Returns `JSON`
|
|
1548
|
+
*/
|
|
1549
|
+
200: {
|
|
1550
|
+
headers: {
|
|
1551
|
+
[name: string]: unknown;
|
|
1552
|
+
};
|
|
1553
|
+
content: {
|
|
1554
|
+
/**
|
|
1555
|
+
* @example [
|
|
1556
|
+
* [
|
|
1557
|
+
* "value",
|
|
1558
|
+
* "body"
|
|
1559
|
+
* ],
|
|
1560
|
+
* [
|
|
1561
|
+
* "value",
|
|
1562
|
+
* "title"
|
|
1563
|
+
* ],
|
|
1564
|
+
* [
|
|
1565
|
+
* "value",
|
|
1566
|
+
* "author"
|
|
1567
|
+
* ],
|
|
1568
|
+
* [
|
|
1569
|
+
* "value",
|
|
1570
|
+
* "permlink"
|
|
1571
|
+
* ],
|
|
1572
|
+
* [
|
|
1573
|
+
* "value",
|
|
1574
|
+
* "json_metadata"
|
|
1575
|
+
* ],
|
|
1576
|
+
* [
|
|
1577
|
+
* "value",
|
|
1578
|
+
* "parent_author"
|
|
1579
|
+
* ],
|
|
1580
|
+
* [
|
|
1581
|
+
* "value",
|
|
1582
|
+
* "parent_permlink"
|
|
1583
|
+
* ]
|
|
1584
|
+
* ]
|
|
1585
|
+
*/
|
|
1586
|
+
'application/json': string[][];
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
'hafah_endpoints.get_transaction': {
|
|
1592
|
+
parameters: {
|
|
1593
|
+
query?: {
|
|
1594
|
+
/** @description If true, virtual operations will be included. */
|
|
1595
|
+
'include-virtual'?: boolean;
|
|
1596
|
+
};
|
|
1597
|
+
header?: never;
|
|
1598
|
+
path: {
|
|
1599
|
+
/** @description transaction id of transaction to look up */
|
|
1600
|
+
'transaction-id': string;
|
|
1601
|
+
};
|
|
1602
|
+
cookie?: never;
|
|
1603
|
+
};
|
|
1604
|
+
requestBody?: never;
|
|
1605
|
+
responses: {
|
|
1606
|
+
/**
|
|
1607
|
+
* @description The transaction body
|
|
1608
|
+
*
|
|
1609
|
+
* * Returns `hafah_backend.transaction`
|
|
1610
|
+
*/
|
|
1611
|
+
200: {
|
|
1612
|
+
headers: {
|
|
1613
|
+
[name: string]: unknown;
|
|
1614
|
+
};
|
|
1615
|
+
content: {
|
|
1616
|
+
/**
|
|
1617
|
+
* @example {
|
|
1618
|
+
* "transaction_json": {
|
|
1619
|
+
* "ref_block_num": 25532,
|
|
1620
|
+
* "ref_block_prefix": 3338687976,
|
|
1621
|
+
* "extensions": [],
|
|
1622
|
+
* "expiration": "2016-08-12T17:23:48",
|
|
1623
|
+
* "operations": [
|
|
1624
|
+
* {
|
|
1625
|
+
* "type": "custom_json_operation",
|
|
1626
|
+
* "value": {
|
|
1627
|
+
* "id": "follow",
|
|
1628
|
+
* "json": "{\"follower\":\"breck0882\",\"following\":\"steemship\",\"what\":[]}",
|
|
1629
|
+
* "required_auths": [],
|
|
1630
|
+
* "required_posting_auths": [
|
|
1631
|
+
* "breck0882"
|
|
1632
|
+
* ]
|
|
1633
|
+
* }
|
|
1634
|
+
* }
|
|
1635
|
+
* ],
|
|
1636
|
+
* "signatures": [
|
|
1637
|
+
* "201655190aac43bb272185c577262796c57e5dd654e3e491b9b32bd2d567c6d5de75185f221a38697d04d1a8e6a9deb722ec6d6b5d2f395dcfbb94f0e5898e858f"
|
|
1638
|
+
* ]
|
|
1639
|
+
* },
|
|
1640
|
+
* "transaction_id": "954f6de36e6715d128fa8eb5a053fc254b05ded0",
|
|
1641
|
+
* "block_num": 4023233,
|
|
1642
|
+
* "transaction_num": 0,
|
|
1643
|
+
* "timestamp": "2016-08-12T17:23:39"
|
|
1644
|
+
* }
|
|
1645
|
+
*/
|
|
1646
|
+
'application/json': components['schemas']['hafah_backend.transaction'];
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
'hafah_endpoints.get_ops_by_account': {
|
|
1652
|
+
parameters: {
|
|
1653
|
+
query?: {
|
|
1654
|
+
/** @description Account to filter operations by, if provided only operations where the account is an author will be returned. */
|
|
1655
|
+
'transacting-account-name'?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* @description filter operations by:
|
|
1658
|
+
*
|
|
1659
|
+
* * `include` - List only operations where transacting_account_id was the author.
|
|
1660
|
+
*
|
|
1661
|
+
* * `exclude` - List only operations where transacting_account_id was not the author.
|
|
1662
|
+
*
|
|
1663
|
+
* * `all` - No filtering, transacting_account_id must be NULL.
|
|
1664
|
+
*/
|
|
1665
|
+
'participation-mode'?: components['schemas']['hafah_backend.participation_mode'];
|
|
1666
|
+
/**
|
|
1667
|
+
* @description List of operation types to get. If NULL, gets all operation types.
|
|
1668
|
+
* example: `18,12`
|
|
1669
|
+
*/
|
|
1670
|
+
'operation-types'?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* @description Return page on `page` number, default null due to reversed order of pages,
|
|
1673
|
+
* the first page is the oldest,
|
|
1674
|
+
* example: first call returns the newest page and total_pages is 100 - the newest page is number 100, next 99 etc.
|
|
1675
|
+
*/
|
|
1676
|
+
page?: number;
|
|
1677
|
+
/** @description Return max `page-size` operations per page, defaults to `100`. */
|
|
1678
|
+
'page-size'?: number;
|
|
1679
|
+
/**
|
|
1680
|
+
* @description If the operation length exceeds the data size limit,
|
|
1681
|
+
* the operation body is replaced with a placeholder (defaults to `200000`).
|
|
1682
|
+
*/
|
|
1683
|
+
'data-size-limit'?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* @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).
|
|
1686
|
+
*
|
|
1687
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1688
|
+
* where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
|
|
1689
|
+
*
|
|
1690
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
1691
|
+
*
|
|
1692
|
+
* * `2016-09-15 19:47:21`
|
|
1693
|
+
*
|
|
1694
|
+
* * `5000000`
|
|
1695
|
+
*/
|
|
1696
|
+
'from-block'?: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* @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).
|
|
1699
|
+
*
|
|
1700
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1701
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
1702
|
+
*
|
|
1703
|
+
* The function will convert the value depending on its format, example input:
|
|
1704
|
+
*
|
|
1705
|
+
* * `2016-09-15 19:47:21`
|
|
1706
|
+
*
|
|
1707
|
+
* * `5000000`
|
|
1708
|
+
*/
|
|
1709
|
+
'to-block'?: string;
|
|
1710
|
+
};
|
|
1711
|
+
header?: never;
|
|
1712
|
+
path: {
|
|
1713
|
+
/** @description Account to get operations for. */
|
|
1714
|
+
'account-name': string;
|
|
1715
|
+
};
|
|
1716
|
+
cookie?: never;
|
|
1717
|
+
};
|
|
1718
|
+
requestBody?: never;
|
|
1719
|
+
responses: {
|
|
1720
|
+
/**
|
|
1721
|
+
* @description Result contains total number of operations,
|
|
1722
|
+
* total pages, and the list of operations.
|
|
1723
|
+
*
|
|
1724
|
+
* * Returns `hafah_backend.account_operation_history`
|
|
1725
|
+
*/
|
|
1726
|
+
200: {
|
|
1727
|
+
headers: {
|
|
1728
|
+
[name: string]: unknown;
|
|
1729
|
+
};
|
|
1730
|
+
content: {
|
|
1731
|
+
/**
|
|
1732
|
+
* @example {
|
|
1733
|
+
* "total_operations": 219867,
|
|
1734
|
+
* "total_pages": 73289,
|
|
1735
|
+
* "block_range": {
|
|
1736
|
+
* "from": 1,
|
|
1737
|
+
* "to": 5000000
|
|
1738
|
+
* },
|
|
1739
|
+
* "operations_result": [
|
|
1740
|
+
* {
|
|
1741
|
+
* "op": {
|
|
1742
|
+
* "type": "transfer_operation",
|
|
1743
|
+
* "value": {
|
|
1744
|
+
* "to": "blocktrades",
|
|
1745
|
+
* "from": "mrwang",
|
|
1746
|
+
* "memo": "a79c09cd-0084-4cd4-ae63-bf6d2514fef9",
|
|
1747
|
+
* "amount": {
|
|
1748
|
+
* "nai": "@@000000013",
|
|
1749
|
+
* "amount": "1633",
|
|
1750
|
+
* "precision": 3
|
|
1751
|
+
* }
|
|
1752
|
+
* }
|
|
1753
|
+
* },
|
|
1754
|
+
* "block": 4999997,
|
|
1755
|
+
* "trx_id": "e75f833ceb62570c25504b55d0f23d86d9d76423",
|
|
1756
|
+
* "op_pos": 0,
|
|
1757
|
+
* "op_type_id": 2,
|
|
1758
|
+
* "timestamp": "2016-09-15T19:47:12",
|
|
1759
|
+
* "virtual_op": false,
|
|
1760
|
+
* "operation_id": "21474823595099394",
|
|
1761
|
+
* "trx_in_block": 3
|
|
1762
|
+
* },
|
|
1763
|
+
* {
|
|
1764
|
+
* "op": {
|
|
1765
|
+
* "type": "producer_reward_operation",
|
|
1766
|
+
* "value": {
|
|
1767
|
+
* "producer": "blocktrades",
|
|
1768
|
+
* "vesting_shares": {
|
|
1769
|
+
* "nai": "@@000000037",
|
|
1770
|
+
* "amount": "3003850165",
|
|
1771
|
+
* "precision": 6
|
|
1772
|
+
* }
|
|
1773
|
+
* }
|
|
1774
|
+
* },
|
|
1775
|
+
* "block": 4999992,
|
|
1776
|
+
* "trx_id": null,
|
|
1777
|
+
* "op_pos": 1,
|
|
1778
|
+
* "op_type_id": 64,
|
|
1779
|
+
* "timestamp": "2016-09-15T19:46:57",
|
|
1780
|
+
* "virtual_op": true,
|
|
1781
|
+
* "operation_id": "21474802120262208",
|
|
1782
|
+
* "trx_in_block": -1
|
|
1783
|
+
* },
|
|
1784
|
+
* {
|
|
1785
|
+
* "op": {
|
|
1786
|
+
* "type": "producer_reward_operation",
|
|
1787
|
+
* "value": {
|
|
1788
|
+
* "producer": "blocktrades",
|
|
1789
|
+
* "vesting_shares": {
|
|
1790
|
+
* "nai": "@@000000037",
|
|
1791
|
+
* "amount": "3003868105",
|
|
1792
|
+
* "precision": 6
|
|
1793
|
+
* }
|
|
1794
|
+
* }
|
|
1795
|
+
* },
|
|
1796
|
+
* "block": 4999959,
|
|
1797
|
+
* "trx_id": null,
|
|
1798
|
+
* "op_pos": 1,
|
|
1799
|
+
* "op_type_id": 64,
|
|
1800
|
+
* "timestamp": "2016-09-15T19:45:12",
|
|
1801
|
+
* "virtual_op": true,
|
|
1802
|
+
* "operation_id": "21474660386343488",
|
|
1803
|
+
* "trx_in_block": -1
|
|
1804
|
+
* }
|
|
1805
|
+
* ]
|
|
1806
|
+
* }
|
|
1807
|
+
*/
|
|
1808
|
+
'application/json': components['schemas']['hafah_backend.account_operation_history'];
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
/** @description No such account in the database */
|
|
1812
|
+
404: {
|
|
1813
|
+
headers: {
|
|
1814
|
+
[name: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
content?: never;
|
|
1817
|
+
};
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
'hafah_endpoints.get_acc_op_types': {
|
|
1821
|
+
parameters: {
|
|
1822
|
+
query?: never;
|
|
1823
|
+
header?: never;
|
|
1824
|
+
path: {
|
|
1825
|
+
/** @description Name of the account */
|
|
1826
|
+
'account-name': string;
|
|
1827
|
+
};
|
|
1828
|
+
cookie?: never;
|
|
1829
|
+
};
|
|
1830
|
+
requestBody?: never;
|
|
1831
|
+
responses: {
|
|
1832
|
+
/**
|
|
1833
|
+
* @description Operation type list
|
|
1834
|
+
*
|
|
1835
|
+
* * Returns array of `INT`
|
|
1836
|
+
*/
|
|
1837
|
+
200: {
|
|
1838
|
+
headers: {
|
|
1839
|
+
[name: string]: unknown;
|
|
1840
|
+
};
|
|
1841
|
+
content: {
|
|
1842
|
+
/**
|
|
1843
|
+
* @example [
|
|
1844
|
+
* 0,
|
|
1845
|
+
* 1,
|
|
1846
|
+
* 2,
|
|
1847
|
+
* 3,
|
|
1848
|
+
* 4,
|
|
1849
|
+
* 5,
|
|
1850
|
+
* 6,
|
|
1851
|
+
* 7,
|
|
1852
|
+
* 10,
|
|
1853
|
+
* 11,
|
|
1854
|
+
* 12,
|
|
1855
|
+
* 13,
|
|
1856
|
+
* 14,
|
|
1857
|
+
* 15,
|
|
1858
|
+
* 18,
|
|
1859
|
+
* 20,
|
|
1860
|
+
* 51,
|
|
1861
|
+
* 52,
|
|
1862
|
+
* 53,
|
|
1863
|
+
* 55,
|
|
1864
|
+
* 56,
|
|
1865
|
+
* 57,
|
|
1866
|
+
* 61,
|
|
1867
|
+
* 64,
|
|
1868
|
+
* 72,
|
|
1869
|
+
* 77,
|
|
1870
|
+
* 78,
|
|
1871
|
+
* 79,
|
|
1872
|
+
* 80,
|
|
1873
|
+
* 85,
|
|
1874
|
+
* 86
|
|
1875
|
+
* ]
|
|
1876
|
+
*/
|
|
1877
|
+
'application/json': number[];
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
'hafah_endpoints.get_trade_history': {
|
|
1883
|
+
parameters: {
|
|
1884
|
+
query: {
|
|
1885
|
+
/**
|
|
1886
|
+
* @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).
|
|
1887
|
+
*
|
|
1888
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1889
|
+
* where the block's `created_at` is more than or equal to the given `timestamp` (i.e. `block's created_at >= timestamp`).
|
|
1890
|
+
*
|
|
1891
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
1892
|
+
*
|
|
1893
|
+
* * `2016-09-15 19:47:21`
|
|
1894
|
+
*
|
|
1895
|
+
* * `5000000`
|
|
1896
|
+
*/
|
|
1897
|
+
'from-block': string;
|
|
1898
|
+
/**
|
|
1899
|
+
* @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).
|
|
1900
|
+
*
|
|
1901
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
1902
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
1903
|
+
*
|
|
1904
|
+
* The function will convert the value depending on its format, example input:
|
|
1905
|
+
*
|
|
1906
|
+
* * `2016-09-15 19:47:21`
|
|
1907
|
+
*
|
|
1908
|
+
* * `5000000`
|
|
1909
|
+
*/
|
|
1910
|
+
'to-block': string;
|
|
1911
|
+
/** @description A limit of retrieved orders */
|
|
1912
|
+
'result-limit': number;
|
|
1913
|
+
};
|
|
1914
|
+
header?: never;
|
|
1915
|
+
path?: never;
|
|
1916
|
+
cookie?: never;
|
|
1917
|
+
};
|
|
1918
|
+
requestBody?: never;
|
|
1919
|
+
responses: {
|
|
1920
|
+
/** @description * Returns `hafah_backend.array_of_fill_order` */
|
|
1921
|
+
200: {
|
|
1922
|
+
headers: {
|
|
1923
|
+
[name: string]: unknown;
|
|
1924
|
+
};
|
|
1925
|
+
content: {
|
|
1926
|
+
/**
|
|
1927
|
+
* @example [
|
|
1928
|
+
* {
|
|
1929
|
+
* "current_pays": {
|
|
1930
|
+
* "amount": "1000",
|
|
1931
|
+
* "nai": "@@000000013",
|
|
1932
|
+
* "precision": 3
|
|
1933
|
+
* },
|
|
1934
|
+
* "date": "2025-04-26T11:45:57",
|
|
1935
|
+
* "maker": "quicktrades",
|
|
1936
|
+
* "open_pays": {
|
|
1937
|
+
* "amount": "3871",
|
|
1938
|
+
* "nai": "@@000000021",
|
|
1939
|
+
* "precision": 3
|
|
1940
|
+
* },
|
|
1941
|
+
* "taker": "elon.curator"
|
|
1942
|
+
* },
|
|
1943
|
+
* {
|
|
1944
|
+
* "current_pays": {
|
|
1945
|
+
* "amount": "1939",
|
|
1946
|
+
* "nai": "@@000000021",
|
|
1947
|
+
* "precision": 3
|
|
1948
|
+
* },
|
|
1949
|
+
* "date": "2025-05-26T11:45:30",
|
|
1950
|
+
* "maker": "quicktrades",
|
|
1951
|
+
* "open_pays": {
|
|
1952
|
+
* "amount": "500",
|
|
1953
|
+
* "nai": "@@000000013",
|
|
1954
|
+
* "precision": 3
|
|
1955
|
+
* },
|
|
1956
|
+
* "taker": "cst90"
|
|
1957
|
+
* }
|
|
1958
|
+
* ]
|
|
1959
|
+
*/
|
|
1960
|
+
'application/json': components['schemas']['hafah_backend.array_of_fill_order'];
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
};
|
|
1965
|
+
'hafah_endpoints.get_recent_trades': {
|
|
1966
|
+
parameters: {
|
|
1967
|
+
query: {
|
|
1968
|
+
/** @description A limit of retrieved orders */
|
|
1969
|
+
'result-limit': number;
|
|
1970
|
+
};
|
|
1971
|
+
header?: never;
|
|
1972
|
+
path?: never;
|
|
1973
|
+
cookie?: never;
|
|
1974
|
+
};
|
|
1975
|
+
requestBody?: never;
|
|
1976
|
+
responses: {
|
|
1977
|
+
/** @description * Returns `hafah_backend.array_of_fill_order` */
|
|
1978
|
+
200: {
|
|
1979
|
+
headers: {
|
|
1980
|
+
[name: string]: unknown;
|
|
1981
|
+
};
|
|
1982
|
+
content: {
|
|
1983
|
+
/**
|
|
1984
|
+
* @example [
|
|
1985
|
+
* {
|
|
1986
|
+
* "current_pays": {
|
|
1987
|
+
* "amount": "1000",
|
|
1988
|
+
* "nai": "@@000000013",
|
|
1989
|
+
* "precision": 3
|
|
1990
|
+
* },
|
|
1991
|
+
* "date": "2025-05-26T11:45:57",
|
|
1992
|
+
* "maker": "quicktrades",
|
|
1993
|
+
* "open_pays": {
|
|
1994
|
+
* "amount": "3871",
|
|
1995
|
+
* "nai": "@@000000021",
|
|
1996
|
+
* "precision": 3
|
|
1997
|
+
* },
|
|
1998
|
+
* "taker": "elon.curator"
|
|
1999
|
+
* },
|
|
2000
|
+
* {
|
|
2001
|
+
* "current_pays": {
|
|
2002
|
+
* "amount": "1939",
|
|
2003
|
+
* "nai": "@@000000021",
|
|
2004
|
+
* "precision": 3
|
|
2005
|
+
* },
|
|
2006
|
+
* "date": "2025-05-26T11:45:30",
|
|
2007
|
+
* "maker": "quicktrades",
|
|
2008
|
+
* "open_pays": {
|
|
2009
|
+
* "amount": "500",
|
|
2010
|
+
* "nai": "@@000000013",
|
|
2011
|
+
* "precision": 3
|
|
2012
|
+
* },
|
|
2013
|
+
* "taker": "cst90"
|
|
2014
|
+
* }
|
|
2015
|
+
* ]
|
|
2016
|
+
*/
|
|
2017
|
+
'application/json': components['schemas']['hafah_backend.array_of_fill_order'];
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
2022
|
+
'hafah_endpoints.get_version': {
|
|
2023
|
+
parameters: {
|
|
2024
|
+
query?: never;
|
|
2025
|
+
header?: never;
|
|
2026
|
+
path?: never;
|
|
2027
|
+
cookie?: never;
|
|
2028
|
+
};
|
|
2029
|
+
requestBody?: never;
|
|
2030
|
+
responses: {
|
|
2031
|
+
/** @description * Returns `hafah_backend.version_type` */
|
|
2032
|
+
200: {
|
|
2033
|
+
headers: {
|
|
2034
|
+
[name: string]: unknown;
|
|
2035
|
+
};
|
|
2036
|
+
content: {
|
|
2037
|
+
/**
|
|
2038
|
+
* @example {
|
|
2039
|
+
* "app_name": "PostgRESTHAfAH",
|
|
2040
|
+
* "commit": "136fe35c62cdc0fd7d6ff41cf6c946cadc2a4cd5"
|
|
2041
|
+
* }
|
|
2042
|
+
*/
|
|
2043
|
+
'application/json': components['schemas']['hafah_backend.version_type'];
|
|
2044
|
+
};
|
|
2045
|
+
};
|
|
2046
|
+
/** @description App not installed */
|
|
2047
|
+
404: {
|
|
2048
|
+
headers: {
|
|
2049
|
+
[name: string]: unknown;
|
|
2050
|
+
};
|
|
2051
|
+
content?: never;
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
};
|
|
2055
|
+
'hafah_endpoints.get_head_block_num': {
|
|
2056
|
+
parameters: {
|
|
2057
|
+
query?: never;
|
|
2058
|
+
header?: never;
|
|
2059
|
+
path?: never;
|
|
2060
|
+
cookie?: never;
|
|
2061
|
+
};
|
|
2062
|
+
requestBody?: never;
|
|
2063
|
+
responses: {
|
|
2064
|
+
/**
|
|
2065
|
+
* @description Last block stored in HAF
|
|
2066
|
+
*
|
|
2067
|
+
* * Returns `INT`
|
|
2068
|
+
*/
|
|
2069
|
+
200: {
|
|
2070
|
+
headers: {
|
|
2071
|
+
[name: string]: unknown;
|
|
2072
|
+
};
|
|
2073
|
+
content: {
|
|
2074
|
+
/** @example 5000000 */
|
|
2075
|
+
'application/json': number;
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
/** @description No blocks in the database */
|
|
2079
|
+
404: {
|
|
2080
|
+
headers: {
|
|
2081
|
+
[name: string]: unknown;
|
|
2082
|
+
};
|
|
2083
|
+
content?: never;
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
'hafah_endpoints.get_global_state': {
|
|
2088
|
+
parameters: {
|
|
2089
|
+
query: {
|
|
2090
|
+
/**
|
|
2091
|
+
* @description Given block, can be represented either by a `block-num` (integer) or a `timestamp` (in the format `YYYY-MM-DD HH:MI:SS`),
|
|
2092
|
+
*
|
|
2093
|
+
* The provided `timestamp` will be converted to a `block-num` by finding the first block
|
|
2094
|
+
* where the block's `created_at` is less than or equal to the given `timestamp` (i.e. `block's created_at <= timestamp`).
|
|
2095
|
+
*
|
|
2096
|
+
* The function will interpret and convert the input based on its format, example input:
|
|
2097
|
+
*
|
|
2098
|
+
* * `2016-09-15 19:47:21`
|
|
2099
|
+
*
|
|
2100
|
+
* * `5000000`
|
|
2101
|
+
*/
|
|
2102
|
+
'block-num': string;
|
|
2103
|
+
};
|
|
2104
|
+
header?: never;
|
|
2105
|
+
path?: never;
|
|
2106
|
+
cookie?: never;
|
|
2107
|
+
};
|
|
2108
|
+
requestBody?: never;
|
|
2109
|
+
responses: {
|
|
2110
|
+
/**
|
|
2111
|
+
* @description Given block's stats
|
|
2112
|
+
*
|
|
2113
|
+
* * Returns `hafah_backend.block`
|
|
2114
|
+
*/
|
|
2115
|
+
200: {
|
|
2116
|
+
headers: {
|
|
2117
|
+
[name: string]: unknown;
|
|
2118
|
+
};
|
|
2119
|
+
content: {
|
|
2120
|
+
/**
|
|
2121
|
+
* @example {
|
|
2122
|
+
* "block_num": 5000000,
|
|
2123
|
+
* "hash": "004c4b40245ffb07380a393fb2b3d841b76cdaec",
|
|
2124
|
+
* "prev": "004c4b3fc6a8735b4ab5433d59f4526e4a042644",
|
|
2125
|
+
* "producer_account": "ihashfury",
|
|
2126
|
+
* "transaction_merkle_root": "97a8f2b04848b860f1792dc07bf58efcb15aeb8c",
|
|
2127
|
+
* "extensions": [],
|
|
2128
|
+
* "witness_signature": "1f6aa1c6311c768b5225b115eaf5798e5f1d8338af3970d90899cd5ccbe38f6d1f7676c5649bcca18150cbf8f07c0cc7ec3ae40d5936cfc6d5a650e582ba0f8002",
|
|
2129
|
+
* "signing_key": "STM8aUs6SGoEmNYMd3bYjE1UBr6NQPxGWmTqTdBaxJYSx244edSB2",
|
|
2130
|
+
* "hbd_interest_rate": 1000,
|
|
2131
|
+
* "total_vesting_fund_hive": "149190428013",
|
|
2132
|
+
* "total_vesting_shares": "448144916705468350",
|
|
2133
|
+
* "total_reward_fund_hive": "66003975",
|
|
2134
|
+
* "virtual_supply": "161253662237",
|
|
2135
|
+
* "current_supply": "157464400971",
|
|
2136
|
+
* "current_hbd_supply": "2413759427",
|
|
2137
|
+
* "dhf_interval_ledger": 0,
|
|
2138
|
+
* "created_at": "2016-09-15T19:47:21"
|
|
2139
|
+
* }
|
|
2140
|
+
*/
|
|
2141
|
+
'application/json': components['schemas']['hafah_backend.block'];
|
|
2142
|
+
};
|
|
2143
|
+
};
|
|
2144
|
+
/** @description No blocks in the database */
|
|
2145
|
+
404: {
|
|
2146
|
+
headers: {
|
|
2147
|
+
[name: string]: unknown;
|
|
2148
|
+
};
|
|
2149
|
+
content?: never;
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
//# sourceMappingURL=hafah.d.ts.map
|