getAccountBlocks

Get all blocks forged (generated) by an account in reverse block height order.

Request: requestType is getAccountBlocks timestamp is the earliest block (in seconds since the genesis block) to retrieve (optional) firstIndex is the zero-based index to the first block to retrieve (optional) lastIndex is the zero-based index to the last block to retrieve (optional) includeTransactions is the true to retrieve transaction details, otherwise only transaction IDs are retrieved (optional) (optional)

Response:

(A) blocks is the array of blocks (refer to Get Block for details) (N) requestProcessingTime is the API request processing time (in millsec)

Example:

Request:

http://localhost:801/BEAM?requestType=getAccountBlocks&account=BEAM-7X92-29W5-7LQA-4V8CH&lastIndex=0

Response similar to:

{ “blocks”: [ { “previousBlockHash”: “9bb982b31c196a59231197da7abc82aeecea8d21017eb0c12fbabed8a74ec71c”, “payloadLength”: 1936, “totalAmountNQT”: “106611838192”, “generationSignature”: “dedb23e56e9cc7d17d0f8d09bde18890c950089a2d7253889e8197967a9cacce”, “generator”: “15922713504207360763”, “generatorPublicKey”: “177d9ea55714741b002665dd9b7a1bc49834281c49162282735fadbb654f525d”, “baseTarget”: “62600”, “payloadHash”: “9c2e60b58de75577d4f088abe14111756f602fc0498c8a1cd97555514b3794f3”, “generatorRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “blockReward”: “1101”, “nextBlock”: “7294788635189399942”, “scoopNum”: 3287, “numberOfTransactions”: 11, “blockSignature”: “51cfdb787b44c6ef65fd44bcc1efe0d1880a1f36573b1976849a34514eebfb0c657092b04ab329147b08c14b2d36fb3b769ac7d348dd8b42c706feba1c31fe0d”, “transactions”: [ “9974453735926447276”, “10292157220435803480”, “12118294371901969706”, “14492253203769113366”, “16186302445201505070”, “16411262478294799982”, “1509465029747109302”, “3032891187575274734”, “3133520208744662995”, “4199249628605348221”, “4284107851893128481” ], “nonce”: “11577401”, “version”: 3, “totalFeeNQT”: “1100000000”, “previousBlock”: “6442989827968383387”, “block”: “12993921455729618779”, “height”: 467931, “timestamp”: 113186379 } ], “requestProcessingTime”: 3 }

Last updated