mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
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') %>
|