mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-23 08:30:51 +00:00
* Revert "[docs] Update getTransactions example request/response (#1106)"
This reverts commit 5314e5e7e9.
* Redo #1106 but with passing tests
25 lines
587 B
Plaintext
25 lines
587 B
Plaintext
## getTransactions
|
|
|
|
`getTransactions(address: string, options: object): Promise<Array<object>>`
|
|
|
|
Retrieves historical transactions of an account.
|
|
|
|
### Parameters
|
|
|
|
<%- renderSchema('input/get-transactions.json') %>
|
|
|
|
### Return Value
|
|
|
|
This method returns a promise that resolves with an array of transaction object in the same format as [getTransaction](#gettransaction).
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';
|
|
return api.getTransactions(address).then(transaction => {
|
|
/* ... */
|
|
});
|
|
```
|
|
|
|
<%- renderFixture('responses/get-transactions.json') %>
|