27
27
- [ getChainId] ( lumclient.md#getchainid )
28
28
- [ getSupply] ( lumclient.md#getsupply )
29
29
- [ getTx] ( lumclient.md#gettx )
30
- - [ getValidators] ( lumclient.md#getvalidators )
31
30
- [ searchTx] ( lumclient.md#searchtx )
32
31
- [ signAndBroadcastTx] ( lumclient.md#signandbroadcasttx )
33
32
- [ signTx] ( lumclient.md#signtx )
39
38
40
39
### constructor
41
40
42
- \+ ** new LumClient** (` tmClient ` : * Client * ): [ * LumClient* ] ( lumclient.md )
41
+ \+ ** new LumClient** (` tmClient ` : * Tendermint34Client * ): [ * LumClient* ] ( lumclient.md )
43
42
44
43
Create a LumClient instance using a tendermint RPC client
45
44
46
45
#### Parameters:
47
46
48
47
Name | Type | Description |
49
48
:------ | :------ | :------ |
50
- ` tmClient ` | * Client * | tendermint RPC client |
49
+ ` tmClient ` | * Tendermint34Client * | tendermint RPC client |
51
50
52
51
** Returns:** [ * LumClient* ] ( lumclient.md )
53
52
67
66
68
67
### tmClient
69
68
70
- • ` Readonly ` ** tmClient** : * Client *
69
+ • ` Readonly ` ** tmClient** : * Tendermint34Client *
71
70
72
71
## Methods
73
72
@@ -259,23 +258,6 @@ Name | Type | Description |
259
258
260
259
___
261
260
262
- ### getValidators
263
-
264
- ▸ ** getValidators** (` blockHeight? ` : * number* ): * Promise* <ValidatorsResponse\>
265
-
266
- Get all validators
267
- Validators are sorted first by voting power (descending), then by address (ascending)
268
-
269
- #### Parameters:
270
-
271
- Name | Type | Description |
272
- :------ | :------ | :------ |
273
- ` blockHeight? ` | * number* | block height to return. If no height is provided, it will fetch validator set which corresponds to the latest block |
274
-
275
- ** Returns:** * Promise* <ValidatorsResponse\>
276
-
277
- ___
278
-
279
261
### searchTx
280
262
281
263
▸ ** searchTx** (` queries ` : * string* [ ] , ` page? ` : * number* , ` perPage? ` : * number* , ` includeProof? ` : * boolean* ): * Promise* <TxResponse[ ] \>
@@ -294,7 +276,7 @@ Name | Type | Default value | Description |
294
276
:------ | :------ | :------ | :------ |
295
277
` queries ` | * string* [ ] | - | queries to run (see utils/search for helpers) |
296
278
` page ` | * number* | 1 | page to query (default to 1) |
297
- ` perPage ` | * number* | 30 | result per pages (default to 30) |
279
+ ` perPage ` | * number* | 30 | results per pages (default to 30) |
298
280
` includeProof? ` | * boolean* | - | whether or not to include proofs of the transactions inclusion in the block |
299
281
300
282
** Returns:** * Promise* <TxResponse[ ] \>
303
285
304
286
### signAndBroadcastTx
305
287
306
- ▸ ** signAndBroadcastTx** (` wallet ` : [ * LumWallet* ] ( lumwallet.md ) , ` messages ` : [ * Message * ] ( ../interfaces/lummessages.message.md ) [ ] , ` fee ` : [ * Fee * ] ( ../interfaces/ lumtypes.fee .md) , ` memo? ` : * string * ): * Promise* <BroadcastTxCommitResponse\>
288
+ ▸ ** signAndBroadcastTx** (` wallet ` : [ * LumWallet* ] ( lumwallet.md ) , ` doc ` : [ * Doc * ] ( ../interfaces/lumtypes.doc .md ) ): * Promise* <BroadcastTxCommitResponse\>
307
289
308
290
Signs and broadcast the transaction using the specified wallet and messages
309
291
@@ -312,17 +294,15 @@ Signs and broadcast the transaction using the specified wallet and messages
312
294
Name | Type | Description |
313
295
:------ | :------ | :------ |
314
296
` wallet ` | [ * LumWallet* ] ( lumwallet.md ) | signing wallet |
315
- ` messages ` | [ * Message* ] ( ../interfaces/lummessages.message.md ) [ ] | messages to sign |
316
- ` fee ` | [ * Fee* ] ( ../interfaces/lumtypes.fee.md ) | requested fee |
317
- ` memo? ` | * string* | optional memo for the transaction |
297
+ ` doc ` | [ * Doc* ] ( ../interfaces/lumtypes.doc.md ) | document to sign and broadcast as a transaction |
318
298
319
299
** Returns:** * Promise* <BroadcastTxCommitResponse\>
320
300
321
301
___
322
302
323
303
### signTx
324
304
325
- ▸ ** signTx** (` wallet ` : [ * LumWallet* ] ( lumwallet.md ) , ` messages ` : [ * Message * ] ( ../interfaces/lummessages.message.md ) [ ] , ` fee ` : [ * Fee * ] ( ../interfaces/ lumtypes.fee .md) , ` memo? ` : * string * ): * Promise* <Uint8Array\>
305
+ ▸ ** signTx** (` wallet ` : [ * LumWallet* ] ( lumwallet.md ) , ` doc ` : [ * Doc * ] ( ../interfaces/lumtypes.doc .md ) ): * Promise* <Uint8Array\>
326
306
327
307
Signs the messages using the provided wallet and builds the transaction
328
308
@@ -331,9 +311,7 @@ Signs the messages using the provided wallet and builds the transaction
331
311
Name | Type | Description |
332
312
:------ | :------ | :------ |
333
313
` wallet ` | [ * LumWallet* ] ( lumwallet.md ) | signing wallet |
334
- ` messages ` | [ * Message* ] ( ../interfaces/lummessages.message.md ) [ ] | messages to sign |
335
- ` fee ` | [ * Fee* ] ( ../interfaces/lumtypes.fee.md ) | requested fee |
336
- ` memo? ` | * string* | optional memo for the transaction |
314
+ ` doc ` | [ * Doc* ] ( ../interfaces/lumtypes.doc.md ) | document to sign |
337
315
338
316
** Returns:** * Promise* <Uint8Array\>
339
317
0 commit comments