List every IOU trust line for an account.
iou.list(
params?: IOUListParams
): Promise<IOUListResult>| Parameter | Type | Required | Description |
|---|---|---|---|
role | 'holder' | 'issuer' | No | Query as holder (default) or issuer. |
account | string | No | The account whose trust lines to list. Defaults to the primary signer's account. |
Resolves to an IOUListResult, where ious[i] corresponds to data[i]:
| Field | Type | Description |
|---|---|---|
ious | readonly string[] | The iouID of each line, composable into the write operations. |
data | readonly IOUTrustLine[] | The shaped trust lines. See iou.retrieve for IOUTrustLine. |
Read-only — no signer is required and nothing is submitted. Queries the ledger with account_lines.
const { data } = await client.iou.list()
for (const line of data) {
console.log(line.currency, line.balance)
}