getAssetAccounts
Get the accounts that own an asset given the asset ID in reverse quantity order.
Request:
requestType is getAssetAccounts
asset is the asset ID
height is the height of the blockchain to determine the accounts (optional, default is last block)
firstIndex is a zero-based index to the first account to retrieve (optional)
lastIndex is a zero-based index to the last account to retrieve (optional)
Note: If table trimming is enabled (default), the height must be within 1440 blocks of the last block.
Response:
(A) accountAssets is the array of asset objects with the following fields for each asset:
(S)
quantityQNTis the quantity (in QNT) of the asset(S)
accountRSis the Reed-Solomon address of the account that owns the asset(S)
unconfirmedQuantityQNTis the unconfirmed quantity (in QNT) of the asset(S)
assetis the asset ID(S)
accountis the number of the account that owns the asset
(N) requestProcessingTime is the API request processing time (in millisec)
Example:
Request:
http://localhost:801/BEAM?requestType=getAssetAccounts&asset=3702027329806229573&lastIndex=1
Response:
{ “accountAssets”: [ { “quantityQNT”: “5000000000”, “accountRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “unconfirmedQuantityQNT”: “5000000000”, “asset”: “3702027329806229573”, “account”: “5248959966645406997” }, { “quantityQNT”: “5000000000”, “accountRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “unconfirmedQuantityQNT”: “5000000000”, “asset”: “3702027329806229573”, “account”: “8268702915092631317” } ], “requestProcessingTime”: 22 }
Last updated