Получить данные блока.
http://localhost:1400/api/getBlock? block=BLOCKADDRESS
Где:
{ "generatorRS": "ACCOUNTRS", "previousBlockHash":"32BytesRepresentedInHexadecimalForm", "payloadLength":PAYLOADLEN, "totalAmount":TOTAL, "generationSignature":"64BytesRepresentedInHexadecimalForm", "generator":"ACCOUNT", "baseTarget":"BASETARGET", "payloadHash":"32BytesRepresentedInHexadecimalForm", "nextBlock":"NEXTBLOCK", "numberOfTransactions":NUMTX, "blockSignature":"64BytesRepresentedInHexadecimalForm", "transactions": [ "TRANSACTION1", "TRANSACTION2" ], "version":VERSION, "totalFee":"FEE", "previousBlock":"PREVBLOCK", "height":HEIGHT, "timestamp":TIME }
Где:
Запрос:
http://localhost:1400/api/getBlock? block=3081264592726137683
Ответ:
{ "generatorRS": "LMA-25TQ-G377-8TJ9-EVPAD", "previousBlockHash":"d2df42de82c3fbc808715ce9738630b31bece282864fafd164b0d4cf5b0e9e3e", "payloadLength":256, "totalAmount":"16400300000000", "generationSignature":"5beac191d5a20b443b9fdd83cfeb3abddfb31294c1999a85c75955a4c99b3f3c", "generator":"14241151062656421686", "baseTarget":"191236740", "payloadHash":"fc153c1f3d18af9e5a60be42bee896b19089a4b1e391179c98c2a9d2d383275f", "nextBlock":"5728643978405745233", "numberOfTransactions":2, "blockSignature":"5bf8d6f39c6303815dbf591667d613175e916520052f21ffaddec818e2e4ab0cca07f17b0dea8352e837aa89e774cd95dbeb5a2bdab1f1f50f5955d1a3718375", "transactions": [ "10431005438877942947", "16244324356084723003" ], "version":2, "totalFee":"200000000", "previousBlock":"14482383993582051282", "height":115147, "timestamp":12439666 }