wss://honeycluster.ioaccount_linesReturns information about the trust lines (token balances) connected to a specified account.
{
"result": {
"account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"lines": [
{
"account": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
"balance": "123.456789",
"currency": "USD",
"limit": "1000000",
"limit_peer": "0",
"no_ripple": true
}
],
"ledger_index": 89012345
},
"status": "success",
"type": "response",
"id": 1
}| Field | Type | Description |
|---|---|---|
commandrequired | string | WebSocket command name |
id | object | Client-supplied identifier to correlate requests with responses. |
account | string | The account whose trust lines to retrieve. |
peer | string | Filter trust lines to only those connected to this peer account. |
ledger_index | object | A ledger index (sequence number) or shortcut string identifying which ledger to use. |
ledger_hash | string | 256-bit hex hash identifying a specific ledger version. |
limit | integer | Maximum number of results to return. Clio servers may return more than this. |
marker | object | Opaque pagination marker from a previous response. Pass unchanged to fetch the next page. |
api_version | object | API version for the response format. Version 2 is the default for rippled 2.0+. |
{
"command": "account_lines",
"id": 1,
"account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"ledger_index": "validated",
"limit": 10
}| Field | Type | Description |
|---|---|---|
result | object | |
status | enum<string> | Available successerror |
type | string | |
id | stringnumber | Echo of the client-provided correlation ID |
{
"result": {
"account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"lines": [
{
"account": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
"balance": "123.456789",
"currency": "USD",
"limit": "1000000",
"limit_peer": "0",
"no_ripple": true
}
],
"ledger_index": 89012345
},
"status": "success",
"type": "response",
"id": 1
}