GetAccountLessors
Retrieves lessors for a specific account - accounts that have leased balance from this account.
Request
GET /nxt?requestType=get-account-lessors
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
height | int | Block height for historical query | Optional |
Response
{
"lessors": [
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"height": 250,
"balanceNQT": "1000000000"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
account | string | Lessor account ID |
accountRS | string | Lessor account Reed-Solomon address in SHAMWARI format |
height | int | Block height when lease was established |
balanceNQT | string | Amount leased in NQT |
Error Codes
| Code | Description |
|---|---|
| 3 | Unknown account |
Example
curl "http://localhost:22024/nxt?requestType=get-account-lessors&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"