Translations:Asset Exchange/72/en

From ArdorDocs
Jump to: navigation, search

Get Asset Dividends Example

<syntaxhighlight lang="bash"> http://localhost:27876/nxt?

 requestType=getAssetDividends&
 chain=2&
 asset=6277929525780034120

</syntaxhighlight>

<syntaxhighlight lang="json"> {

   "dividends": [
       {
           "holding": "2270562915899608568",
           "numberOfAccounts": 3,
           "holdingType": 2,
           "holdingInfo": {
               "chain": 2,
               "issuerAccountRS": "ARDOR-RKUL-XS5Y-NGQQ-FP6T5",
               "code": "SBT",
               "decimals": 0,
               "name": "SBTether",
               "issuanceHeight": 0,
               "type": 33,
               "issuerAccount": "15124378298184615762"
           },
           "amountNQTPerShare": "45",
           "totalDividend": "290249910",
           "dividendHeight": 121160,
           "asset": "6277929525780034120",
           "assetDividendFullHash": "a449536556c44251365ea4adec7aabfcc590a94697f9d497d9edeaac6c9475a5",
           "height": 121162,
           "timestamp": 7173990
       },
       {
           "holding": "6277929525780034120",
           "numberOfAccounts": 2,
           "holdingType": 1,
           "holdingInfo": {
               "decimals": 0,
               "name": "SBT"
           },
           "amountNQTPerShare": "1",
           "totalDividend": "3099999",
           "dividendHeight": 119456,
           "asset": "6277929525780034120",
           "assetDividendFullHash": "41101f9225abbe43436d62377d5b2c9c83ef746dea1fc86cb3801dfd6b6e73d1",
           "height": 119459,
           "timestamp": 7072622
       },
       {
           "holding": "657",
           "numberOfAccounts": 0,
           "holdingType": 2,
           "holdingInfo": {
               "chain": 2,
               "issuerAccountRS": "ARDOR-6Z5Q-HJ2L-E5M3-D94QR",
               "code": "CHF",
               "decimals": 0,
               "name": "CHF",
               "issuanceHeight": 0,
               "type": 1,
               "issuerAccount": "13535647277982579830"
           },
           "amountNQTPerShare": "1",
           "totalDividend": "0",
           "dividendHeight": 118673,
           "asset": "6277929525780034120",
           "assetDividendFullHash": "9839c9fb351ca26c8e5ba62c30cb71df5ba820e2adc34d20aea59de27b4c7fbc",
           "height": 118676,
           "timestamp": 7025926
       }
   ],
   "requestProcessingTime": 1

} </syntaxhighlight>