Block

All block commands are below and detailed on related sections.

Get blocks

post
/getBlocks

This endpoint lists the blocks created on the PIRI network, based on the skip and limit parameters provided to it.

Body
skipnumberOptional

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Optional

Record count for per page

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getBlocks
200

OK

Get blocks with transaction count

post
/getBlocksWithTransactionCount

This endpoint lists the blocks created in the PIRI network, similar to the getBlocks endpoint, but the resulting schema also includes the trxCount information for each block.

Body
skipnumberOptional

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Optional

Record count for per page

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getBlocksWithTransactionCount
200

OK

Get last blocks with block height

post
/getLastBlocksWithBlockHeight

This endpoint uses the limit & blockHeight parameters instead of the skip & limit parameters to list blocks created on the PIRI network. The purpose here is to achieve faster results when page control is provided by the application.

Body
limitnumber ยท max: 100Optional

Record count for per page

Default: 10
blockHeightnumber ยท max: 100Optional

Block Height (Block Count) to start.

Default: 5
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getLastBlocksWithBlockHeight
200

OK

Get blocks in descending order

post
/getBlocksDesc

This endpoint lists the blocks created in the PIRI network in reverse order, based on the skip and limit parameters provided to it. In other words, this endpoint is more convenient for listing newly created blocks.

Body
skipnumberOptional

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Optional

Record count for per page

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getBlocksDesc
200

OK

Get last blocks

post
/getLastBlocks

This endpoint lists the blocks created in the PIRI network based on the limit parameter provided to it. The value given to the limit parameter signifies listing the last x number of blocks.

Body
limitnumber ยท min: 5 ยท max: 100Optional

Record count (descending order)

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getLastBlocks
200

OK

Get only blocks

post
/getOnlyBlocks

This endpoint lists the blocks created on the PIRI network, based on the skip and limit parameters provided. However, the returned result does not include validatorNodes and transaction information. This makes it suitable for quickly browsing the block list.

Body
skipnumberOptional

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Optional

Record count for per page

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getOnlyBlocks
200

OK

Get block

post
/getBlock

This endpoint returns the most detailed information related to a block created on the PIRI network. The returned object may include validator nodes, transactions, and custom data information.

Body
blockNumbernumberRequired

Block Number

Responses
chevron-right
200

OK

application/json; charset=utf-8
post
/getBlock
200

OK

Last updated