Skip to Content
APIAccountGet Account Resource Info v2

Get Account Resource List (Stake 2.0)

1. Overview & Typical Use

Query the resource list for accounts holding resources under Stake 2.0, including self-staked, received delegations, sent delegations, unstaking, and withdrawable records.

  • Typical use: view Stake 2.0 staking records, delegation details, and unstaking progress.
  • When not to use: for Stake 1.0 resources use “Get Account Resource List (Stake 1.0)”; for full account info use “Get Account Detail”.
  • The sum of start and limit must be less than or equal to 10000.

2. Endpoint & Authentication

GET /api/account/resourcev2

For Base URL and authentication, see Common Network & Authentication. This endpoint requires an API Key: calls without a Key return 401.

3. Request

ParameterTypeRequiredDefaultDescription
addressstringYesAccount address (Base58, starts with T)
startintegerNo0Starting offset; start + limit ≤ 10000
limitintegerNo10Page size
typeintegerNo0Stake type. 0: self-staked, 1: delegated to this account, 2: delegated from this account, 3: unstaking, 4: withdrawable
resourceTypeintegerNo0Resource type. 0: bandwidth and energy, 1: bandwidth only, 2: energy only
toAddressstringNoReceiver address — used with type=2 to filter delegation records by recipient
sortstringNotimeSort field. With type=2, also supports usage / burnTrx / balance
orderstringNodescSort direction. asc for ascending

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
totalintegerRequiredTotal record count
rangeTotalintegerRequiredTotal count within the filtered range
dataarrayRequiredResource records array; see below
unfreezeDataarrayRequiredUnfreezing records array (empty array if none); schema same as data[] (split into separate sub-table if observed to differ)
contractMapobjectRequiredAddress → boolean map of whether it is a contract (always returned, may be empty)
contractInfoobjectRequiredContract address → label info (may be empty object); value schema below
normalAddressInfoobjectOptionalNon-contract address → risk info map; not returned when data is empty; each address value verified to contain only risk (boolean), no other sub-fields

contractInfo[<addr>] object schema (8 fields):

FieldTypeRequiredDescription
tag1stringRequiredPrimary label (project name / contract name / exchange name)
tag1UrlstringRequiredURL of the primary label (may be an empty string)
namestringRequiredFormal contract / project name
isTokenbooleanRequiredWhether it is a token contract (true / false)
vipbooleanRequiredWhether it is a VIP entity (true / false)
riskboolean | stringRequiredRisk label; most endpoints return boolean, some return a string risk type (blacklist / fraud, etc.)
publicTagDescstringRequiredPublic label description; empty string for most accounts
publicTagstringOptionalPublic label (e.g. "USDT Token" / "Binance"); returned only for well-known entities or certain endpoints

data[] elements

FieldTypeRequiredDescriptionUnit/Precision
ownerAddressstringRequiredStaker address
ownerAddressTagstringOptionalStaker address label
receiverAddressstringRequiredResource receiver address
receiverAddressTagstringOptionalReceiver address label
balanceintegerRequiredStaked TRX amountsun
resourceintegerRequiredResource type: 0 bandwidth, 1 energy
resourceValuenumberRequiredResource value obtained
lockBalanceintegerRequiredLocked balancesun
lockResourceValuenumberRequiredLocked resource value
expireTimeintegerRequiredExpiry timems timestamp
operationTimeintegerRequiredOperation timems timestamp
usageRatioYesterdaynumberOptionalYesterday’s usage ratio
burnTrxYesterdaystringOptionalTRX burned yesterdayTRX

5. Errors

For HTTP status codes, see Common Errors. Notes for this endpoint:

  • API Key Required: returns 401 if not provided (see Common Network & Authentication).
  • Invalid parameters silently accepted: start + limit > 10000 etc. are silently truncated/capped and return 200; do not rely on errors to surface parameter problems.
  • Empty result is not an error: no Stake 2.0 records returns 200 + data: [], which is a normal response.
Last updated on: