You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get wallet TX history. Returns array of tx details.
258
+
Get wallet transaction history chronologically (oldest to newest, unless reversed), including both confirmed and pending transactions. Returns an array of transaction details.
251
259
252
260
### HTTP Request
253
261
`GET /wallet/:id/tx/history`
254
262
255
-
### Request Parameters
256
-
Parameter | Description
257
-
-------- | -------------------------
258
-
id <br> _string_ | id of wallet to get history of
263
+
Parameter | Description
264
+
---------------- | -----------
265
+
id <br> _string_ | Wallet ID
259
266
260
-
##Get Pending Transactions
267
+
### Query Parameters
261
268
262
-
```javascript
263
-
let id;
264
-
```
269
+
Parameter | Default | Description
270
+
--------------------- | ------- | -----------
271
+
account <br> _string_ | Optional | Account name to filter transactions. All TXs by default.
272
+
after <br> _hex_ | Optional | List transactions after this tx hash (priority 1)
273
+
time <br> _int_ | Optional | List transactions after this timestamp in epoch seconds (priority 2)
274
+
limit <br> _int_ | `maxTXs`* | Maximum number of transactions to return
275
+
reverse <br> _bool_ | `false` | TX Ordering, whether it should reverse the chronological order (oldest to newest)
Get range of wallet transactions by timestamp. Returns array of tx details.
412
384
413
-
<asideclass="notice">
414
-
Note that there are other options documented that `getRange` accepts in the options body, `limit` and `reverse`. At the time of writing however they do not have any effect.
415
-
</aside>
385
+
Get pending (unconfirmed) wallet transactions chronologically (oldest to newest, unless reversed). Returns an array of transaction details.
416
386
417
387
### HTTP Request
418
388
419
-
`GET /wallet/:id/tx/range`
420
-
421
-
### Body Parameters
422
-
Parameter | Description
423
-
-------- | -------------------------
424
-
account <br>_string_ | account to get the tx history from
425
-
start <br> _int_ | start time to get range from
426
-
end <br> _int_ | end time to get range from
389
+
`GET /wallet/:id/tx/unconfirmed`
427
390
428
-
<!-- ##GET /wallet/:id/tx/last
391
+
Parameter | Description
392
+
---------------- | -----------
393
+
id <br> _string_ | Wallet ID
429
394
430
-
Get last N wallet transactions.
395
+
### Query Parameters
396
+
Parameter | Default | Description
397
+
--------------------- | -------- | -----------
398
+
account <br> _string_ | None | Account name to filter transactions
399
+
after <br> _string_ | None | List transactions after this transaction ID (Priority 1)
400
+
time <br> _int_ | None | List transactions after this timestamp in epoch seconds (Priority 2)
401
+
limit <br> _int_ | `maxTXs`* | Maximum number of transactions to return
402
+
reverse <br> _bool_ | `false` | TX Ordering, whether it should reverse the chronological order (oldest to newest)
431
403
432
-
### HTTP Request
404
+
Notes:
433
405
434
-
`GET /wallet/:id/tx/last` -->
406
+
- For unconfirmed transactions, the `time` parameter is based on when the transaction was added to the wallet.
407
+
-*`maxTXs` refers to wallet `maxHistoryTXs` configuration
408
+
-`limit` can not exceed `maxHistoryTXs` configuration
0 commit comments