Get Account Resource List (Stake 1.0)
1. Overview & Typical Use
Query the resource list for accounts holding resources under Stake 1.0, including self-frozen, frozen for others, and frozen by others for this account.
- Typical use: view Stake 1.0 freeze records and bandwidth/energy delegation details.
- When not to use: for Stake 2.0 resources use “Get Account Resource List (Stake 2.0)”; for full account info use “Get Account Detail”.
2. Endpoint & Authentication
GET /api/account/resource
For Base URL and authentication, see Common Network & Authentication.
3. Request
Fields
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
address | string | Yes | — | Account address (Base58, starts with T) |
start | integer | No | 0 | Starting offset, max 5000 |
limit | integer | No | 200 | Page size |
type | integer | No | 0 | Freeze type. 0: all, 1: frozen for self, 2: frozen for others, 3: frozen by others for self |
resourceType | integer | No | 0 | Resource type. 0: bandwidth and energy, 1: bandwidth only, 2: energy only |
toAddress | string | No | — | Receiver address — used with type=2 to filter delegation records by recipient |
4. Response
Fields
Top-level
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
total | integer | Required | Total record count | — |
rangeTotal | integer | Required | Total count within the filtered range | — |
data | array | Required | Resource records array; see below | — |
data[] elements
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
hash | string | Required | Transaction hash | — |
block | integer | Required | Block height | — |
timestamp | integer | Required | Freeze time | Millisecond timestamp |
ownerAddress | string | Required | Freeze initiator address | — |
ownerAddressTag | string | Optional | Initiator address label | — |
receiverAddress | string | Required | Resource receiver address | — |
receiverAddressTag | string | Optional | Receiver address label | — |
resource | string | Required | Resource type: BANDWIDTH or ENERGY | — |
frozenBalance | integer | Required | Frozen TRX amount | sun |
expireTime | integer | Required | Expiry time | Millisecond timestamp |
resourceValue | string | Required | Resource value obtained | — |
5. Errors
For HTTP status codes, see Common Errors. Notes for this endpoint:
- Empty result is not an error: no Stake 1.0 freeze records returns
200+data: [], which is a normal response.
Last updated on: