mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-11 00:05:49 +00:00
26 lines
582 B
Plaintext
26 lines
582 B
Plaintext
## getTrustlines
|
|
|
|
`getTrustlines(address: string, options: Object): Promise<Array<Object>>`
|
|
|
|
Returns trustlines for a specified account.
|
|
|
|
### Parameters
|
|
|
|
<%- renderSchema("input/get-trustlines.json") %>
|
|
|
|
### Return Value
|
|
|
|
This method returns a promise that resolves with an array of objects with the following structure.
|
|
|
|
<%- renderSchema("output/get-trustlines.json") %>
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';
|
|
return api.getTrustlines(address).then(trustlines =>
|
|
{/* ... */});
|
|
```
|
|
|
|
<%- renderFixture("responses/get-trustlines.json") %>
|