@@ -26,14 +26,16 @@ Name | Type |
26
26
27
27
** Returns:** [ * BeeDebug* ] ( beedebug.md )
28
28
29
- Defined in: [ bee-js/src/bee-debug.ts:28 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L28 )
29
+ Defined in: [ bee-js/src/bee-debug.ts:36 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L36 )
30
30
31
31
## Properties
32
32
33
33
### url
34
34
35
35
• ` Readonly ` ** url** : * string*
36
36
37
+ Defined in: [ bee-js/src/bee-debug.ts:36] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L36 )
38
+
37
39
## Methods
38
40
39
41
### cashoutLastCheque
@@ -50,25 +52,25 @@ Name | Type | Description |
50
52
51
53
** Returns:** * Promise* <[ * CashoutResponse* ] ( ../interfaces/cashoutresponse.md ) \>
52
54
53
- Defined in: [ bee-js/src/bee-debug.ts:134 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L134 )
55
+ Defined in: [ bee-js/src/bee-debug.ts:161 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L161 )
54
56
55
57
___
56
58
57
59
### depositTokens
58
60
59
- ▸ ** depositTokens** (` amount ` : * number* ): * Promise* <[ * DepositTokensResponse* ] ( ../interfaces/deposittokensresponse.md ) \>
61
+ ▸ ** depositTokens** (` amount ` : * number* \| BigInt ): * Promise* <[ * DepositTokensResponse* ] ( ../interfaces/deposittokensresponse.md ) \>
60
62
61
63
Deposit tokens from overlay address into chequebook
62
64
63
65
#### Parameters:
64
66
65
67
Name | Type | Description |
66
68
:------ | :------ | :------ |
67
- ` amount ` | * number* | Amount of tokens to deposit |
69
+ ` amount ` | * number* \| BigInt | Amount of tokens to deposit (must be positive integer) |
68
70
69
71
** Returns:** * Promise* <[ * DepositTokensResponse* ] ( ../interfaces/deposittokensresponse.md ) \>
70
72
71
- Defined in: [ bee-js/src/bee-debug.ts:143 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L143 )
73
+ Defined in: [ bee-js/src/bee-debug.ts:170 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L170 )
72
74
73
75
___
74
76
@@ -80,7 +82,7 @@ Get the balances with all known peers including prepaid services
80
82
81
83
** Returns:** * Promise* <[ * BalanceResponse* ] ( ../interfaces/balanceresponse.md ) \>
82
84
83
- Defined in: [ bee-js/src/bee-debug.ts:57 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L57 )
85
+ Defined in: [ bee-js/src/bee-debug.ts:81 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L81 )
84
86
85
87
___
86
88
@@ -92,31 +94,56 @@ Get settlements with all known peers and total amount sent or received
92
94
93
95
** Returns:** * Promise* <[ * AllSettlements* ] ( ../interfaces/allsettlements.md ) \>
94
96
95
- Defined in: [ bee-js/src/bee-debug.ts:172] ( https://github.com/ethersphere/bee-js/blob/7dfd556/src/bee-debug.ts#L172 )
97
+ Defined in: [ bee-js/src/bee-debug.ts:207] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L207 )
98
+
99
+ ___
100
+
101
+ ### getBlocklist
102
+
103
+ ▸ ** getBlocklist** (): * Promise* <[ * Peer* ] ( ../interfaces/peer.md ) [ ] \>
104
+
105
+ ** Returns:** * Promise* <[ * Peer* ] ( ../interfaces/peer.md ) [ ] \>
106
+
107
+ Defined in: [ bee-js/src/bee-debug.ts:51] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L51 )
96
108
97
109
___
98
110
99
111
### getChequebookAddress
100
112
101
113
▸ ** getChequebookAddress** (): * Promise* <[ * ChequebookAddressResponse* ] ( ../interfaces/chequebookaddressresponse.md ) \>
102
114
103
- Get the address of the chequebook contract used
115
+ Get the address of the chequebook contract used.
116
+
117
+ ** Warning:** The address is returned with 0x prefix unlike all other calls.
118
+ https://github.com/ethersphere/bee/issues/1443
104
119
105
120
** Returns:** * Promise* <[ * ChequebookAddressResponse* ] ( ../interfaces/chequebookaddressresponse.md ) \>
106
121
107
- Defined in: [ bee-js/src/bee-debug.ts:93 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L93 )
122
+ Defined in: [ bee-js/src/bee-debug.ts:120 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L120 )
108
123
109
124
___
110
125
111
- ### getChequeubookBalance
126
+ ### getChequebookBalance
112
127
113
- ▸ ** getChequeubookBalance ** (): * Promise* <[ * ChequebookBalanceResponse* ] ( ../interfaces/chequebookbalanceresponse.md ) \>
128
+ ▸ ** getChequebookBalance ** (): * Promise* <[ * ChequebookBalanceResponse* ] ( ../interfaces/chequebookbalanceresponse.md ) \>
114
129
115
130
Get the balance of the chequebook
116
131
117
132
** Returns:** * Promise* <[ * ChequebookBalanceResponse* ] ( ../interfaces/chequebookbalanceresponse.md ) \>
118
133
119
- Defined in: [ bee-js/src/bee-debug.ts:100] ( https://github.com/ethersphere/bee-js/blob/7dfd556/src/bee-debug.ts#L100 )
134
+ Defined in: [ bee-js/src/bee-debug.ts:127] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L127 )
135
+
136
+ ___
137
+
138
+ ### getHealth
139
+
140
+ ▸ ** getHealth** (): * Promise* <[ * Health* ] ( ../interfaces/health.md ) \>
141
+
142
+ Get health of node
143
+
144
+ ** Returns:** * Promise* <[ * Health* ] ( ../interfaces/health.md ) \>
145
+
146
+ Defined in: [ bee-js/src/bee-debug.ts:214] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L214 )
120
147
121
148
___
122
149
@@ -134,7 +161,7 @@ Name | Type | Description |
134
161
135
162
** Returns:** * Promise* <[ * LastCashoutActionResponse* ] ( ../interfaces/lastcashoutactionresponse.md ) \>
136
163
137
- Defined in: [ bee-js/src/bee-debug.ts:125 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L125 )
164
+ Defined in: [ bee-js/src/bee-debug.ts:152 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L152 )
138
165
139
166
___
140
167
@@ -146,7 +173,7 @@ Get last cheques for all peers
146
173
147
174
** Returns:** * Promise* <[ * LastChequesResponse* ] ( ../interfaces/lastchequesresponse.md ) \>
148
175
149
- Defined in: [ bee-js/src/bee-debug.ts:107 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L107 )
176
+ Defined in: [ bee-js/src/bee-debug.ts:134 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L134 )
150
177
151
178
___
152
179
@@ -164,17 +191,17 @@ Name | Type | Description |
164
191
165
192
** Returns:** * Promise* <[ * LastChequesForPeerResponse* ] ( ../interfaces/lastchequesforpeerresponse.md ) \>
166
193
167
- Defined in: [ bee-js/src/bee-debug.ts:116 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L116 )
194
+ Defined in: [ bee-js/src/bee-debug.ts:143 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L143 )
168
195
169
196
___
170
197
171
- ### getOverlayAddress
198
+ ### getNodeAddresses
172
199
173
- ▸ ** getOverlayAddress ** (): * Promise* <string \>
200
+ ▸ ** getNodeAddresses ** (): * Promise* <[ * NodeAddresses * ] ( ../interfaces/nodeaddresses.md ) \>
174
201
175
- ** Returns:** * Promise* <string \>
202
+ ** Returns:** * Promise* <[ * NodeAddresses * ] ( ../interfaces/nodeaddresses.md ) \>
176
203
177
- Defined in: [ bee-js/src/bee-debug.ts:31 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L31 )
204
+ Defined in: [ bee-js/src/bee-debug.ts:47 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L47 )
178
205
179
206
___
180
207
@@ -186,7 +213,7 @@ Get the past due consumption balances with all known peers
186
213
187
214
** Returns:** * Promise* <[ * BalanceResponse* ] ( ../interfaces/balanceresponse.md ) \>
188
215
189
- Defined in: [ bee-js/src/bee-debug.ts:73 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L73 )
216
+ Defined in: [ bee-js/src/bee-debug.ts:97 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L97 )
190
217
191
218
___
192
219
@@ -204,7 +231,7 @@ Name | Type | Description |
204
231
205
232
** Returns:** * Promise* <[ * PeerBalance* ] ( ../interfaces/peerbalance.md ) \>
206
233
207
- Defined in: [ bee-js/src/bee-debug.ts:82 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L82 )
234
+ Defined in: [ bee-js/src/bee-debug.ts:106 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L106 )
208
235
209
236
___
210
237
@@ -222,7 +249,7 @@ Name | Type | Description |
222
249
223
250
** Returns:** * Promise* <[ * PeerBalance* ] ( ../interfaces/peerbalance.md ) \>
224
251
225
- Defined in: [ bee-js/src/bee-debug.ts:66 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L66 )
252
+ Defined in: [ bee-js/src/bee-debug.ts:90 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L90 )
226
253
227
254
___
228
255
@@ -234,17 +261,7 @@ Get list of peers for this node
234
261
235
262
** Returns:** * Promise* <[ * Peer* ] ( ../interfaces/peer.md ) [ ] \>
236
263
237
- Defined in: [ bee-js/src/bee-debug.ts:46] ( https://github.com/ethersphere/bee-js/blob/7dfd556/src/bee-debug.ts#L46 )
238
-
239
- ___
240
-
241
- ### getPssPublicKey
242
-
243
- ▸ ** getPssPublicKey** (): * Promise* <string\>
244
-
245
- ** Returns:** * Promise* <string\>
246
-
247
- Defined in: [ bee-js/src/bee-debug.ts:37] ( https://github.com/ethersphere/bee-js/blob/7dfd556/src/bee-debug.ts#L37 )
264
+ Defined in: [ bee-js/src/bee-debug.ts:58] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L58 )
248
265
249
266
___
250
267
@@ -262,22 +279,78 @@ Name | Type | Description |
262
279
263
280
** Returns:** * Promise* <[ * Settlements* ] ( ../interfaces/settlements.md ) \>
264
281
265
- Defined in: [ bee-js/src/bee-debug.ts:165] ( https://github.com/ethersphere/bee-js/blob/7dfd556/src/bee-debug.ts#L165 )
282
+ Defined in: [ bee-js/src/bee-debug.ts:200] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L200 )
283
+
284
+ ___
285
+
286
+ ### getTopology
287
+
288
+ ▸ ** getTopology** (): * Promise* <[ * Topology* ] ( ../interfaces/topology.md ) \>
289
+
290
+ ** Returns:** * Promise* <[ * Topology* ] ( ../interfaces/topology.md ) \>
291
+
292
+ Defined in: [ bee-js/src/bee-debug.ts:66] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L66 )
293
+
294
+ ___
295
+
296
+ ### isSupportedVersion
297
+
298
+ ▸ ** isSupportedVersion** (): * Promise* <boolean\>
299
+
300
+ Connnects to a node and checks if it is a supported Bee version by the bee-js
301
+
302
+ ** Returns:** * Promise* <boolean\>
303
+
304
+ true if the Bee node version is supported
305
+
306
+ Defined in: [ bee-js/src/bee-debug.ts:223] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L223 )
307
+
308
+ ___
309
+
310
+ ### pingPeer
311
+
312
+ ▸ ** pingPeer** (` peer ` : * string* ): * Promise* <[ * PingResponse* ] ( ../interfaces/pingresponse.md ) \>
313
+
314
+ #### Parameters:
315
+
316
+ Name | Type |
317
+ :------ | :------ |
318
+ ` peer ` | * string* |
319
+
320
+ ** Returns:** * Promise* <[ * PingResponse* ] ( ../interfaces/pingresponse.md ) \>
321
+
322
+ Defined in: [ bee-js/src/bee-debug.ts:70] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L70 )
323
+
324
+ ___
325
+
326
+ ### removePeer
327
+
328
+ ▸ ** removePeer** (` peer ` : * string* ): * Promise* <[ * RemovePeerResponse* ] ( ../interfaces/removepeerresponse.md ) \>
329
+
330
+ #### Parameters:
331
+
332
+ Name | Type |
333
+ :------ | :------ |
334
+ ` peer ` | * string* |
335
+
336
+ ** Returns:** * Promise* <[ * RemovePeerResponse* ] ( ../interfaces/removepeerresponse.md ) \>
337
+
338
+ Defined in: [ bee-js/src/bee-debug.ts:62] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L62 )
266
339
267
340
___
268
341
269
342
### withdrawTokens
270
343
271
- ▸ ** withdrawTokens** (` amount ` : * number* ): * Promise* <[ * WithdrawTokensResponse* ] ( ../interfaces/withdrawtokensresponse.md ) \>
344
+ ▸ ** withdrawTokens** (` amount ` : * number* \| BigInt ): * Promise* <[ * WithdrawTokensResponse* ] ( ../interfaces/withdrawtokensresponse.md ) \>
272
345
273
346
Withdraw tokens from the chequebook to the overlay address
274
347
275
348
#### Parameters:
276
349
277
350
Name | Type | Description |
278
351
:------ | :------ | :------ |
279
- ` amount ` | * number* | Amount of tokens to withdraw |
352
+ ` amount ` | * number* \| BigInt | Amount of tokens to withdraw (must be positive integer) |
280
353
281
354
** Returns:** * Promise* <[ * WithdrawTokensResponse* ] ( ../interfaces/withdrawtokensresponse.md ) \>
282
355
283
- Defined in: [ bee-js/src/bee-debug.ts:152 ] ( https://github.com/ethersphere/bee-js/blob/7dfd556 /src/bee-debug.ts#L152 )
356
+ Defined in: [ bee-js/src/bee-debug.ts:183 ] ( https://github.com/ethersphere/bee-js/blob/0ac3a7d /src/bee-debug.ts#L183 )
0 commit comments